public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-gbenson-stap-rtld-mainline: Also stop on "map_failed" where appropriate
@ 2013-01-08 12:12 gary
  0 siblings, 0 replies; only message in thread
From: gary @ 2013-01-08 12:12 UTC (permalink / raw)
  To: archer-commits

The branch, archer-gbenson-stap-rtld-mainline has been updated
       via  21fd080d18f280c19fdc5489726dcd6c66eb5fbf (commit)
      from  ae8418af429928fdb0d91710ce7aea34aba272f4 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email.

- Log -----------------------------------------------------------------
commit 21fd080d18f280c19fdc5489726dcd6c66eb5fbf
Author: Gary Benson <gbenson@redhat.com>
Date:   Tue Jan 8 12:12:14 2013 +0000

    Also stop on "map_failed" where appropriate

-----------------------------------------------------------------------

Summary of changes:
 gdb/solib-svr4.c |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

First 500 lines of diff:
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index 5eb84ba..a46fd74 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -160,6 +160,7 @@ static const struct probe_info probe_info[] =
   { "init_start", NAMESPACE_NO_ACTION },
   { "init_complete", NAMESPACE_RELOAD },
   { "map_start", NAMESPACE_NO_ACTION },
+  { "map_failed", NAMESPACE_NO_ACTION },
   { "reloc_complete", NAMESPACE_UPDATE_OR_RELOAD },
   { "unmap_start", NAMESPACE_NO_ACTION },
   { "unmap_complete", NAMESPACE_RELOAD },
@@ -2043,10 +2044,11 @@ svr4_create_solib_event_breakpoints (struct gdbarch *gdbarch,
 
 	      /* Fedora 17, RHEL 6.2, and RHEL 6.3 shipped with an
 		 early version of the probes code in which the probes'
-		 names were prefixed with "rtld_".  The locations and
-		 arguments of the probes are otherwise the same, so we
-		 check for the prefixed version if the unprefixed
-		 probes are not found.  */
+		 names were prefixed with "rtld_" and the "map_failed"
+		 probe did not exist.  The locations of the probes are
+		 otherwise the same, so we check for probes with
+		 prefixed names if probes with unprefixed names are
+		 not present.  */
 
 	      if (with_prefix)
 		strncat (name, "rtld_", sizeof (name) - 1);
@@ -2056,6 +2058,9 @@ svr4_create_solib_event_breakpoints (struct gdbarch *gdbarch,
 	      info->probes[i] = find_probes_in_objfile (os->objfile, "rtld",
 							name);
 
+	      if (!strcmp (name, "rtld_map_failed"))
+		continue;
+
 	      if (!VEC_length (probe_p, info->probes[i]))
 		{
 		  free_probes (info);


hooks/post-receive
--
Repository for Project Archer.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2013-01-08 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-08 12:12 [SCM] archer-gbenson-stap-rtld-mainline: Also stop on "map_failed" where appropriate gary

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).