diff --git a/nemu/include/debug.h b/nemu/include/debug.h index 7a2cd8a..e29416e 100644 --- a/nemu/include/debug.h +++ b/nemu/include/debug.h @@ -48,6 +48,4 @@ #define TODO() panic("please implement me") - - #endif diff --git a/nemu/src/monitor/sdb/addrexp.y b/nemu/src/monitor/sdb/addrexp.y index 93c1cc0..cd2e6c9 100644 --- a/nemu/src/monitor/sdb/addrexp.y +++ b/nemu/src/monitor/sdb/addrexp.y @@ -31,6 +31,11 @@ input expression : number { $$ = $1; } + | expression '=' '=' expression { $$ = ($1 == $3); } + | expression '>' '=' expression { $$ = ($1 >= $3); } + | expression '<' '=' expression { $$ = ($1 <= $3); } + | expression '>' expression { $$ = ($1 > $3); } + | expression '<' expression { $$ = ($1 < $3); } | expression '+' expression { $$ = $1 + $3; } | expression '-' expression { $$ = $1 - $3; } | expression '*' expression { $$ = $1 * $3; }