@@ -709,6 +725,26 @@ int machine__resolve(struct machine *machine, struct addr_location *al,that seems tricky.. what if user specify more leading zeros,
ret = strlist__has_entry(symbol_conf.sym_list,
al_addr_str);
}
+ if (!ret && al->map) {
+ snprintf(al_addr_str, sz, "0x%"PRIx64,
+ al->map->unmap_ip(al->map, al->addr));
+ ret = strlist__has_entry(symbol_conf.sym_list,
+ al_addr_str);
+ if (!ret) {
+ /* Check for hex without "0x" prefix */
+ snprintf(al_addr_str, sz, "%"PRIx64,
+ al->map->unmap_ip(al->map, al->addr));
+ ret = strlist__has_entry(symbol_conf.sym_list,
+ al_addr_str);
+ }
I think it'd be better to search intlist instead
we could move all 'address' entries from sym_list to
new intlist (in symbol__init) and use it for this search
jirka