From 0833312829020d8283bdae9cd0a7c3ce995110b4 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Mon, 27 Feb 2006 04:54:26 +0000 Subject: [PATCH] libdw/ 2006-02-22 Roland McGrath * 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 | 4 ++++ libdw/libdw.map | 3 ++- libdwfl/ChangeLog | 4 ++++ libdwfl/Makefile.am | 4 ++-- libdwfl/dwfl_version.c | 21 +++++++++++++++++++++ libdwfl/libdwfl.h | 5 ++++- 6 files changed, 37 insertions(+), 4 deletions(-) create mode 100644 libdwfl/dwfl_version.c diff --git a/libdw/ChangeLog b/libdw/ChangeLog index 17ad81b2e..ca8ae9be0 100644 --- a/libdw/ChangeLog +++ b/libdw/ChangeLog @@ -1,3 +1,7 @@ +2006-02-22 Roland McGrath + + * libdw.map: Bump to 0.120; export dwfl_version. + 2005-12-22 Roland McGrath * libdw.map: Bump to 0.119; export dwfl_linux_proc_maps_report. diff --git a/libdw/libdw.map b/libdw/libdw.map index 4057916b9..08b01982f 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 82c04586f..1f75d6bf9 100644 --- a/libdwfl/ChangeLog +++ b/libdwfl/ChangeLog @@ -1,5 +1,9 @@ 2006-02-26 Roland McGrath + * 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 787427ca5..1c73109e6 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 000000000..3360784db --- /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 4135fc3de..3dfbea56d 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); -- 2.47.2