This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB 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 4/6] Implement support for SystemTap probes


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)


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