* After elf is loaded into memory, how is the symbol table updated?
@ 2023-07-12 11:46 hilbert
0 siblings, 0 replies; only message in thread
From: hilbert @ 2023-07-12 11:46 UTC (permalink / raw)
To: gdb
[-- Attachment #1: Type: text/plain, Size: 449 bytes --]
Hi,
If I want to set a breakpoint on a function, I can read the elf file/dwarf to get the relative position of the function.
After entering the `run` command, how does gdb know the virtual address of the function, and when to update the symbol table, I did not find the relevant function;
For example, function 1: address 0x6aaf in the elf file
After run address function 1: address 0x55555556aaf
Who can give me a hint?
Thank you so much;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-12 11:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-12 11:46 After elf is loaded into memory, how is the symbol table updated? hilbert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).