debugger: Fix breakpoint hit message
This commit is contained in:
parent
64e0a02754
commit
c90448075f
|
@ -26,7 +26,7 @@ impl Command {
|
||||||
Info => println!("{}", debugger.cpu),
|
Info => println!("{}", debugger.cpu),
|
||||||
SingleStep => {
|
SingleStep => {
|
||||||
if let Some(bp) = debugger.check_breakpoint() {
|
if let Some(bp) = debugger.check_breakpoint() {
|
||||||
println!("breakpoint #{} reached!", bp);
|
println!("hit breakpoint #0x{:08x}!", bp);
|
||||||
debugger.delete_breakpoint(bp);
|
debugger.delete_breakpoint(bp);
|
||||||
} else {
|
} else {
|
||||||
match debugger.cpu.step(&mut debugger.sysbus) {
|
match debugger.cpu.step(&mut debugger.sysbus) {
|
||||||
|
@ -40,7 +40,7 @@ impl Command {
|
||||||
}
|
}
|
||||||
Continue => loop {
|
Continue => loop {
|
||||||
if let Some(bp) = debugger.check_breakpoint() {
|
if let Some(bp) = debugger.check_breakpoint() {
|
||||||
println!("breakpoint #{} reached!", bp);
|
println!("hit breakpoint #0x{:08x}!", bp);
|
||||||
debugger.delete_breakpoint(bp);
|
debugger.delete_breakpoint(bp);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue