Re: Debugging a process that received Signal
Re: Debugging a process that received Signal
- Subject: Re: Debugging a process that received Signal
- From: Jonas Maebe <email@hidden>
- Date: Sat, 31 Jan 2009 10:29:19 +0100
On 31 Jan 2009, at 08:33, Arnab Ganguly wrote:
Initially from gdb it is being debugged.Once the SIGNAL like
SEGMENTATION
FAULT is received the gdb gets halted.Even going for "continue" I am
not
able to proceed.From other terminal I tried to launch the gdb and
attach it
but still there I am not able to proceed.Only in the signal handler
if I
give some print statement that way I am able to debug.
The only way I know of to debug signal handlers triggered by
"hardware" signals such as SIGBUS, SIGSEGV and SIGFPZ, is to put a
sleep call inside the signal handler (possibly preceded by a write/
printf), start the program without gdb, and then attach gdb to the
process after the signal has been triggered and the process is waiting
in the sleep loop.
Jonas
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden