Rev 2925 | Rev 4377 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2925 | Rev 3424 | ||
---|---|---|---|
Line 37... | Line 37... | ||
37 | 37 | ||
38 | #include <symtab.h> |
38 | #include <symtab.h> |
39 | #include <byteorder.h> |
39 | #include <byteorder.h> |
40 | #include <func.h> |
40 | #include <func.h> |
41 | #include <print.h> |
41 | #include <print.h> |
- | 42 | #include <arch/types.h> |
|
- | 43 | #include <typedefs.h> |
|
42 | 44 | ||
43 | /** Return entry that seems most likely to correspond to argument. |
45 | /** Return entry that seems most likely to correspond to argument. |
44 | * |
46 | * |
45 | * Return entry that seems most likely to correspond |
47 | * Return entry that seems most likely to correspond |
46 | * to address passed in the argument. |
48 | * to address passed in the argument. |
Line 137... | Line 139... | ||
137 | 139 | ||
138 | i = 0; |
140 | i = 0; |
139 | while (symtab_search_one(name, &i)) { |
141 | while (symtab_search_one(name, &i)) { |
140 | addr = uint64_t_le2host(symbol_table[i].address_le); |
142 | addr = uint64_t_le2host(symbol_table[i].address_le); |
141 | realname = symbol_table[i].symbol_name; |
143 | realname = symbol_table[i].symbol_name; |
142 | printf("%.*p: %s\n", sizeof(uintptr_t) * 2, addr, realname); |
144 | printf("%p: %s\n", addr, realname); |
143 | i++; |
145 | i++; |
144 | } |
146 | } |
145 | } |
147 | } |
146 | 148 | ||
147 | /** Symtab completion |
149 | /** Symtab completion |