public inbox for frysk-cvs@sourceware.org
help / color / mirror / Atom feed
* [SCM]  master: Remove bias when looking up source info.
@ 2008-06-07 12:08 cagney
  0 siblings, 0 replies; only message in thread
From: cagney @ 2008-06-07 12:08 UTC (permalink / raw)
  To: frysk-cvs

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


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

only message in thread, other threads:[~2008-06-07 12:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-06-07 12:08 [SCM] master: Remove bias when looking up source info cagney

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