This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFA] watch for ^c in maint info {symtabs,psymtabs}
- From: dje at google dot com (Doug Evans)
- To: gdb-patches at sourceware dot org
- Date: Sat, 4 Oct 2008 00:28:25 -0700 (PDT)
- Subject: [RFA] watch for ^c in maint info {symtabs,psymtabs}
If debugging a large app, it's painful if ^c doesn't work in
maint info {symtabs,psymtabs}.
Ok to check in?
2008-10-04 Doug Evans <dje@google.com>
* symmisc.c (maintenance_info_symtabs): Watch for ^c.
(maintenance_info_psymtabs): Ditto.
Index: symmisc.c
===================================================================
RCS file: /cvs/src/src/gdb/symmisc.c,v
retrieving revision 1.58
diff -u -p -u -p -r1.58 symmisc.c
--- symmisc.c 3 Oct 2008 16:36:10 -0000 1.58
+++ symmisc.c 4 Oct 2008 07:23:59 -0000
@@ -937,6 +937,8 @@ maintenance_info_symtabs (char *regexp,
actually find a symtab whose name matches. */
int printed_objfile_start = 0;
+ QUIT;
+
ALL_OBJFILE_SYMTABS (objfile, symtab)
if (! regexp
|| re_exec (symtab->filename))
@@ -988,6 +990,8 @@ maintenance_info_psymtabs (char *regexp,
actually find a symtab whose name matches. */
int printed_objfile_start = 0;
+ QUIT;
+
ALL_OBJFILE_PSYMTABS (objfile, psymtab)
if (! regexp
|| re_exec (psymtab->filename))