diff options
author | fche <fche> | 2005-06-21 17:18:11 +0000 |
---|---|---|
committer | fche <fche> | 2005-06-21 17:18:11 +0000 |
commit | b98a8d739983dec32c79cbd69c4295075df3133d (patch) | |
tree | 7ac46512eb1b5058035b951dd4663ca68e7f1c9f /tapsets.cxx | |
parent | aac3ed25e8dc7355b5f28fae2878f644df14ef7d (diff) | |
download | systemtap-steved-b98a8d739983dec32c79cbd69c4295075df3133d.tar.gz systemtap-steved-b98a8d739983dec32c79cbd69c4295075df3133d.tar.xz systemtap-steved-b98a8d739983dec32c79cbd69c4295075df3133d.zip |
2005-06-21 Frank Ch. Eigler <fche@redhat.com>
* config.in, configure: Regenerated.
* tapsets.cxx: Make dwarf code conditional on new elfutils header.
Diffstat (limited to 'tapsets.cxx')
-rw-r--r-- | tapsets.cxx | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/tapsets.cxx b/tapsets.cxx index cb4f68ea..0096a3a7 100644 --- a/tapsets.cxx +++ b/tapsets.cxx @@ -19,9 +19,11 @@ #include <stdexcept> #include <vector> +#ifdef HAVE_ELFUTILS_LIBDWFL_H extern "C" { #include <elfutils/libdwfl.h> } +#endif #include <fnmatch.h> @@ -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 */ } |