_base::operator++ ();
return *this;
}
- inline wrapped_input_iterator operator++ (int magic) // postfix
+ inline wrapped_input_iterator operator++ (int) // postfix
{
- return wrapped_input_iterator (_base::operator++ (magic));
+ wrapped_input_iterator pre = *this;
+ ++*this;
+ return pre;
}
inline wrapped_input_iterator &operator-- () // prefix
{
_base::operator-- ();
return *this;
}
- inline wrapped_input_iterator operator-- (int magic) // postfix
+ inline wrapped_input_iterator operator-- (int) // postfix
{
- return wrapped_input_iterator (_base::operator-- (magic));
+ wrapped_input_iterator pre = *this;
+ --*this;
+ return pre;
}
inline const _base &base () const
+2009-08-25 Roland McGrath <roland@redhat.com>
+
+ * print-die.hh: New file with extern decls. Contents moved to ...
+ * print-die.cc: ... here, new file.
+ * Makefile.am (dwarf_print_SOURCES, dwarf_edit_SOURCES): Build it.
+
2009-08-21 Roland McGrath <roland@redhat.com>
* print-die.hh (print_die_main, print_file): Add --silent option.
# XXX later the C++ stuff will be in libdw.so directly
libdwpp = ../libdw/libdwpp.a $(libdw)
-dwarf_print_SOURCES = dwarf-print.cc
+dwarf_print_SOURCES = dwarf-print.cc print-die.cc
dwarf_print_LDADD = $(libdwpp) $(libmudflap) -ldl
-dwarf_edit_SOURCES = dwarf_edit.cc
+dwarf_edit_SOURCES = dwarf_edit.cc print-die.cc
dwarf_edit_LDADD = $(libdwpp) $(libmudflap) -ldl
arextract_LDADD = $(libelf) $(libmudflap)
#include <errno.h>
#include <error.h>
#include <fcntl.h>
+#include <libintl.h>
#include "c++/dwarf"
Network licensing program, please visit www.openinventionnetwork.com
<http://www.openinventionnetwork.com>. */
+#ifdef HAVE_CONFIG_H
+# include <config.h>
+#endif
+
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include "c++/dwarf_edit"
#include "c++/dwarf_output"
+using namespace elfutils;
+using namespace std;
+
static bool print_offset;
static bool sort_attrs;
static bool elide_refs;
static enum { copy_none, copy_edit, copy_output } make_copy;
-static void
+void
print_die_main (int &argc, char **&argv, unsigned int &depth)
{
/* Set locale. */
}
template<typename file>
-static void
+void
print_file (const char *name, const file &dw, const unsigned int limit)
{
cout << name << ":\n";
abort ();
}
}
+
+// Explicit instantiations.
+template void print_file (const char *, const dwarf &,
+ const unsigned int);
+template void print_file (const char *, const dwarf_edit &,
+ const unsigned int);