This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
My new strategy is to intercept error() calls during quitting. Basically, a simple get/set function is set up to denote when we the user has confirmed a quit.
My immediate concern is, does killed.exp leave a stopped binary around?
Other than that I like it.
/* An optional expression may be used to cause gdb to terminate with the value of that expression. */
if (args)
{
struct value *val = parse_and_eval (args);
exit_code = (int) value_as_long (val); }
if (! ptid_equal (inferior_ptid, null_ptid) && target_has_execution) { if (attach_flag) target_detach (args, from_tty); else target_kill (); }
/* UDI wants this, to kill the TIP. */ target_close (1);
/* Save the history information if it is appropriate to do so. */ if (write_history_p && history_filename) write_history (history_filename);
do_final_cleanups (ALL_CLEANUPS); /* Do any final cleanups before exiting
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |