Re: just-in-time debugging?

2001-05-01 Thread Sean Hunter
My approach is something like the others. I developed a small wrapper to catch unaligned traps on alpha. What it does is run a program in gdb with some specified arguments (it also sets up so that the process gets a SIGBUS when it does an unaligned access, but that's probably not relevant

Re: just-in-time debugging?

2001-05-01 Thread Sean Hunter
My approach is something like the others. I developed a small wrapper to catch unaligned traps on alpha. What it does is run a program in gdb with some specified arguments (it also sets up so that the process gets a SIGBUS when it does an unaligned access, but that's probably not relevant

RE: just-in-time debugging?

2001-04-28 Thread Davide Libenzi
On 28-Apr-2001 Tony Hoyle wrote: > On 28 Apr 2001 13:44:48 -0700, Davide Libenzi wrote: >> Sorry but why don't You run Your application with gdb ? >> Once Your program crashes You'll get the prompt and You'll be able to >> stack-trace and watching whatever You need. >> The solution I use to be

RE: just-in-time debugging?

2001-04-28 Thread Tony Hoyle
On 28 Apr 2001 13:44:48 -0700, Davide Libenzi wrote: > Sorry but why don't You run Your application with gdb ? > Once Your program crashes You'll get the prompt and You'll be able to > stack-trace and watching whatever You need. > The solution I use to be able to get inside the program even when

RE: just-in-time debugging?

2001-04-28 Thread Davide Libenzi
On 28-Apr-2001 Tony Hoyle wrote: > Is there a way (kernel or userspace... doesn't matter) that gdb/ddd > could be invoked when a program is about > to dump core, or perhaps on a certain signal (that the app could deliver > to itself when required). The latter case > is what I need right now, as

Re: just-in-time debugging?

2001-04-28 Thread Dan Kegel
Tony Hoyle ([EMAIL PROTECTED]) wrote: > Is there a way that gdb/ddd could be invoked when a program is about > to dump core...? Yes, I use that to get a symbolic stack dump after a crash, although I find that the gdb so invoked doesn't accept interactive commands, and I have to use 'kill -9'

Re: just-in-time debugging?

2001-04-28 Thread Dan Kegel
Tony Hoyle ([EMAIL PROTECTED]) wrote: Is there a way that gdb/ddd could be invoked when a program is about to dump core...? Yes, I use that to get a symbolic stack dump after a crash, although I find that the gdb so invoked doesn't accept interactive commands, and I have to use 'kill -9'

RE: just-in-time debugging?

2001-04-28 Thread Davide Libenzi
On 28-Apr-2001 Tony Hoyle wrote: Is there a way (kernel or userspace... doesn't matter) that gdb/ddd could be invoked when a program is about to dump core, or perhaps on a certain signal (that the app could deliver to itself when required). The latter case is what I need right now, as I

RE: just-in-time debugging?

2001-04-28 Thread Davide Libenzi
On 28-Apr-2001 Tony Hoyle wrote: On 28 Apr 2001 13:44:48 -0700, Davide Libenzi wrote: Sorry but why don't You run Your application with gdb ? Once Your program crashes You'll get the prompt and You'll be able to stack-trace and watching whatever You need. The solution I use to be able to