From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9617 invoked by alias); 7 Jun 2008 12:08:30 -0000 Received: (qmail 9592 invoked by uid 367); 7 Jun 2008 12:08:30 -0000 Date: Sat, 07 Jun 2008 12:08:00 -0000 Message-ID: <20080607120830.9577.qmail@sourceware.org> From: cagney@sourceware.org To: frysk-cvs@sourceware.org Subject: [SCM] master: Remove bias when looking up source info. X-Git-Refname: refs/heads/master X-Git-Reftype: branch X-Git-Oldrev: 02ae0f21ab019d5d002da565721e2e3d26a275a7 X-Git-Newrev: 9d9ce378409bbd2c2ea56101bb4e549f9e977a82 Mailing-List: contact frysk-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: frysk-cvs-owner@sourceware.org Reply-To: frysk@sourceware.org X-SW-Source: 2008-q2/txt/msg00351.txt.bz2 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 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 * 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 + + * dwfl_module_getsrc.c (dwfl_module_getsrc): Remove bias from + address. Fix frysk/6600, redhat/450229. + + 2008-05-21 Petr Machata * 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