diff --git a/nemu/src/monitor/sdb/addrexp.y b/nemu/src/monitor/sdb/addrexp.y index 6f0d0df..e04165d 100644 --- a/nemu/src/monitor/sdb/addrexp.y +++ b/nemu/src/monitor/sdb/addrexp.y @@ -43,7 +43,7 @@ expression } | '-' number { $$ = -$2; } | '*' expression { - printf("deref: %u\n", $2); + printf("deref: %u - %u\n", $2, vaddr_read($2, WORD_BYTES)); $$ = vaddr_read($2, WORD_BYTES); } | '(' expression ')' { $$ = $2; }