How is the location of the breakpoint determined and where is it obtained?

Tom Tromey tom@tromey.com
Wed Jul 26 16:22:05 GMT 2023


>>>>> hilbert via Gdb <gdb@sourceware.org> writes:

> Symbols that can be read from elf files, but we cannot know in advance
> where they will be loaded.  After the run command, where does gdb get
> the exact location of the breakpoint?

> I don't get the information I want in gdb, who can help me?

It's complicated, but you can start by reading
svr4_relocate_main_executable.

Tom


More information about the Gdb mailing list