This is the mail archive of the
mailing list for the GDB project.
Re: question about why gdb needs executable's binary
- From: Jirka Koutný <koutnji2 at gmail dot com>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gdb at gnu dot org
- Date: Wed, 13 Mar 2019 15:41:33 +0000
- Subject: Re: question about why gdb needs executable's binary
- References: <CAH5nFm8dpqyFWuttO+aZOCBAAMjEeuEtv=xwhyFjjMpu8cTs3g@mail.gmail.com> <email@example.com>
Thanks Andreas! Aha that's interesting.. hmm so, is there some read-only
segment, that would contain information necessary for the output of 'where'?
Den ons. 13. mar. 2019 kl. 14:34 skrev Andreas Schwab <firstname.lastname@example.org>:
> On Mär 13 2019, Jirka Koutný <email@example.com> wrote:
> > If we assume debugging a core file generated by an excutable with
> > symbols (that gdb is able to find and load correctly in my case),
> > I was wondering why does gdb still need the executable's binary as
> > well?
> A core file only contains data from modified mappings. Any data from
> read-only mappings needs to be read from the original files.
> Andreas Schwab, SUSE Labs, firstname.lastname@example.org
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."