add-symbol-file full file
Celelibi <[email protected]>
| Newsgroups | gmane.comp.gdb.devel |
|---|---|
| Message-ID | <CAJR2zJ_ivoVyetWO2u-tf_DHjpX0KYik2_sVMNc61Ytk02UfjA@mail.gmail.com> |
Hello there, I'm currently debugging a boot loader (syslinux) through the gdb-stub of qemu. At some point a file (which happen to be an ELF) is loaded. I can derp around the structures of the main file to find the base address of the loaded file. The ELF file is relocatable, has only one LOAD program header with the fields p_vaddr = p_paddr = 0, which makes things easier. The command add-symbol-file appear as a savior to load the symbols of the file at the right address, but it appear that the address it takes is the load address of the .text section instead of the address where the full file is loaded as I understand. Can't I just tell add-symbol-file that the full file has been loaded at the given address? Or maybe another command? Thanks in advance. Best regards, Celelibi