This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: Patch: add systemtap-style marker to _Unwind_DebugHook
- From: Josh Stone <jistone at redhat dot com>
- To: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- Cc: Tom Tromey <tromey at redhat dot com>, gcc-patches at gcc dot gnu dot org, systemtap at sources dot redhat dot com
- Date: Fri, 14 Jan 2011 11:45:48 -0800
- Subject: Re: Patch: add systemtap-style marker to _Unwind_DebugHook
- References: <m3k4i7p9l3.fsf@fleche.redhat.com> <yddd3nzffa9.fsf@manam.CeBiTec.Uni-Bielefeld.DE>
On 01/14/2011 11:37 AM, Rainer Orth wrote:
> Tom Tromey <tromey@redhat.com> writes:
>
>> @@ -1493,7 +1497,11 @@ static void
>> _Unwind_DebugHook (void *cfa __attribute__ ((__unused__)),
>> void *handler __attribute__ ((__unused__)))
>> {
>> +#ifdef HAVE_SYS_SDT_H
>> + STAP_PROBE2 (libgcc, unwind, cfa, handler);
>> +#else
>> asm ("");
>> +#endif
>> }
>>
>> /* Install TARGET into CURRENT so that we can return to it. This is a
>
> This is wrong: Solaris 10+ has <sys/sdt.h> for DTrace, but only defines
> DTRACE_* there.
SystemTap's header also defines DTRACE_PROBE2 for compatibility, so you
could use that instead. The parsing for GDB to use it on Solaris will
be very different though.
Josh