From 39ce68291e9afa7e74fa2daf74237b2296ea8b5c Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Sun, 28 Apr 1996 10:49:54 +0000 Subject: * breakpoint.c (delete_breakpoint): Fix bpt->val, bpt->exp storage leaks. (breakpoint_re_set_one): Fix b->exp, b->val, b->cond storage leaks. * infcmd.c (run_command), solib.c (locate_base): Check for target_has_execution in addition to inferior_pid, a core file from a threaded program is yielding a non-zero inferior_pid. * sparc-tdep.c (get_saved_register): Handle window registers in a dummy frame correctly. --- gdb/infcmd.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'gdb/infcmd.c') diff --git a/gdb/infcmd.c b/gdb/infcmd.c index 4aa408a..5eb749e 100644 --- a/gdb/infcmd.c +++ b/gdb/infcmd.c @@ -187,7 +187,7 @@ run_command (args, from_tty) dont_repeat (); - if (inferior_pid) + if (inferior_pid && target_has_execution) { if ( !query ("The program being debugged has been started already.\n\ @@ -1164,10 +1164,9 @@ attach_command (args, from_tty) clear_proceed_status (); stop_soon_quietly = 1; -#ifndef MACH - /* Mach 3 does not generate any traps when attaching to inferior, - and to set up frames we can do this. */ - + /* No traps are generated when attaching to inferior under Mach 3 + or GNU hurd. */ +#ifndef ATTACH_NO_WAIT wait_for_inferior (); #endif -- cgit v1.1