This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] Make 'info func' interruptible.


Greetings,

This is rather on the obvious side.

For a large (300MB) debug binary, doing 'info func' (without regex)
puts GDB into 10 minute uniterruptible 100% CPU spin.

While improving the 10 minute wait will hopefully be a subject of
another patch, attached patch makes the wait interruptible.

Thanks,
--
Paul Pluzhnikov

2009-07-22  Paul Pluzhnikov  <ppluzhnikov@google.com>

	* symtab.c (search_symbols): Add QUIT.


Index: symtab.c
===================================================================
RCS file: /cvs/src/src/gdb/symtab.c,v
retrieving revision 1.213
diff -u -p -u -r1.213 symtab.c
--- symtab.c	2 Jul 2009 17:21:07 -0000	1.213
+++ symtab.c	23 Jul 2009 01:47:08 -0000
@@ -3243,6 +3243,8 @@ search_symbols (char *regexp, domain_enu
     {
       ALL_MSYMBOLS (objfile, msymbol)
       {
+        QUIT;
+
 	if (MSYMBOL_TYPE (msymbol) == ourtype ||
 	    MSYMBOL_TYPE (msymbol) == ourtype2 ||
 	    MSYMBOL_TYPE (msymbol) == ourtype3 ||


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]