This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 2/3] Implement new features needed for handling SystemTap probes
> From: Tom Tromey <tromey@redhat.com>
> Date: Mon, 12 Mar 2012 08:21:00 -0600
>
> >>>>> "Mark" == Mark Kettenis <mark.kettenis@xs4all.nl> writes:
>
> Mark> As far as I can tell SystemTap is Linux-specific. So I'd think its
> Mark> support should go completely in Linux-specific -tdep.c files.
>
> sdt.h is really more like an ELF feature.
Can you elaborate on that? I've googled around a bit but didn't
really find anything that describes how SystemTap works; only stuff
that describes how great it is and how it can be used. I did notice
that DTrace uses a header file with that name as well, but it seems
that the interfaces defined in the DTrace sdt.h are completely
different from the SystemTap one.
All evidence I have points towards the functions in i386-tdep.c being
SystemTap-specific; that's probably why they have "stap" in their name
;). They're only used from i386-linux-tdep.c, so it makes much more
sense to put them there. If somebody ever ports (or reimplements)
SystemTap for another OS, we can always move them. The same thing
holds for arm-tdep.c vs. arm-linux-tdep.c of course.