Subversion Repositories HelenOS

Rev

Rev 332 | Rev 404 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 332 Rev 338
Line 37... Line 37...
37
char * get_symtab_entry(__native addr)
37
char * get_symtab_entry(__native addr)
38
{
38
{
39
    count_t i;
39
    count_t i;
40
 
40
 
41
    for (i=1;symbol_table[i].address_le;++i) {
41
    for (i=1;symbol_table[i].address_le;++i) {
42
        if (addr < u64_le2host(symbol_table[i].address_le))
42
        if (addr < __u64_le2host(symbol_table[i].address_le))
43
            break;
43
            break;
44
    }
44
    }
45
    if (addr >= u64_le2host(symbol_table[i-1].address_le))
45
    if (addr >= __u64_le2host(symbol_table[i-1].address_le))
46
        return symbol_table[i-1].symbol_name;
46
        return symbol_table[i-1].symbol_name;
47
    return NULL;
47
    return NULL;
48
}
48
}