diff options
author | Yvan Roux <yvan.roux@foss.st.com> | 2022-06-01 11:08:00 +0000 |
---|---|---|
committer | Luis Machado <luis.machado@arm.com> | 2022-06-01 11:14:39 +0100 |
commit | 46c7fd95fc42466a5a8c3b3d70925f1a8af68de3 (patch) | |
tree | 67a8520dbea4d9434527ad4da6add6a4c3284cda /gdb/arm-tdep.c | |
parent | de76473c2d9fadca1374992fdd22887a799c2e3e (diff) | |
download | gdb-46c7fd95fc42466a5a8c3b3d70925f1a8af68de3.zip gdb-46c7fd95fc42466a5a8c3b3d70925f1a8af68de3.tar.gz gdb-46c7fd95fc42466a5a8c3b3d70925f1a8af68de3.tar.bz2 |
[arm] Don't use special treatment for PC
In an exception frame the PC register is extracted from the stack
just like other base registers, so there is no need for a special
treatment.
Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@st.com>
Signed-off-by: Yvan Roux <yvan.roux@foss.st.com>
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r-- | gdb/arm-tdep.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 5fbd730..50ec41a 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -3559,15 +3559,6 @@ arm_m_exception_prev_register (struct frame_info *this_frame, return frame_unwind_got_constant (this_frame, prev_regnum, sp_value); } - if (prev_regnum == ARM_PC_REGNUM) - { - CORE_ADDR lr = frame_unwind_register_unsigned (this_frame, ARM_LR_REGNUM); - struct gdbarch *gdbarch = get_frame_arch (this_frame); - - return frame_unwind_got_constant (this_frame, prev_regnum, - arm_addr_bits_remove (gdbarch, lr)); - } - return trad_frame_get_prev_register (this_frame, cache->saved_regs, prev_regnum); } |