aboutsummaryrefslogtreecommitdiff
path: root/gdb/symtab.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2021-11-19 22:31:55 -0500
committerSimon Marchi <simon.marchi@polymtl.ca>2022-02-06 15:48:19 -0500
commitc1e35bc9c6b9d7efe0f720394b1febe71bbc728b (patch)
tree8b0481da88602b1f00848f161d7493612ca179c8 /gdb/symtab.c
parentaf39c5c8749757724a0f62dcb51be59cf3ecc678 (diff)
downloadgdb-c1e35bc9c6b9d7efe0f720394b1febe71bbc728b.zip
gdb-c1e35bc9c6b9d7efe0f720394b1febe71bbc728b.tar.gz
gdb-c1e35bc9c6b9d7efe0f720394b1febe71bbc728b.tar.bz2
gdb: remove COMPUNIT_BLOCK_LINE_SECTION macro, add getter/setter
Add a getter and a setter for a compunit_symtab's block line section. Remove the corresponding macro and adjust all callers. Change-Id: I3eb1a323388ad55eae8bfa45f5bc4a08dc3df455
Diffstat (limited to 'gdb/symtab.c')
-rw-r--r--gdb/symtab.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/symtab.c b/gdb/symtab.c
index a0bc1df..70a9f10 100644
--- a/gdb/symtab.c
+++ b/gdb/symtab.c
@@ -338,7 +338,7 @@ compunit_symtab::find_call_site (CORE_ADDR pc) const
return nullptr;
CORE_ADDR delta
- = this->objfile ()->section_offsets[COMPUNIT_BLOCK_LINE_SECTION (this)];
+ = this->objfile ()->section_offsets[this->block_line_section ()];
CORE_ADDR unrelocated_pc = pc - delta;
struct call_site call_site_local (unrelocated_pc, nullptr, nullptr);