public inbox for gdb-cvs@sourceware.org help / color / mirror / Atom feed
From: Luis Machado <luisgpm@sourceware.org> To: gdb-cvs@sourceware.org Subject: [binutils-gdb] [arm] Don't use special treatment for PC Date: Wed, 1 Jun 2022 10:25:09 +0000 (GMT) [thread overview] Message-ID: <20220601102509.0DFA138344C0@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=46c7fd95fc42466a5a8c3b3d70925f1a8af68de3 commit 46c7fd95fc42466a5a8c3b3d70925f1a8af68de3 Author: Yvan Roux <yvan.roux@foss.st.com> Date: Wed Jun 1 11:08:00 2022 +0000 [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> Diff: --- gdb/arm-tdep.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 5fbd730c5a5..50ec41a66b1 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); }
reply other threads:[~2022-06-01 10:25 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20220601102509.0DFA138344C0@sourceware.org \ --to=luisgpm@sourceware.org \ --cc=gdb-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).