From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Elizabeth Chastain To: eliz@is.elta.co.il Cc: gdb-patches@sourceware.cygnus.com Subject: Re: [RFA] "maint print psymbols" with large section tables Date: Thu, 01 Mar 2001 12:44:00 -0000 Message-id: <200103012044.MAA12224@bosch.cygnus.com> X-SW-Source: 2001-03/msg00023.html Eli Zaretskii writes: > It doesn't have the zeo entries. That's true. I don't think it needs the zero entries, because all the non-zero entries have index numbers. My use case is: Sun Ultrasparc 60 Solaris 2.6 native target program with 945 sections (namely, gdb itself) gdb built with SECT_OFF_MAX=1024, MAX_SECTIONS=1024 (gdb) break main (gdb) run (gdb) maint print psymbols xx.psym "maint print psymbols" takes 23 seconds to execute and produces a 7.1 megabyte output file. 74% of that output file is the zero entries in section offset tables. On a slower machine (400 MHz Intel PII) with bigger section tables (2048 lines), "maint print psymbols" takes so long to run that gdb.base/maint.exp times out and fails. > I'm not opposed to the change in the format of the output. My > reservations were only about omitting part of the symbol entries. You mean section table entries -- I'm not touching symbols at all. Michael