This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: -fstack-check on Linux x86--Dumb question...
- To: "George T. Talbot" <george at phat dot com>
- Subject: Re: -fstack-check on Linux x86--Dumb question...
- From: Geoff Keating <geoffk at cygnus dot com>
- Date: 18 Mar 2000 16:27:15 -0800
- CC: gcc at gcc dot gnu dot org
- References: <001901bf90eb$82923f00$18db08cf@lottalove.phat.com>
"George T. Talbot" <george@phat.com> writes:
> <whine>
> It would be a nice patch to GDB and/or GNU/Linux to print:
>
> "Program received SIGSEGV at address 0x2394782 while attempting
> to read from address 0xFDFEFFF."
>
> Right now, it just gives me the program counter. Of course, I'm not really
> sure of how to patch GDB or the kernel to give me such support.
> </whine>
The program 'catchsegv' which comes with GNU libc 2.1 and later does
exactly this.
--
- Geoffrey Keating <geoffk@cygnus.com>