[ltrace-commits] 29/40: removed, commented testing code

Petr Machata pmachata-guest at moszumanska.debian.org
Sun May 11 22:38:55 UTC 2014


This is an automated email from the git hooks/post-receive script.

pmachata-guest pushed a commit to branch master
in repository ltrace.

commit 92c0fb8feec18a1f84b0f73b1e3c2d41cfb5011a
Author: Dima Kogan <dima at secretsauce.net>
Date:   Wed Apr 30 04:25:41 2014 -0700

    removed, commented testing code
---
 dwarf_prototypes.c | 26 +-------------------------
 1 file changed, 1 insertion(+), 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)
 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/ltrace.git



More information about the ltrace-commits mailing list