mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-11 15:40:53 +00:00
*** empty log message ***
This commit is contained in:
@ -317,7 +317,7 @@ read_symbols (BinFile *bf)
|
|||||||
|
|
||||||
symbols = g_array_new (FALSE, FALSE, sizeof (Symbol));
|
symbols = g_array_new (FALSE, FALSE, sizeof (Symbol));
|
||||||
|
|
||||||
/* g_print ("%s: text vma: %x\n", bf->filename, text_section->vma); */
|
/* g_print ("%s: text vma: %x\n", bf->filename, text_section->vma); */
|
||||||
|
|
||||||
for (i = 0; i < n_symbols; i++)
|
for (i = 0; i < n_symbols; i++)
|
||||||
{
|
{
|
||||||
@ -393,6 +393,8 @@ bin_file_lookup_symbol (BinFile *bf,
|
|||||||
return &(bf->undefined);
|
return &(bf->undefined);
|
||||||
|
|
||||||
data = bf->symbols;
|
data = bf->symbols;
|
||||||
|
|
||||||
|
g_print ("looking up %p in %s ", address, bf->filename);
|
||||||
|
|
||||||
if (address < data[last].address)
|
if (address < data[last].address)
|
||||||
{
|
{
|
||||||
@ -416,6 +418,8 @@ bin_file_lookup_symbol (BinFile *bf,
|
|||||||
result = &data[last];
|
result = &data[last];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
g_print ("-> %s\n", result->name);
|
||||||
|
|
||||||
/* If the name is "call_gmon_start", the file probably doesn't
|
/* If the name is "call_gmon_start", the file probably doesn't
|
||||||
* have any other symbols
|
* have any other symbols
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user