Re: question about why gdb needs executable's binary

Jirka Koutný <[email protected]>
Newsgroups gmane.comp.gdb.devel,gmane.comp.gdb.general
Message-ID <CAH5nFm-g4wJXVAC32a1edn-oL_7YcUp3ELTDQ0hzLw74hii4Gg@mail.gmail.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 <[email protected]>:

> On Mär 13 2019, Jirka Koutný <[email protected]> wrote:
>
> > If we assume debugging a core file generated by an excutable with
> stripped
> > 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.
>
> --
> Andreas Schwab, SUSE Labs, [email protected]
> GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
> "And now for something completely different."
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.