]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
libdw/
authorRoland McGrath <roland@redhat.com>
Mon, 27 Feb 2006 04:54:26 +0000 (04:54 +0000)
committerRoland McGrath <roland@redhat.com>
Mon, 27 Feb 2006 04:54:26 +0000 (04:54 +0000)
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.

libdw/ChangeLog
libdw/libdw.map
libdwfl/ChangeLog
libdwfl/Makefile.am
libdwfl/dwfl_version.c [new file with mode: 0644]
libdwfl/libdwfl.h

index 17ad81b2e909827639f8f8596da650b465657b1a..ca8ae9be0cde6668faccc19c2cd0edadcd246481 100644 (file)
@@ -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.
index 4057916b99f175562fd7690b8d3050a273353428..08b01982fa8dd4bbd58cf7cbcbaf4ce4c8061c6a 100644 (file)
@@ -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:
     *;
index 82c04586f57503fe02382a1a06d9b9d782501a8c..1f75d6bf9cf527ca215a26254aa1154b4b55ea89 100644 (file)
@@ -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.
 
index 787427ca54cbf7a77bf63ac40fa4df40f314b5e6..1c73109e65f672f8999fd2affbc7c615c1cb0e4e 100644 (file)
@@ -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 (file)
index 0000000..3360784
--- /dev/null
@@ -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;
+}
index 4135fc3de5f559ef79d16b276e054946172b41d7..3dfbea56db25c4639a78af17e14c5e5b5e71938b 100644 (file)
@@ -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);