mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
remove accidentally committed debug spew
This commit is contained in:
@ -330,7 +330,10 @@ read_symbols (BinFile *bf)
|
|||||||
|
|
||||||
symbol.address = bfd_asymbol_value (bfd_symbols[i]) - load_address;
|
symbol.address = bfd_asymbol_value (bfd_symbols[i]) - load_address;
|
||||||
name = demangle (bfd, bfd_asymbol_name (bfd_symbols[i]));
|
name = demangle (bfd, bfd_asymbol_name (bfd_symbols[i]));
|
||||||
|
#if 0
|
||||||
symbol.name = g_strdup_printf ("%s (%s)", name, bf->filename);
|
symbol.name = g_strdup_printf ("%s (%s)", name, bf->filename);
|
||||||
|
#endif
|
||||||
|
symbol.name = g_strdup ("%s", name);
|
||||||
free (name);
|
free (name);
|
||||||
|
|
||||||
g_array_append_vals (symbols, &symbol, 1);
|
g_array_append_vals (symbols, &symbol, 1);
|
||||||
@ -418,10 +421,12 @@ bin_file_lookup_symbol (BinFile *bf,
|
|||||||
*/
|
*/
|
||||||
if (strcmp (result->name, "call_gmon_start") == 0)
|
if (strcmp (result->name, "call_gmon_start") == 0)
|
||||||
return &(bf->undefined);
|
return &(bf->undefined);
|
||||||
|
#if 0
|
||||||
else if (strncmp (result->name, "__do_global_ctors_aux", strlen ("__do_global_ctors_aux")) == 0)
|
else if (strncmp (result->name, "__do_global_ctors_aux", strlen ("__do_global_ctors_aux")) == 0)
|
||||||
{
|
{
|
||||||
g_print ("ctors: %p, pos: %p\n", address, result->address);
|
g_print ("ctors: %p, pos: %p\n", address, result->address);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user