mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-10 07:00:53 +00:00
Delete debug spew
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2006-10-08 Soren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
|
* Delete various debug spew
|
||||||
|
|
||||||
2006-10-07 Soren Sandmann <sandmann@daimi.au.dk>
|
2006-10-07 Soren Sandmann <sandmann@daimi.au.dk>
|
||||||
|
|
||||||
Deal with address offsets. Address lookup is now:
|
Deal with address offsets. Address lookup is now:
|
||||||
|
|||||||
@ -204,7 +204,9 @@ bin_file_lookup_symbol (BinFile *bin_file,
|
|||||||
|
|
||||||
if (sym)
|
if (sym)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
g_print ("found %lx => %s\n", address, bin_symbol_get_name (bin_file, sym));
|
g_print ("found %lx => %s\n", address, bin_symbol_get_name (bin_file, sym));
|
||||||
|
#endif
|
||||||
return (const BinSymbol *)sym;
|
return (const BinSymbol *)sym;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
10
elfparser.c
10
elfparser.c
@ -95,7 +95,9 @@ find_section (ElfParser *parser,
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
|
#if 0
|
||||||
g_print ("looking for section %s ... ", name);
|
g_print ("looking for section %s ... ", name);
|
||||||
|
#endif
|
||||||
|
|
||||||
for (i = 0; i < parser->n_sections; ++i)
|
for (i = 0; i < parser->n_sections; ++i)
|
||||||
{
|
{
|
||||||
@ -103,12 +105,16 @@ find_section (ElfParser *parser,
|
|||||||
|
|
||||||
if (strcmp (section->name, name) == 0)
|
if (strcmp (section->name, name) == 0)
|
||||||
{
|
{
|
||||||
|
#if 0
|
||||||
g_print ("found it as number %d with offset %d\n", i, section->offset);
|
g_print ("found it as number %d with offset %d\n", i, section->offset);
|
||||||
|
#endif
|
||||||
return section;
|
return section;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
g_print ("not found\n");
|
g_print ("not found\n");
|
||||||
|
#endif
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
@ -513,14 +519,18 @@ elf_parser_lookup_symbol (ElfParser *parser,
|
|||||||
|
|
||||||
address += text->load_address;
|
address += text->load_address;
|
||||||
|
|
||||||
|
#if 0
|
||||||
g_print ("the address we are looking up is %p\n", address);
|
g_print ("the address we are looking up is %p\n", address);
|
||||||
|
#endif
|
||||||
|
|
||||||
result = do_lookup (parser->symbols, address, 0, parser->n_symbols - 1);
|
result = do_lookup (parser->symbols, address, 0, parser->n_symbols - 1);
|
||||||
|
|
||||||
|
#if 0
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
g_print ("found %s at %lx\n", elf_parser_get_sym_name (parser, result), result->address);
|
g_print ("found %s at %lx\n", elf_parser_get_sym_name (parser, result), result->address);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -580,12 +580,9 @@ process_lookup_symbol (Process *process, gulong address)
|
|||||||
|
|
||||||
g_print ("map address: %lx\n", map->start);
|
g_print ("map address: %lx\n", map->start);
|
||||||
g_print ("map offset: %lx\n", map->offset);
|
g_print ("map offset: %lx\n", map->offset);
|
||||||
#endif
|
|
||||||
g_print ("address before: %lx (%s)\n", address, map->filename);
|
g_print ("address before: %lx (%s)\n", address, map->filename);
|
||||||
#if 0
|
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
#if 0
|
|
||||||
g_print ("address before: \n");
|
g_print ("address before: \n");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user