This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] DWARF-2 enumerators typo
- From: Daniel Jacobowitz <drow at false dot org>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 20 Feb 2004 21:16:06 -0500
- Subject: [patch] DWARF-2 enumerators typo
As discussed on gdb@. This will probably introduce a startup time
slowdown for C++ programs using lots of enumerators, but clears up
the slowdown for C code. I'm meanwhile chugging away at
inter-compilation-unit reference support, likely to ameliorate this
problem.
Checked in; thanks, Elena.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2004-02-20 Daniel Jacobowitz <drow@mvista.com>
* dwarf2read.c (add_partial_symbol): Fix typo in adding enumerators
to the partial symbol table.
Index: dwarf2read.c
===================================================================
RCS file: /cvs/src/src/gdb/dwarf2read.c,v
retrieving revision 1.134
diff -u -p -r1.134 dwarf2read.c
--- dwarf2read.c 14 Feb 2004 15:46:32 -0000 1.134
+++ dwarf2read.c 21 Feb 2004 02:11:20 -0000
@@ -1562,8 +1562,8 @@ add_partial_symbol (struct partial_die_i
add_psymbol_to_list (actual_name, strlen (actual_name),
VAR_DOMAIN, LOC_CONST,
cu->language == language_cplus
- ? &objfile->static_psymbols
- : &objfile->global_psymbols,
+ ? &objfile->global_psymbols
+ : &objfile->static_psymbols,
0, (CORE_ADDR) 0, cu->language, objfile);
break;
default: