This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


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

Re: -fstack-check on Linux x86--Dumb question...



"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>

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