This is the mail archive of the gdb@sourceware.org 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: Fwd: Question regarding core dump debugging using gdb on armv4


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


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