This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]