summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDima Kogan <dima@secretsauce.net>2014-04-30 04:25:41 -0700
committerChanho Park <chanho61.park@samsung.com>2014-08-22 20:38:26 +0900
commit76ec214aac3529ae5923bb8619f8251c0c04e089 (patch)
tree7135a9a598bc917531d4826418aef6f2b2e84109
parent90655dbc92336b2a5ea1838802abce39e175cd88 (diff)
downloadltrace-76ec214aac3529ae5923bb8619f8251c0c04e089.tar.gz
ltrace-76ec214aac3529ae5923bb8619f8251c0c04e089.tar.bz2
ltrace-76ec214aac3529ae5923bb8619f8251c0c04e089.zip
removed, commented testing code
-rw-r--r--dwarf_prototypes.c26
1 files changed, 1 insertions, 25 deletions
diff --git a/dwarf_prototypes.c b/dwarf_prototypes.c
index 90c1d65..df6c5d0 100644
--- a/dwarf_prototypes.c
+++ b/dwarf_prototypes.c
@@ -26,8 +26,6 @@
#include "filter.h"
#include "debug.h"
-//#define DUMP_PROTOTYPES
-
#define complain(die, format, ...) \
debug(DEBUG_FUNCTION, "%s() die '%s' @ 0x%lx: " format, \
__func__, dwarf_diename(die), dwarf_dieoffset(die), \
@@ -44,31 +42,9 @@ static struct arg_type_info* get_type(int* newly_allocated_info,
struct dict* type_dieoffset_hash);
-#if 0
-static bool _dump_dwarf_tree(Dwarf_Die* die, int indent)
-{
- while (1) {
- fprintf(stderr, "%*sprocessing unit: 0x%02x/'%s'\n", indent*4, "",
- dwarf_tag(die), dwarf_diename(die));
-
- Dwarf_Die child;
- if (dwarf_child(die, &child) == 0) {
- if (!_dump_dwarf_tree(&child, indent+1))
- return false;
- }
-
- SIBLING(die);
- }
- return true;
-}
-
-static bool dump_dwarf_tree(Dwarf_Die* die)
-{
- return _dump_dwarf_tree(die, 0);
-}
-#endif
+// debugging functions to dump types that I already parsed
#ifdef DUMP_PROTOTYPES
static bool _dump_ltrace_tree(const struct arg_type_info* info, int indent)
{