We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 34ddfd7 commit 7bb0a89Copy full SHA for 7bb0a89
src/gdb/exec_result/recv/value.rs
@@ -18,7 +18,8 @@ pub fn recv_exec_result_value(state: &mut State, value: &String) {
18
} else {
19
// program is stopped, get the current pc
20
let pc: Vec<&str> = value.split_whitespace().collect();
21
- let pc = pc[0].strip_prefix("0x").unwrap();
22
- state.current_pc = u64::from_str_radix(pc, 16).unwrap();
+ if let Some(pc) = pc[0].strip_prefix("0x") {
+ state.current_pc = u64::from_str_radix(pc, 16).unwrap();
23
+ }
24
}
25
0 commit comments