* 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.
This commit is contained in:
parent
6c0643e30f
commit
39ce68291e
3 changed files with 31 additions and 5 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue