Re: question about why gdb needs executable's binary

Andreas Schwab <[email protected]> Wed, 13 Mar 2019 15:34:11 +0100
Newsgroups gmane.comp.gdb.devel,gmane.comp.gdb.general
Message-ID <[email protected]>
On M=C3=A4r 13 2019, Jirka Koutn=C3=BD <[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.

--=20
Andreas Schwab, SUSE Labs, [email protected]
GPG Key fingerprint =3D 0196 BAD8 1CE9 1970 F4BE  1748 E4D4 88E3 0EEA B9D7
"And now for something completely different."