Skip to content

Commit 8ddfb73

Browse files
committed
remove stopAtEntry property for attach request
1 parent 219fe28 commit 8ddfb73

File tree

4 files changed

+1
-21
lines changed

4 files changed

+1
-21
lines changed

package.json

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -388,14 +388,6 @@
388388
"description": "Whether debugger should stop after connecting to target",
389389
"default": false
390390
},
391-
"stopAtEntry": {
392-
"type": [
393-
"boolean",
394-
"string"
395-
],
396-
"description": "Whether debugger should stop at application entry point",
397-
"default": false
398-
},
399391
"ssh": {
400392
"required": [
401393
"host",
@@ -854,14 +846,6 @@
854846
"description": "Whether debugger should stop after connecting to target",
855847
"default": false
856848
},
857-
"stopAtEntry": {
858-
"type": [
859-
"boolean",
860-
"string"
861-
],
862-
"description": "Whether debugger should stop at application entry point",
863-
"default": false
864-
},
865849
"registerLimit": {
866850
"type": "string",
867851
"description": "List of numbers specifying the registers to display. An empty string indicates that the contents of all the registers must be returned.",

src/gdb.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ export interface AttachRequestArguments extends DebugProtocol.AttachRequestArgum
3434
remote: boolean;
3535
autorun: string[];
3636
stopAtConnect: boolean;
37-
stopAtEntry: boolean | string;
3837
ssh: SSHArguments;
3938
valuesFormatting: ValuesFormattingMode;
4039
frameFilters: boolean;
@@ -122,7 +121,6 @@ class GDBDebugSession extends MI2DebugSession {
122121
this.miDebugger.frameFilters = !!args.frameFilters;
123122
this.miDebugger.printCalls = !!args.printCalls;
124123
this.miDebugger.debugOutput = !!args.showDevDebugOutput;
125-
this.stopAtEntry = args.stopAtEntry;
126124
this.miDebugger.registerLimit = args.registerLimit ?? "";
127125
if (args.ssh !== undefined) {
128126
if (args.ssh.forwardX11 === undefined)

src/lldb.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ export interface AttachRequestArguments extends DebugProtocol.AttachRequestArgum
3131
executable: string;
3232
autorun: string[];
3333
stopAtConnect: boolean;
34-
stopAtEntry: boolean | string;
3534
valuesFormatting: ValuesFormattingMode;
3635
printCalls: boolean;
3736
showDevDebugOutput: boolean;
@@ -112,7 +111,6 @@ class LLDBDebugSession extends MI2DebugSession {
112111
this.setValuesFormattingMode(args.valuesFormatting);
113112
this.miDebugger.printCalls = !!args.printCalls;
114113
this.miDebugger.debugOutput = !!args.showDevDebugOutput;
115-
this.stopAtEntry = args.stopAtEntry;
116114
this.miDebugger.registerLimit = args.registerLimit ?? "";
117115
this.miDebugger.attach(args.cwd, args.executable, args.target, args.autorun || []).then(() => {
118116
this.sendResponse(response);

src/mibase.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ export class MI2DebugSession extends DebugSession {
359359
default:
360360
throw new Error('Unhandled run command: ' + RunCommand[this.initialRunCommand]);
361361
}
362-
if (entryPoint)
362+
if (entryPoint && !this.attached)
363363
promises.push(this.miDebugger.setEntryBreakPoint(entryPoint));
364364
switch (this.initialRunCommand) {
365365
case RunCommand.CONTINUE:

0 commit comments

Comments
 (0)