Skip to content

Commit

Permalink
Fixed bug
Browse files Browse the repository at this point in the history
  • Loading branch information
theIDinside committed May 31, 2022
1 parent 2c5a496 commit afc16fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/gdb.js
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@ class GDB extends GDBMixin(GDBBase) {
}
} else if (payload.data.reason == "signal-received") {
this.#onSignal(payload);
} else if (payload.data.reason.includes("watchpoint")) {
} else if (payload.data.reason && payload.data.reason.includes("watchpoint")) {
// todo(simon): look into if we can ignore onStopped messages from GDB entirely and move that entire logic
// into onExec as it *always* contains more information than onStopped
let msg = `Old value: ${payload.data.value.old}\nNew value: ${payload.data.value.new}`;
Expand Down

0 comments on commit afc16fa

Please sign in to comment.