This is the mail archive of the gdb-prs@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]

[Bug symtab/15412] Performance regression in "info {func,var,types} foo" (mostly info types).


http://sourceware.org/bugzilla/show_bug.cgi?id=15412

--- Comment #3 from asmwarrior <asmwarrior at gmail dot com> 2013-05-24 14:33:41 UTC ---
As DJE said, the workaround looks like below:
 gdb/typeprint.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gdb/typeprint.c b/gdb/typeprint.c
index 4e70593..6e62922 100644
--- a/gdb/typeprint.c
+++ b/gdb/typeprint.c
@@ -62,7 +62,7 @@ const struct type_print_options type_print_raw_options =

 static struct type_print_options default_ptype_flags =
 {
-  0,                /* raw */
+  1,                /* raw */
   1,                /* print_methods */
   1,                /* print_typedefs */
   NULL,                /* local_typedefs */

Adding a command like below should be better I think:
"show print type raw"
"set print type raw"

We have already "set print type method" and "set print type typedef"

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


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