This is the mail archive of the gdb-patches@sources.redhat.com 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]

Re: [rfa] ENUM BITFIELD, here it comes again


+ /* Rearranged: used ENUM_BITFIELD and rearranged field order in
+    all the space critical structures (plus struct minimal_symbol).
+    Memory usage dropped from 99360768 bytes to 90001408 bytes.
+    I measured this with before-and-after tests of
+    "HEAD-old-gdb -readnow HEAD-old-gdb" and
+    "HEAD-new-gdb -readnow HEAD-old-gdb" on native i686-pc-linux-gnu,
+    red hat linux 8, with LD_LIBRARY_PATH=/usr/lib/debug,
+    typing "maint space 1" at the first command prompt.
+    --chastain 2003-08-21  */

What effect does it have without -readnow but with say:


	$ gdb gdb
	(gdb) break internal_error
	(gdb) run
	(gdb) maint internal-error
	(gdb) backtrace

which is kind of closer to the typical users:

	$ gdb foo
	(gdb) run
	Segmentation fault
	(gdb) bt
	(gdb) list
	(gdb) print pointer
	$1 = 0
	<bugger>
	(gdb)^D

i.e., very few symbols are really loaded.

Andrew



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