This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: Fwd: Question regarding core dump debugging using gdb on armv4
- From: Pedro Alves <palves at redhat dot com>
- To: Abhijit Ray Chaudhury <abhijit dot ray dot chaudhury at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Mon, 08 Apr 2013 17:48:39 +0100
- Subject: Re: Fwd: Question regarding core dump debugging using gdb on armv4
- References: <CAACKNgWzC9t=OeO1N=EpoDGHtb5L6HssehYmEBJEuLC71O9hmQ at mail dot gmail dot com> <CAACKNgVpk_JE_vOnB+3D3XVh=mE7Gww8nKpWQ3JOYwzmnXsApQ at mail dot gmail dot com> <CAACKNgXh91dW5P23pA5fwR+qSUHXbuzP1R9qMKiGbUg=qjsLTg at mail dot gmail dot com> <515D459A dot 9080802 at redhat dot com> <CAACKNgVn9ni5m4x3sX1cYW6ZmyeSAD0aY6tJNsVbU1LmYd-AqQ at mail dot gmail dot com>
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