Fwd: Question regarding core dump debugging using gdb on armv4
Pedro Alves
palves@redhat.com
Mon Apr 8 16:48:00 GMT 2013
On 04/08/2013 04:54 AM, Abhijit Ray Chaudhury wrote:
> Pedro,
>
> In solib-svr4.c function
>
> static CORE_ADDR
> elf_locate_base (void) {
> ...
> /* Find DT_DEBUG. */
> if (scan_dyntag (DT_DEBUG, exec_bfd, &dyn_ptr)
> || scan_dyntag_auxv (DT_DEBUG, &dyn_ptr))
> return dyn_ptr;
>
> /* This may be a static executable. Look for the symbol
> conventionally named _r_debug, as a last resort. */
> msymbol = lookup_minimal_symbol ("_r_debug", NULL, symfile_objfile);
> if (msymbol != NULL)
> return SYMBOL_VALUE_ADDRESS (msymbol);
>
> Are you asking me going through this section of the code ?
Not sure what you mean, as I didn't ask anything, but
if you're asking if that's the GDB code that implements
what I explained, then yes.
--
Pedro Alves
More information about the Gdb
mailing list