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: [RFA/sparc] Add handling of stack-check probes


On Wed, Mar 28, 2007 at 03:50:13PM -0700, Joel Brobecker wrote:
> Hello,
> 
> GDB is currently unable to unwind past stack-check probes that are
> inserted by the compiler when compiling with -stack-check. The attached
> patch adds handling for the sequences currently emitted by GCC. Eric
> Botcazou told us that they can take 3 forms:

The patch seems right to me, though I don't know too much about SPARC.

> 2007-03-28  Joel Brobecker  <brobecker@adacore.com>
> 
>         * sparc-tdep.c (X_RS2): New macro.
>         (sparc_skip_stack_check): New function.
>         (sparc_analyze_prologue): Adjust PC past stack probing
>         sequence if necessary.
> 
> Tested on sparc-solaris, no regression.
> OK to apply?

Yes, go ahead.

-- 
Daniel Jacobowitz
CodeSourcery


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