Re: Signal backtrace function

2008-04-15 Thread Detlev Zundel
Hi Jocke, > On Mon, 2008-04-14 at 18:09 +0200, Detlev Zundel wrote: >> Hi Jocke, >> >> > I made my own backtrace function for printing >> > a trace from within a signal handler. Maybe it >> > can be useful for the kernel too? General >> > comments welcome. >> >> Probably a dumb question, but doe

Re: Signal backtrace function

2008-04-14 Thread Joakim Tjernlund
On Mon, 2008-04-14 at 18:09 +0200, Detlev Zundel wrote: > Hi Jocke, > > > I made my own backtrace function for printing > > a trace from within a signal handler. Maybe it > > can be useful for the kernel too? General > > comments welcome. > > Probably a dumb question, but doesn't backtrace(3) fr

Re: Signal backtrace function

2008-04-14 Thread Detlev Zundel
Hi Jocke, > I made my own backtrace function for printing > a trace from within a signal handler. Maybe it > can be useful for the kernel too? General > comments welcome. Probably a dumb question, but doesn't backtrace(3) from glibc work architecture independent already? Why do you need to reim

Signal backtrace function

2008-04-09 Thread Joakim Tjernlund
Hi I made my own backtrace function for printing a trace from within a signal handler. Maybe it can be useful for the kernel too? General comments welcome. Jocke #include #include #include #include #define __USE_GNU #include /* This is the stack layout we see with every stack frame.