summaryrefslogtreecommitdiff
path: root/libdwfl
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2010-08-24 15:38:42 -0700
committerRoland McGrath <roland@redhat.com>2010-08-24 15:39:12 -0700
commitde44f133b20ecdd3e8dab9743fe6dce5c69ab85d (patch)
tree0f43372942d06abe1f10896347fe4587cef095e9 /libdwfl
parentf85fe04d960670e61a8942a7077e186faec80ad1 (diff)
downloadelfutils-de44f133b20ecdd3e8dab9743fe6dce5c69ab85d.tar.gz
Add dwfl_dwarf_line, addr2line -F to print out more line info bits.
Diffstat (limited to 'libdwfl')
-rw-r--r--libdwfl/ChangeLog5
-rw-r--r--libdwfl/Makefile.am2
-rw-r--r--libdwfl/libdwfl.h3
3 files changed, 9 insertions, 1 deletions
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index eb8aa8ac..cc6dfb5b 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,3 +1,8 @@
+2010-08-24 Roland McGrath <roland@redhat.com>
+
+ * dwfl_dwarf_line.c: New file.
+ * Makefile.am (libdwfl_a_SOURCES): Add it.
+
2010-08-18 Roland McGrath <roland@redhat.com>
* link_map.c (report_r_debug): Use found name if we have no name,
diff --git a/libdwfl/Makefile.am b/libdwfl/Makefile.am
index 8ec1f4fa..65b38965 100644
--- a/libdwfl/Makefile.am
+++ b/libdwfl/Makefile.am
@@ -53,7 +53,7 @@ libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c dwfl_version.c \
cu.c dwfl_module_nextcu.c dwfl_nextcu.c dwfl_cumodule.c \
dwfl_module_addrdie.c dwfl_addrdie.c \
lines.c dwfl_lineinfo.c dwfl_line_comp_dir.c \
- dwfl_linemodule.c dwfl_linecu.c \
+ dwfl_linemodule.c dwfl_linecu.c dwfl_dwarf_line.c \
dwfl_getsrclines.c dwfl_onesrcline.c \
dwfl_module_getsrc.c dwfl_getsrc.c \
dwfl_module_getsrc_file.c \
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h
index 51e98187..4ea2796c 100644
--- a/libdwfl/libdwfl.h
+++ b/libdwfl/libdwfl.h
@@ -527,6 +527,9 @@ extern const char *dwfl_lineinfo (Dwfl_Line *line, Dwarf_Addr *addr,
int *linep, int *colp,
Dwarf_Word *mtime, Dwarf_Word *length);
+ /* Return the equivalent Dwarf_Line and the bias to apply to its address. */
+extern Dwarf_Line *dwfl_dwarf_line (Dwfl_Line *line, Dwarf_Addr *bias);
+
/* Return the compilation directory (AT_comp_dir) from this line's CU. */
extern const char *dwfl_line_comp_dir (Dwfl_Line *line);