public inbox for frysk-cvs@sourceware.org help / color / mirror / Atom feed
From: cagney@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Remove bias when looking up source info. Date: Sat, 07 Jun 2008 12:08:00 -0000 [thread overview] Message-ID: <20080607120830.9577.qmail@sourceware.org> (raw) The branch, master has been updated via 9d9ce378409bbd2c2ea56101bb4e549f9e977a82 (commit) from 02ae0f21ab019d5d002da565721e2e3d26a275a7 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email. - Log ----------------------------------------------------------------- commit 9d9ce378409bbd2c2ea56101bb4e549f9e977a82 Author: Andrew Cagney <cagney@redhat.com> Date: Sat Jun 7 08:05:24 2008 -0400 Remove bias when looking up source info. frysk-imports/elfutils/libdwfl/ChangeLog 2008-06-07 Andrew Cagney <cagney@redhat.com> * dwfl_module_getsrc.c (dwfl_module_getsrc): Remove bias from address. Fix frysk/6600, redhat/450229. ----------------------------------------------------------------------- Summary of changes: frysk-imports/elfutils/libdwfl/ChangeLog | 6 ++++++ .../elfutils/libdwfl/dwfl_module_getsrc.c | 2 ++ 2 files changed, 8 insertions(+), 0 deletions(-) First 500 lines of diff: diff --git a/frysk-imports/elfutils/libdwfl/ChangeLog b/frysk-imports/elfutils/libdwfl/ChangeLog index f72180b..d70c3da 100644 --- a/frysk-imports/elfutils/libdwfl/ChangeLog +++ b/frysk-imports/elfutils/libdwfl/ChangeLog @@ -1,3 +1,9 @@ +2008-06-07 Andrew Cagney <cagney@redhat.com> + + * dwfl_module_getsrc.c (dwfl_module_getsrc): Remove bias from + address. Fix frysk/6600, redhat/450229. + + 2008-05-21 Petr Machata <pmachata@redhat.com> * dwfl_module_getdwarf.c (open_elf): Assume that debuginfo of EXEC diff --git a/frysk-imports/elfutils/libdwfl/dwfl_module_getsrc.c b/frysk-imports/elfutils/libdwfl/dwfl_module_getsrc.c index 84c7eaa..a413189 100644 --- a/frysk-imports/elfutils/libdwfl/dwfl_module_getsrc.c +++ b/frysk-imports/elfutils/libdwfl/dwfl_module_getsrc.c @@ -63,6 +63,8 @@ dwfl_module_getsrc (Dwfl_Module *mod, Dwarf_Addr addr) error = __libdwfl_cu_getsrclines (cu); if (likely (error == DWFL_E_NOERROR)) { + /* Remove bias. */ + addr = addr - bias; /* The lines are sorted by address, so we can use binary search. */ size_t l = 0, u = cu->die.cu->lines->nlines; while (l < u) hooks/post-receive -- frysk system monitor/debugger
reply other threads:[~2008-06-07 12:08 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=20080607120830.9577.qmail@sourceware.org \ --to=cagney@sourceware.org \ --cc=frysk-cvs@sourceware.org \ --cc=frysk@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).