diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2022-02-06 22:41:58 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2022-04-27 22:05:03 -0400 |
commit | 6395b62847e581acc3e8fa179444b824d17b3d68 (patch) | |
tree | e6ac20292c6824c192a09d04ce34cc6d3c0800f0 /gdb/inline-frame.c | |
parent | 086d03c91ec1487ed3cc96554d29b2120dd37b5b (diff) | |
download | fsf-binutils-gdb-6395b62847e581acc3e8fa179444b824d17b3d68.zip fsf-binutils-gdb-6395b62847e581acc3e8fa179444b824d17b3d68.tar.gz fsf-binutils-gdb-6395b62847e581acc3e8fa179444b824d17b3d68.tar.bz2 |
gdb: remove BLOCK_ENTRY_PC macro
Replace with equivalent method.
Change-Id: I0e033095e7358799930775e61028b48246971a7d
Diffstat (limited to 'gdb/inline-frame.c')
-rw-r--r-- | gdb/inline-frame.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/inline-frame.c b/gdb/inline-frame.c index bd173a1..c502674 100644 --- a/gdb/inline-frame.c +++ b/gdb/inline-frame.c @@ -181,7 +181,7 @@ inline_frame_this_id (struct frame_info *this_frame, in the frame ID (and eventually, to set breakpoints). */ func = get_frame_function (this_frame); gdb_assert (func != NULL); - (*this_id).code_addr = BLOCK_ENTRY_PC (func->value_block ()); + (*this_id).code_addr = func->value_block ()->entry_pc (); (*this_id).artificial_depth++; } @@ -362,7 +362,7 @@ skip_inline_frames (thread_info *thread, bpstat *stop_chain) { /* See comments in inline_frame_this_id about this use of BLOCK_ENTRY_PC. */ - if (BLOCK_ENTRY_PC (cur_block) == this_pc + if (cur_block->entry_pc () == this_pc || block_starting_point_at (this_pc, cur_block)) { /* Do not skip the inlined frame if execution |