Skip to content

Commit

Permalink
V0.4.8
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Nov 21, 2021
1 parent 0ca7f51 commit 8fbeb1a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ChangeLog
* Pathnames for gdb-servers can be OS specific. For instance `cortex-debug.openocdPath` can be suffixed with one of `.linux`, `.osx` or `.windows`. For instance `cortex-debug.openocdPath.windows` is used only on Windows and if that is missing, it will default looking for cortex-debug.openocdPath`.
* SWO output can now be logged (saved) to a file just like RTT output
* Issues #524 and #525
* Allow value substitution for J-Link RTOS option
* Improved handling of J-Link RTOS option (file extension), added NuttX

#V0.4.7
* Fixed a regression for STLink gdbserver. It was in fact accidentally working in prior releases. The real bug is now fixed. Issue #494
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.4.8-pre5",
"version": "0.4.8",
"activationEvents": [
"onDebugResolve:cortex-debug",
"onStartupFinished"
Expand Down
2 changes: 1 addition & 1 deletion src/frontend/server_console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export class GDBServerConsole {
this.createAndShowTerminal();
this.ptyTerm.resume();
this.clearTerminal();
this.debugMsg('onBackendConnect: gdb-server session connected');
this.debugMsg('onBackendConnect: gdb-server session connected. You can switch to "DEBUG CONSOLE" to see GDB interactions.');
socket.setKeepAlive(true);
socket.on('close', () => {
this.debugMsg('onBackendConnect: gdb-server session closed');
Expand Down
10 changes: 7 additions & 3 deletions src/gdb.ts
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,10 @@ export class GDBDebugSession extends DebugSession {
return '"' + s.replace(/"/g, '\\"') + '"';
}).join(' ') + '\n';
this.handleMsg('log', dbgMsg + ` "${this.args.executable}"`);
if (!this.args.showDevDebugOutput) {
this.handleMsg('log', 'Set "showDevDebugOutput": true in your "launch.json" to see verbose GDB transactions ' +
'here. Helpful to debug issues or report problems');
}
}

this.disableSendStoppedEvents = (!attach && (this.args.runToEntryPoint || this.args.noDebug)) ? true : false;
Expand Down Expand Up @@ -1187,9 +1191,9 @@ export class GDBDebugSession extends DebugSession {
this.stoppedEventPending = true;
}

console.log(info);
// console.log(info);
if (type !== 'hit') {
console.log('Local variable watchpoing going out of scope');
// console.log('Local variable watchpoing going out of scope');
if (info.outOfBandRecord && info.outOfBandRecord[0] && info.outOfBandRecord[0].output) {
for (const item of info.outOfBandRecord[0].output) {
if (item[0].endsWith('wpnum')) {
Expand All @@ -1210,7 +1214,7 @@ export class GDBDebugSession extends DebugSession {
event: 'removed',
seq: 0
};
console.log(`Watchpoint ${id} deleted`);
// console.log(`Watchpoint ${id} deleted`);
this.dataBreakpointMap.delete(id);
this.sendEvent(ev);
break;
Expand Down

0 comments on commit 8fbeb1a

Please sign in to comment.