This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/sparc] Add handling of stack-check probes
- From: Daniel Jacobowitz <drow at false dot org>
- To: Joel Brobecker <brobecker at adacore dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 10 Apr 2007 11:34:00 -0400
- Subject: Re: [RFA/sparc] Add handling of stack-check probes
- References: <20070328225013.GN3866@adacore.com>
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