This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] Improved linker-debugger interface
On Sat, 05 May 2012 08:10:55 +0200, Sergio Durigan Junior wrote:
> On Saturday, May 05 2012, Jan Kratochvil wrote:
> > There is that
> > gdb_assert (probe_generic->pops == &stap_probe_ops);
> >
> > for this purpose.
>
> Which can only be used inside stap-probe.c.
Why? stap_probe_ops can be made extern-public in stap-probe.h if there is now
a need for it.
But in general there should never be such backend-specific conditional, the
virtualization makes no sense in such case at all.
If the current probe.h interface is insufficient then it should be extended.
I have to look at the Gary's patch more.
Thanks,
Jan