aboutsummaryrefslogtreecommitdiff
path: root/gdb/infcmd.c
diff options
context:
space:
mode:
authorPeter Schauer <Peter.Schauer@mytum.de>1996-04-28 10:49:54 +0000
committerPeter Schauer <Peter.Schauer@mytum.de>1996-04-28 10:49:54 +0000
commit39ce68291e9afa7e74fa2daf74237b2296ea8b5c (patch)
treeb6466187ad9a0916219bb069e7289b108fe0fd77 /gdb/infcmd.c
parent6c0643e30f9b6c45fa120035893a3d1226f2ebf1 (diff)
downloadgdb-39ce68291e9afa7e74fa2daf74237b2296ea8b5c.zip
gdb-39ce68291e9afa7e74fa2daf74237b2296ea8b5c.tar.gz
gdb-39ce68291e9afa7e74fa2daf74237b2296ea8b5c.tar.bz2
* 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.
Diffstat (limited to 'gdb/infcmd.c')
-rw-r--r--gdb/infcmd.c9
1 files changed, 4 insertions, 5 deletions
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