summaryrefslogtreecommitdiffstats
path: root/dwflpp.cxx
diff options
context:
space:
mode:
authorMark Wielaard <mjw@redhat.com>2009-06-23 10:20:07 +0200
committerMark Wielaard <mjw@redhat.com>2009-06-23 10:23:47 +0200
commitfcc30d6d020ebf1df7d05809074015c8f0990c22 (patch)
treefe9e4ef77b6a2dff3c46a301a8a7ba6dbd64ad39 /dwflpp.cxx
parentac72d42e6de0b96fa3e7f9245b50288ad399e4b5 (diff)
downloadsystemtap-steved-fcc30d6d020ebf1df7d05809074015c8f0990c22.tar.gz
systemtap-steved-fcc30d6d020ebf1df7d05809074015c8f0990c22.tar.xz
systemtap-steved-fcc30d6d020ebf1df7d05809074015c8f0990c22.zip
PR 10313 Build error due to deprecation of elf_getshstrndx in elfutils.
* dwflpp.h: Check elfutils version, define elf_getshdrstrndx as elf_getshstrndx if elfutils 0.142 detected. * dwflpp.cxx (get_blacklist_section): Use elf_getshdrstrndx. * tapsets.cxx (probe_table): Likewise. (prepare_section_rejection): Likewise.
Diffstat (limited to 'dwflpp.cxx')
-rw-r--r--dwflpp.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwflpp.cxx b/dwflpp.cxx
index 61627e16..5991d1a1 100644
--- a/dwflpp.cxx
+++ b/dwflpp.cxx
@@ -2316,7 +2316,7 @@ dwflpp::get_blacklist_section(Dwarf_Addr addr)
{
Elf_Scn* scn = 0;
size_t shstrndx;
- dwfl_assert ("getshstrndx", elf_getshstrndx (elf, &shstrndx));
+ dwfl_assert ("getshdrstrndx", elf_getshdrstrndx (elf, &shstrndx));
while ((scn = elf_nextscn (elf, scn)) != NULL)
{
GElf_Shdr shdr_mem;