On Thursday 13 November 2008 00:22:54 Pedro Alves wrote: > > + /* The notifications are only output when the top-level > > + interpreter (specified on the command line) is MI. */ > > + top_name = top_level_interpreter_name (); > > + if (had_execution && target_has_execution > > > + && strstr (top_name, "mi") == top_name) > > Why not, > > ui_out_is_mi_like_p (interp_ui_out (top_level_interpreter ()))) > > instead of relying on the interpreter name? > > > + { > > + struct mi_interp *mi = top_level_interpreter_data (); > > + if (!ptid_equal (previous_ptid, null_ptid) > > + && !ptid_equal (inferior_ptid, previous_ptid)) > > + { > > Checking for target_has_execution means that these new > notifications will not be emitted when using the "thread" command while debugging > a multi-threaded core file. Seems like this condition is a little bit more messed up than that. I attach a reworked patch. Thanks, Volodya