]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdb/buildsym.c
Set section index when setting a symbol's block
authorTom Tromey <tromey@adacore.com>
Fri, 13 Jan 2023 16:17:27 +0000 (09:17 -0700)
committerTom Tromey <tromey@adacore.com>
Wed, 8 Feb 2023 15:20:12 +0000 (08:20 -0700)
commit5abbfa982215a5bcd2bf2c0b92cbb005464dc927
tree05b3c8db1334df004607495ec65bee99f05433b5
parentd401e7bf04c0949dcc5e3d83143b75efc19d5f1e
Set section index when setting a symbol's block

When a symbol's block is set, the block has the runtime section offset
applied.  So, it seems to me that the symbol implicitly is in the same
section as the block.  Therefore, this patch sets the symbol's section
index at this same spot.
gdb/buildsym.c