This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 4/6] Implement support for SystemTap probes
- From: Sergio Durigan Junior <sergiodj at redhat dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 07 May 2012 16:53:49 -0300
- Subject: Re: [PATCH 4/6] Implement support for SystemTap probes
- References: <20120507193538.GA6283@host2.jankratochvil.net>
On Monday, May 07 2012, Jan Kratochvil wrote:
> I have found I have asked three times on this list (IIRC even elsewhere) to
> fix this debuginfo probes bug and in the end it got checked in with this bug
> anyway. Could you fix it, please?
You are right, I am sorry. I was sure I had fixed the bug, but now I
see that I actually hacked the wrong function. Does this patch work for
you?
Thanks,
--
Sergio
2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
* probe.c (collect_probes): Filtering debuginfo object files.
diff --git a/gdb/probe.c b/gdb/probe.c
index ee94f9c..832e57c 100644
--- a/gdb/probe.c
+++ b/gdb/probe.c
@@ -303,6 +303,9 @@ collect_probes (char *objname, char *provider, char *probe_name,
if (! objfile->sf || ! objfile->sf->sym_probe_fns)
continue;
+ if (objfile->separate_debug_objfile_backlink != NULL)
+ continue;
+
if (objname)
{
if (regexec (&obj_pat, objfile->name, 0, NULL, 0) != 0)