This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
FYI: QUIT in "info b"
- From: Tom Tromey <tromey at redhat dot com>
- To: gdb-patches at sourceware dot org
- Date: Mon, 08 Mar 2010 12:48:51 -0700
- Subject: FYI: QUIT in "info b"
- Reply-to: Tom Tromey <tromey at redhat dot com>
I'm checking this in.
I set a lot of breakpoints using rbreak -- by a lot, I mean I did
"rbreak .*" on gdb, resulting in 20,000 breakpoints.
Because it was annoying to type RET at each page, I disabled
pagination. But then I typed "info b" and couldn't interrupt it.
This patch fixes the problem by adding QUIT to the loop in breakpoint_1.
Built and regtested on x86-64 (compile farm).
Tom
2010-03-08 Tom Tromey <tromey@redhat.com>
* breakpoint.c (breakpoint_1): Add "QUIT".
Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.459
diff -u -r1.459 breakpoint.c
--- breakpoint.c 4 Mar 2010 15:37:25 -0000 1.459
+++ breakpoint.c 8 Mar 2010 19:43:12 -0000
@@ -4670,6 +4670,8 @@
annotate_breakpoints_table ();
ALL_BREAKPOINTS (b)
+ {
+ QUIT;
if (bnum == -1
|| bnum == b->number)
{
@@ -4678,6 +4680,7 @@
if (allflag || user_settable_breakpoint (b))
print_one_breakpoint (b, &last_loc, print_address_bits, allflag);
}
+ }
do_cleanups (bkpttbl_chain);