summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2006-02-27 04:54:26 +0000
committerRoland McGrath <[email protected]>2006-02-27 04:54:26 +0000
commit0833312829020d8283bdae9cd0a7c3ce995110b4 (patch)
treee8b9a54c8a58a534ca9b9e92a68c3df064843225
parent687d7e9bd154a4b1f22b5e3ed7c6c904e421e871 (diff)
libdw/
2006-02-22 Roland McGrath <[email protected]> * libdw.map: Bump to 0.120; export dwfl_version. libdwfl/ * dwfl_version.c: New file. * Makefile.am (libdwfl_a_SOURCES): Add it. * libdwfl.h: Declare dwfl_version.
-rw-r--r--libdw/ChangeLog4
-rw-r--r--libdw/libdw.map3
-rw-r--r--libdwfl/ChangeLog4
-rw-r--r--libdwfl/Makefile.am4
-rw-r--r--libdwfl/dwfl_version.c21
-rw-r--r--libdwfl/libdwfl.h5
6 files changed, 37 insertions, 4 deletions
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 17ad81b2..ca8ae9be 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,7 @@
+2006-02-22 Roland McGrath <[email protected]>
+
+ * libdw.map: Bump to 0.120; export dwfl_version.
+
2005-12-22 Roland McGrath <[email protected]>
* libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
diff --git a/libdw/libdw.map b/libdw/libdw.map
index 4057916b..08b01982 100644
--- a/libdw/libdw.map
+++ b/libdw/libdw.map
@@ -1,5 +1,5 @@
ELFUTILS_0 { };
-ELFUTILS_0.119 {
+ELFUTILS_0.120 {
global:
dwarf_abbrevhaschildren;
dwarf_addrdie;
@@ -137,6 +137,7 @@ ELFUTILS_0.119 {
dwfl_report_offline;
dwfl_standard_argp;
dwfl_standard_find_debuginfo;
+ dwfl_version;
local:
*;
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index 82c04586..1f75d6bf 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,5 +1,9 @@
2006-02-26 Roland McGrath <[email protected]>
+ * dwfl_version.c: New file.
+ * Makefile.am (libdwfl_a_SOURCES): Add it.
+ * libdwfl.h: Declare dwfl_version.
+
* offline.c (dwfl_report_offline): Account for dwfl_report_elf having
aligned up from DWFL->offline_next_address when checking for overlap.
diff --git a/libdwfl/Makefile.am b/libdwfl/Makefile.am
index 787427ca..1c73109e 100644
--- a/libdwfl/Makefile.am
+++ b/libdwfl/Makefile.am
@@ -2,7 +2,7 @@
##
## Process this file with automake to create Makefile.in
##
-## Copyright (C) 2005 Red Hat, Inc.
+## Copyright (C) 2005, 2006 Red Hat, Inc.
##
## This program is Open Source software; you can redistribute it and/or
## modify it under the terms of the Open Software License version 1.0 as
@@ -36,7 +36,7 @@ endif
euincludedir = ${includedir}/elfutils
euinclude_HEADERS = libdwfl.h
-libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c \
+libdwfl_a_SOURCES = dwfl_begin.c dwfl_end.c dwfl_error.c dwfl_version.c \
dwfl_module.c dwfl_report_elf.c relocate.c \
derelocate.c offline.c \
dwfl_module_info.c dwfl_getmodules.c \
diff --git a/libdwfl/dwfl_version.c b/libdwfl/dwfl_version.c
new file mode 100644
index 00000000..3360784d
--- /dev/null
+++ b/libdwfl/dwfl_version.c
@@ -0,0 +1,21 @@
+/* Return implementation's version string suitable for printing.
+ Copyright (C) 2006 Red Hat, Inc.
+
+ This program is Open Source software; you can redistribute it and/or
+ modify it under the terms of the Open Software License version 1.0 as
+ published by the Open Source Initiative.
+
+ You should have received a copy of the Open Software License along
+ with this program; if not, you may obtain a copy of the Open Software
+ License version 1.0 from http://www.opensource.org/licenses/osl.php or
+ by writing the Open Source Initiative c/o Lawrence Rosen, Esq.,
+ 3001 King Ranch Road, Ukiah, CA 95482. */
+
+#include "libdwflP.h"
+
+const char *
+dwfl_version (dwfl)
+ Dwfl *dwfl __attribute__ ((unused));
+{
+ return PACKAGE_STRING;
+}
diff --git a/libdwfl/libdwfl.h b/libdwfl/libdwfl.h
index 4135fc3d..3dfbea56 100644
--- a/libdwfl/libdwfl.h
+++ b/libdwfl/libdwfl.h
@@ -1,5 +1,5 @@
/* Interfaces for libdwfl.
- Copyright (C) 2005 Red Hat, Inc.
+ Copyright (C) 2005, 2006 Red Hat, Inc.
This program is Open Source software; you can redistribute it and/or
modify it under the terms of the Open Software License version 1.0 as
@@ -59,6 +59,9 @@ extern Dwfl *dwfl_begin (const Dwfl_Callbacks *callbacks);
/* End a session. */
extern void dwfl_end (Dwfl *);
+/* Return implementation's version string suitable for printing. */
+extern const char *dwfl_version (Dwfl *);
+
/* Return error code of last failing function call. This value is kept
separately for each thread. */
extern int dwfl_errno (void);