Subversion Repositories HelenOS-historic

Rev

Rev 292 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 292 Rev 332
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 < native_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 >= native_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
}