diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2021-11-19 22:31:55 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-02-06 15:48:19 -0500 |
commit | c1e35bc9c6b9d7efe0f720394b1febe71bbc728b (patch) | |
tree | 8b0481da88602b1f00848f161d7493612ca179c8 /gdb/symtab.c | |
parent | af39c5c8749757724a0f62dcb51be59cf3ecc678 (diff) | |
download | gdb-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.c | 2 |
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); |