aboutsummaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1996-07-17 06:03:26 +0000
committerStu Grossman <grossman@cygnus>1996-07-17 06:03:26 +0000
commit647e52ea3a4b9ced141f6bd1b8c88174193c337c (patch)
tree9a621cec4062d4f7aeef36b572ff5698ef16d80e /gdb/breakpoint.c
parent9498be1a0550a8e41694a4b46928815327644a95 (diff)
downloadgdb-647e52ea3a4b9ced141f6bd1b8c88174193c337c.zip
gdb-647e52ea3a4b9ced141f6bd1b8c88174193c337c.tar.gz
gdb-647e52ea3a4b9ced141f6bd1b8c88174193c337c.tar.bz2
Changes from the FSF for Hurd thread support.
Diffstat (limited to 'gdb/breakpoint.c')
-rw-r--r--gdb/breakpoint.c13
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 */