diff options
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r-- | gdb/breakpoint.c | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c index 2356288..ff48d94 100644 --- a/gdb/breakpoint.c +++ b/gdb/breakpoint.c @@ -932,6 +932,11 @@ bpstat_do_actions (bsp) struct cleanup *old_chain; struct command_line *cmd; + /* Avoid endless recursion if a `source' command is contained + in bs->commands. */ + if (executing_breakpoint_commands) + return; + executing_breakpoint_commands = 1; old_chain = make_cleanup (cleanup_executing_breakpoints, 0); @@ -1665,7 +1670,7 @@ breakpoint_1 (bnum, allflag) "watchpoint scope", "call dummy", "shlib events" }; static char *bpdisps[] = {"del", "dstp", "dis", "keep"}; - static char bpenables[] = "ny"; + static char bpenables[] = "nyn"; char wrap_indent[80]; ALL_BREAKPOINTS (b) @@ -1794,6 +1799,12 @@ breakpoint_1 (bnum, allflag) printf_filtered ("\n"); } + if (b->thread != -1) + { + /* FIXME should make an annotation for this */ + printf_filtered ("\tstop only in thread %d\n", b->thread); + } + if (show_breakpoint_hit_counts && b->hit_count) { /* FIXME should make an annotation for this */ |