This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Patch: add systemtap-style marker to _Unwind_DebugHook


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.

	Rainer

-- 
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]