Date: Thu, 1 Jul 2010 17:05:26 -0400 From: John Baldwin <john@baldwin.cx> To: freebsd-arch@freebsd.org Cc: Kostik Belousov <kostikbel@gmail.com> Subject: Re: Access to siginfo for the signal from debugger Message-ID: <201007011705.26173.john@baldwin.cx> In-Reply-To: <20100701134217.GM13238@deviant.kiev.zoral.com.ua> References: <20100701134217.GM13238@deviant.kiev.zoral.com.ua>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thursday 01 July 2010 09:42:17 am Kostik Belousov wrote: > Hi, > below is the patch that provides the debugger with access to siginfo > of the signal that stopped the debuggee. This allows to see a lot more > details for the cause of the process stop. E.g. you can see a fault > address if process get SIGSEGV or SIGBUS, you can distinguish between > breakpoint-generated SIGTRAP and non-breakpoint, whether the signal > was send due to external event etc. > > The change to struct ptrace_lwpinfo is backward-compatible in the sense > that programs that were compiled with old definition for the struct will > work on new kernels. Nice! Does gdb "just work" with these changes or does it need patching as well? -- John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201007011705.26173.john>