Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/Marus/cortex-debug
Browse files Browse the repository at this point in the history
  • Loading branch information
haneefdm committed Aug 28, 2022
2 parents adf9f74 + 299a07e commit ae9d388
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/backend/server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function ServerConsoleLog(str: string, usePid?: number) {
GdbPid = usePid;
}
str = `[${date.toISOString()}] ppid=${process.pid} pid=${GdbPid} ` + str;
console.log(str);
// console.log(str);
if (true) {
if (!str.endsWith('\n')) {
str += '\n';
Expand Down
3 changes: 3 additions & 0 deletions src/backend/symbols.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export class SymbolTable {
this.objdumpPath = tmp || this.objdumpPath;
}
}
if (this.objdumpPath) {
this.objdumpPath = this.objdumpPath.replace(/\\/g, '/');
}
}

private createSymtableSerializedFName(exeName: string) {
Expand Down
4 changes: 2 additions & 2 deletions src/frontend/server_console.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class GDBServerConsole {
try {
const date = new Date();
msg = `[${date.toISOString()}] SERVER CONSOLE DEBUG: ` + msg;
console.log(msg);
// console.log(msg);
if (ptyTerm) {
msg += msg.endsWith('\n') ? '' : '\n';
magentaWrite(msg, ptyTerm);
Expand Down Expand Up @@ -241,7 +241,7 @@ export class GDBServerConsole {
// help if the user kills the terminal. But we would have lost previous data anyways
const date = new Date();
const msg = `[${date.toISOString()}] SERVER CONSOLE DEBUG: ******* Terminal not yet ready, buffering... ******`;
console.log(msg);
// console.log(msg);
// fs.writeFileSync(logFd, msg);
}
fs.writeFileSync(consoleLogFd, data.toString());
Expand Down

0 comments on commit ae9d388

Please sign in to comment.