This is the mail archive of the
gdb@sourceware.cygnus.com
mailing list for the GDB project.
Re: arguments to add-symbol-file
- To: Elena Zannoni <ezannoni at cygnus dot com>, gdb at sourceware dot cygnus dot com
- Subject: Re: arguments to add-symbol-file
- From: Kevin Buettner <kevinb at cygnus dot com>
- Date: Thu, 23 Mar 2000 17:00:53 -0700
- References: <14554.41686.732151.870885@kwikemart.cygnus.com>
On Mar 23, 6:03pm, Elena Zannoni wrote:
> Why when we use
>
> add-symbol-file <file> 0x1000 0x2000 0x3000
>
> gdb ends up with the following addrs structure, which includes explicit
> entries for .text, .data, and .bss section, plus the same 3 entries
> repeated in the 'other' array?
>
> Would it make sense to have only the 'other' part, or not include
> those three in 'other'?
I think it'd make sense to only have the `other' part.
BTW, did you notice the following comment from symfile.h?
/* Add the section to the others even if it is a
text data or bss section. This is redundent but
eventually, none will be given special treatment */
I think you should ask Fred about it. (There's probably some reason
why it'll be non-trivial to fix.)
Kevin