From: Pedro Alves <palves@redhat.com>
To: Abhijit Ray Chaudhury <abhijit.ray.chaudhury@gmail.com>
Cc: gdb@sourceware.org
Subject: Re: Fwd: Question regarding core dump debugging using gdb on armv4
Date: Mon, 08 Apr 2013 16:48:00 -0000 [thread overview]
Message-ID: <5162F4E7.10103@redhat.com> (raw)
In-Reply-To: <CAACKNgVn9ni5m4x3sX1cYW6ZmyeSAD0aY6tJNsVbU1LmYd-AqQ@mail.gmail.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
prev parent reply other threads:[~2013-04-08 16:48 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CAACKNgWzC9t=OeO1N=EpoDGHtb5L6HssehYmEBJEuLC71O9hmQ@mail.gmail.com>
[not found] ` <CAACKNgVpk_JE_vOnB+3D3XVh=mE7Gww8nKpWQ3JOYwzmnXsApQ@mail.gmail.com>
2013-04-04 3:30 ` Abhijit Ray Chaudhury
2013-04-04 9:19 ` Pedro Alves
2013-04-08 3:27 ` Abhijit Ray Chaudhury
2013-04-08 16:37 ` Pedro Alves
2013-04-08 16:56 ` Pedro Alves
2013-04-08 3:54 ` Abhijit Ray Chaudhury
2013-04-08 16:48 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5162F4E7.10103@redhat.com \
--to=palves@redhat.com \
--cc=abhijit.ray.chaudhury@gmail.com \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox