diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2008-04-15 14:32:12 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2008-04-15 14:32:12 +0000 |
commit | 2cec12e55bda9d647ec2de43e45638d1bd4e102e (patch) | |
tree | 1fdf29a51cb67d0e45c713a2ea9c134c5dfe1204 /gdb/infrun.c | |
parent | a5f245b565ed163ca77b73cdbd923f50800bb83c (diff) | |
download | gdb-2cec12e55bda9d647ec2de43e45638d1bd4e102e.zip gdb-2cec12e55bda9d647ec2de43e45638d1bd4e102e.tar.gz gdb-2cec12e55bda9d647ec2de43e45638d1bd4e102e.tar.bz2 |
PR gdb/2424
* infrun.c (normal_stop) Move breakpoint_auto_delete further down
to allow printing to 'see' real reason of stop. This fixes PR 2424.
* breakpoint.c (bpdisp_texst): New function. The function takes over
the role of bpstats static array in print_one_breakpoint_location.
(print_it_typical): Print "Temporary breakpoint" instead
of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
protocols, print disp field.
(print_one_breakpoint_location): Removed bpdisps static definition.
Call new bpstat_text function to get value for 'disp' field.
(mention): Print "Temporary breakpoint" instead of just "Breakpoint".
Diffstat (limited to 'gdb/infrun.c')
-rw-r--r-- | gdb/infrun.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/infrun.c b/gdb/infrun.c index 6388d93..df042a1 100644 --- a/gdb/infrun.c +++ b/gdb/infrun.c @@ -3132,11 +3132,6 @@ Further execution is probably impossible.\n")); } } - /* Delete the breakpoint we stopped at, if it wants to be deleted. - Delete any breakpoint that is to be deleted at the next stop. */ - - breakpoint_auto_delete (stop_bpstat); - /* If an auto-display called a function and that got a signal, delete that auto-display to avoid an infinite recursion. */ @@ -3275,6 +3270,9 @@ Further execution is probably impossible.\n")); done: annotate_stopped (); observer_notify_normal_stop (stop_bpstat); + /* Delete the breakpoint we stopped at, if it wants to be deleted. + Delete any breakpoint that is to be deleted at the next stop. */ + breakpoint_auto_delete (stop_bpstat); } static int |