libdw/
2006-02-22 Roland McGrath <roland@redhat.com>
* 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.
diff --git a/libdw/ChangeLog b/libdw/ChangeLog
index 17ad81b..ca8ae9b 100644
--- a/libdw/ChangeLog
+++ b/libdw/ChangeLog
@@ -1,3 +1,7 @@
+2006-02-22 Roland McGrath <roland@redhat.com>
+
+ * libdw.map: Bump to 0.120; export dwfl_version.
+
2005-12-22 Roland McGrath <roland@redhat.com>
* libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report.
diff --git a/libdw/libdw.map b/libdw/libdw.map
index 4057916..08b0198 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 @@
dwfl_report_offline;
dwfl_standard_argp;
dwfl_standard_find_debuginfo;
+ dwfl_version;
local:
*;
diff --git a/libdwfl/ChangeLog b/libdwfl/ChangeLog
index 82c0458..1f75d6b 100644
--- a/libdwfl/ChangeLog
+++ b/libdwfl/ChangeLog
@@ -1,5 +1,9 @@
2006-02-26 Roland McGrath <roland@redhat.com>
+ * 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 787427c..1c73109 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 @@
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 0000000..3360784
--- /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 4135fc3..3dfbea5 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 @@
/* 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);