static void fbsd_thread_mourn_inferior (void) { if (fbsd_thread_active) fbsd_thread_deactivate (); unpush_target (&fbsd_thread_ops); child_ops.to_mourn_inferior (); }
static void fbsd_core_detach (char *args, int from_tty) { if (fbsd_thread_active) fbsd_thread_deactivate (); unpush_target (&fbsd_thread_ops); orig_core_ops.to_detach (args, from_tty); /* Clear gdb solib information and symbol file cache, so that after detach and re-attach, new_objfile hook will be called */ clear_solib(); symbol_file_clear(0); }
static void fbsd_thread_mourn_inferior (struct target_ops *ops) { struct target_ops *beneath = find_target_beneath (ops); fbsd_thread_deactivate (); beneath->to_mourn_inferior (beneath); /* Delete thread event breakpoints, if any. */ remove_thread_event_breakpoints (); unpush_target (ops); }
static void fbsd_thread_detach (struct target_ops *ops, char *args, int from_tty) { struct target_ops *beneath = find_target_beneath (ops); fbsd_thread_deactivate (); /* Delete thread event breakpoints, if any. */ remove_thread_event_breakpoints (); unpush_target (&fbsd_thread_ops); beneath->to_detach (beneath, args, from_tty); }