public inbox for archer-commits@sourceware.org help / color / mirror / Atom feed
From: tromey@sourceware.org To: archer-commits@sourceware.org Subject: [SCM] archer-sergiodj-stap: add text offset to probe address also, make some variables more local Date: Tue, 15 Mar 2011 20:24:00 -0000 [thread overview] Message-ID: <20110315202421.27023.qmail@sourceware.org> (raw) 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.
reply other threads:[~2011-03-15 20:24 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20110315202421.27023.qmail@sourceware.org \ --to=tromey@sourceware.org \ --cc=archer-commits@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).