This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: add-symbol-file/load and scripts
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Jerome Guitton <guitton at adacore dot com>
- Cc: gdb at sourceware dot org
- Date: Tue, 2 Jun 2009 09:47:50 -0700
- Subject: Re: add-symbol-file/load and scripts
- References: <20090602162718.GA21116@adacore.com>
On Tue, Jun 2, 2009 at 9:27 AM, Jerome Guitton <guitton@adacore.com> wrote:
> the text's address, as initialized
> in the symbol file itself, would be the appropriate defaut.
AFAIU, on any UNIX system it would be appropriate default *only* for ET_EXEC.
For non-prelinked ET_DYN, one needs to add the base load address.
> We can ask ourselves if 0x6c000 would not have been an appropriate default
> for the second parameter of add-symbol-file... I am not sure it makes
> complete sense for any object format, though.
I think you've restricted your universe in the above statement to embedded
systems. My universe does not intersect with it :-(
Cheers,
--
Paul Pluzhnikov