mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-03 23:56:39 +00:00
* dcache.c (dcache_print_line, dcache_info): Use paddress to print addresses.
This commit is contained in:
parent
25f122dc09
commit
51939b3dd6
@ -437,8 +437,8 @@ dcache_print_line (int index)
|
||||
|
||||
db = (struct dcache_block *) n->value;
|
||||
|
||||
printf_filtered (_("Line %d: address %lx [%d hits]\n"),
|
||||
index, db->addr, db->refs);
|
||||
printf_filtered (_("Line %d: address %s [%d hits]\n"),
|
||||
index, paddress (target_gdbarch, db->addr), db->refs);
|
||||
|
||||
for (j = 0; j < LINE_SIZE; j++)
|
||||
{
|
||||
@ -489,8 +489,8 @@ dcache_info (char *exp, int tty)
|
||||
{
|
||||
struct dcache_block *db = (struct dcache_block *) n->value;
|
||||
|
||||
printf_filtered (_("Line %d: address %lx [%d hits]\n"),
|
||||
i, db->addr, db->refs);
|
||||
printf_filtered (_("Line %d: address %s [%d hits]\n"),
|
||||
i, paddress (target_gdbarch, db->addr), db->refs);
|
||||
i++;
|
||||
refcount += db->refs;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user