-
Can the mdb_call() function be also affected due to it calls mdb_call_idcmd() in the loop?
What if just improve generic mdb_call_idcmd() function by adding check like this ?:
if (mdb.m_frame->f_cp && mdb.m_frame->f_cp->c_dcmd && mdb.m_frame->f_cp->c_dcmd != idcp) {
... // save and set new context
}...
... // restore context at the end ...