public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM]  archer-sergiodj-stap: add text offset to probe address also, make some variables more local
@ 2011-03-15 20:24 tromey
  0 siblings, 0 replies; only message in thread
From: tromey @ 2011-03-15 20:24 UTC (permalink / raw)
  To: archer-commits

The branch, archer-sergiodj-stap has been updated
       via  b7a8258a05fc4c3088b9b3f7e668400ca7fbb27a (commit)
      from  539bfe42f84f1fc3b568758505b012b3c0956083 (commit)

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

- Log -----------------------------------------------------------------
commit b7a8258a05fc4c3088b9b3f7e668400ca7fbb27a
Author: Tom Tromey <tromey@redhat.com>
Date:   Tue Mar 15 14:23:41 2011 -0600

    add text offset to probe address
    also, make some variables more local

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

Summary of changes:
 gdb/elfread.c |   10 ++++++----
 1 files changed, 6 insertions(+), 4 deletions(-)

First 500 lines of diff:
diff --git a/gdb/elfread.c b/gdb/elfread.c
index ec4ba9f..34b9bf0 100644
--- a/gdb/elfread.c
+++ b/gdb/elfread.c
@@ -1167,10 +1167,6 @@ elf_get_probes (struct objfile *objfile, int *num_probes)
 {
   struct stap_probe *ret = NULL;
   struct stap_probe_per_objfile *probes_per_objfile;
-  bfd *obfd = objfile->obfd;
-  bfd_vma base = get_base_address (obfd);
-  struct sdt_note *iter;
-  int i;
 
   /* Initially, no probes.  */
   *num_probes = 0;
@@ -1187,6 +1183,12 @@ elf_get_probes (struct objfile *objfile, int *num_probes)
 	 the objfile has, and then fill in the necessary information
 	 for each one.  */
 
+      bfd *obfd = objfile->obfd;
+      bfd_vma base = (get_base_address (obfd)
+		      + ANOFFSET (objfile->section_offsets,
+				  SECT_OFF_TEXT (objfile)));
+      struct sdt_note *iter;
+      int i;
       int n = 0;
 
       if (! elf_tdata (obfd)->sdt_note_head)


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


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

only message in thread, other threads:[~2011-03-15 20:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-15 20:24 [SCM] archer-sergiodj-stap: add text offset to probe address also, make some variables more local tromey

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).