[PATCH] add gdbarch_in_function_epilogue_p hook for sparc64

Joel Brobecker brobecker@adacore.com
Wed Dec 4 17:02:00 GMT 2013


> >     On 10/16/2013 03:18 PM, Jose E. Marchesi wrote:
> >     > Note that despite sparc_in_function_epilogue_p must work on both sparc32
> >     > and sparc64 the patch only installs the hook on sparc64 targets.  This
> >     > is because I can't test it in sparc32.
> >     
> >     Can't sparc64 run sparc32 binaries?  Something like -m32 ?
> > 
> > Yes it can.  But right now what I have is a 64bit-only userspace.  I
> > will hook gdbarch_in_function_epilogue_p on the sparc32 target as soon
> > as I can test it properly.
> 
> Ah, OK.
> 
> >     +     RESTORE is almost always found in the delay slot of a branch
> >     +     instruction that transfer control to the caller, such as JMPL.

I have access to sparc32 systems running Solaris, except I am under
strict orders to not run the official testsuite on it. But if there is
something else I can do, including running AdaCore's testsuite, or
doing a specific check by hand, etc, do let me know!

-- 
Joel



More information about the Gdb-patches mailing list