From b98a8d739983dec32c79cbd69c4295075df3133d Mon Sep 17 00:00:00 2001 From: fche Date: Tue, 21 Jun 2005 17:18:11 +0000 Subject: 2005-06-21 Frank Ch. Eigler * config.in, configure: Regenerated. * tapsets.cxx: Make dwarf code conditional on new elfutils header. --- tapsets.cxx | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'tapsets.cxx') diff --git a/tapsets.cxx b/tapsets.cxx index cb4f68ea..0096a3a7 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -19,9 +19,11 @@ #include #include +#ifdef HAVE_ELFUTILS_LIBDWFL_H extern "C" { #include } +#endif #include @@ -334,7 +336,7 @@ be_derived_probe::emit_probe_entries (translator_output* o, unsigned j) // ------------------------------------------------------------------------ // Dwarf derived probes. // ------------------------------------------------------------------------ - +#ifdef HAVE_ELFUTILS_LIBDWFL_H // Helper for dealing with selected portions of libdwfl in a more readable // fashion, and with specific cleanup / checking / logging options. @@ -1220,6 +1222,7 @@ dwarf_derived_probe::emit_probe_entries (translator_output* o, unsigned i) { } +#endif /* HAVE_ELFUTILS_LIBDWFL_H */ // ------------------------------------------------------------------------ @@ -1232,6 +1235,8 @@ register_standard_tapsets(match_node & root) // Rudimentary binders for begin and end targets root.bind("begin").bind(new be_builder(true)); root.bind("end").bind(new be_builder(false)); - + +#ifdef HAVE_ELFUTILS_LIBDWFL_H dwarf_derived_probe::register_patterns(root); +#endif /* HAVE_ELFUTILS_LIBDWFL_H */ } -- cgit