Closed cahirwpz closed 1 year ago
Please note I'm using a fresh build without my patches:
>>> show version
GNU gdb (GDB) 10.0.50.220509-071035-git
Important: I'm still using STABS format (gcc-2.95.3) instead of DWARF.
info files
adds the sizes of the previous sections, which is wrong.
Is there a chance you'll fix it? I understand you may consider it to be a minor bug not worth your precious time...
Works like a charm! I verified the output of info files
for a handful of binaries and it's correct.
Thank you for fixing that!
I'm in a process of writing a loader for demo. The demo consists of several parts in AmigaHunk format. Namely
system.exe
which is resident executable, and one executable file for each effect. You can think ofsystem.exe
as if was an operating system which sole purpose is to load effects into memory, run them and unload.To debug such beast I need gdb to handle two or more AmigaHunk files to be loaded into memory. Let's consider two files
system.exe
andplayahx.exe
. First is loaded by bootloader:...and its section addresses are reported through
gdbserver
using qOffset replyText=00c7c604;Data=00c7fc74;Bss=00c7fda0
.However when you ask
gdb
about section addresses it reports:To add to this confusion if I ask
gdb
to print minimal symbol table it shows following:So it seems that in symbol table
.data
and.bss
sections have right values. If I askgdb
to print values of variables placed in.data
and.bss
sections it does it correctly.This is a minor bug, but more will follow in next issues I'll report.