debugger: Fix breakpoint hit message

This commit is contained in:
Michel Heily 2019-06-28 15:06:38 +03:00
parent 64e0a02754
commit c90448075f

View file

@ -26,7 +26,7 @@ impl Command {
Info => println!("{}", debugger.cpu),
SingleStep => {
if let Some(bp) = debugger.check_breakpoint() {
println!("breakpoint #{} reached!", bp);
println!("hit breakpoint #0x{:08x}!", bp);
debugger.delete_breakpoint(bp);
} else {
match debugger.cpu.step(&mut debugger.sysbus) {
@ -40,7 +40,7 @@ impl Command {
}
Continue => loop {
if let Some(bp) = debugger.check_breakpoint() {
println!("breakpoint #{} reached!", bp);
println!("hit breakpoint #0x{:08x}!", bp);
debugger.delete_breakpoint(bp);
break;
}