This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix PR tdep/12352: Handle str pc, [Rd, #imm] in displaced stepping
- From: "Ulrich Weigand" <uweigand at de dot ibm dot com>
- To: yao at codesourcery dot com (Yao Qi)
- Cc: Richard dot Earnshaw at buzzard dot freeserve dot co dot uk (Richard Earnshaw), gdb-patches at sourceware dot org, julian at codesourcery dot com
- Date: Mon, 31 Jan 2011 16:40:30 +0100 (CET)
- Subject: Re: [patch] Fix PR tdep/12352: Handle str pc, [Rd, #imm] in displaced stepping
Yao Qi wrote.
> How about this insn sequence, which should comply with ABI?
>
> sub sp, #4
> str pc, [sp]
> ldr r4, [sp]
> add sp, #4
Why then not simply this:
e92d8000 push {pc}
e8bd0010 pop {r4}
which should do the same but still is just two instructions?
Bye,
Ulrich
--
Dr. Ulrich Weigand
GNU Toolchain for Linux on System z and Cell BE
Ulrich.Weigand@de.ibm.com