[patch] Fix PR tdep/12352: Handle str pc, [Rd, #imm] in displaced stepping

Ulrich Weigand uweigand@de.ibm.com
Mon Jan 31 15:56:00 GMT 2011


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



More information about the Gdb-patches mailing list