From 29a4acaa94787b4d22bd0d2ceb1c590990e4361f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Sandmann=20Pedersen?= Date: Sun, 8 Oct 2006 04:07:18 +0000 Subject: [PATCH] Delete debug spew --- ChangeLog | 4 ++++ binfile.c | 2 ++ elfparser.c | 10 ++++++++++ process.c | 5 +---- 4 files changed, 17 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index bec1a166..789abb43 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2006-10-08 Soren Sandmann + + * Delete various debug spew + 2006-10-07 Soren Sandmann Deal with address offsets. Address lookup is now: diff --git a/binfile.c b/binfile.c index 4e7b36cd..9e13b317 100644 --- a/binfile.c +++ b/binfile.c @@ -204,7 +204,9 @@ bin_file_lookup_symbol (BinFile *bin_file, if (sym) { +#if 0 g_print ("found %lx => %s\n", address, bin_symbol_get_name (bin_file, sym)); +#endif return (const BinSymbol *)sym; } } diff --git a/elfparser.c b/elfparser.c index c8ed2b32..7784995d 100644 --- a/elfparser.c +++ b/elfparser.c @@ -95,7 +95,9 @@ find_section (ElfParser *parser, { int i; +#if 0 g_print ("looking for section %s ... ", name); +#endif for (i = 0; i < parser->n_sections; ++i) { @@ -103,12 +105,16 @@ find_section (ElfParser *parser, if (strcmp (section->name, name) == 0) { +#if 0 g_print ("found it as number %d with offset %d\n", i, section->offset); +#endif return section; } } +#if 0 g_print ("not found\n"); +#endif return NULL; } @@ -513,14 +519,18 @@ elf_parser_lookup_symbol (ElfParser *parser, address += text->load_address; +#if 0 g_print ("the address we are looking up is %p\n", address); +#endif result = do_lookup (parser->symbols, address, 0, parser->n_symbols - 1); +#if 0 if (result) { g_print ("found %s at %lx\n", elf_parser_get_sym_name (parser, result), result->address); } +#endif if (result) { diff --git a/process.c b/process.c index 195799ed..96edab49 100644 --- a/process.c +++ b/process.c @@ -580,12 +580,9 @@ process_lookup_symbol (Process *process, gulong address) g_print ("map address: %lx\n", map->start); g_print ("map offset: %lx\n", map->offset); -#endif g_print ("address before: %lx (%s)\n", address, map->filename); -#if 0 } -#endif -#if 0 + g_print ("address before: \n"); #endif