Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions debug_attributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ If the type is marked as `{...}` it means that it is a complex item can have mul
| debuggerArgs | array | Both | Additional arguments to pass to GDB command line |
| device | string | Both | Target Device Identifier |
| executable | string | Both | Path of executable for symbols and program information. See also `loadFiles`, `symbolFiles` |
| gdbHost | string | Both | Host for the GDB server connection (defaults to localhost). Only used for servertype jlink. |
| gdbInterruptMode | string | Both | Whether GDB shall be interrupted using "exec-interrupt" (default) or by signaling "SIGINT" |
| gdbPath | string | Both | This setting can be used to override the GDB path user/workspace setting for a particular launch configuration. This should be the full pathname to the executable (or name of the executable if it is in your PATH). Note that other toolchain executables with the configured prefix must still be available. |
| gdbTarget | string | Both | For externally (servertype = "external") controlled GDB Servers you must specify the GDB target to connect to. This can either be a "hostname:port" combination or path to a serial port |
Expand Down
10 changes: 10 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -1618,6 +1618,11 @@
"description": "J-Link script file - optional input file for customizing J-Link actions.",
"type": "string"
},
"gdbHost": {
"default": null,
"description": "Host for the GDB server connection (defaults to localhost). Only used for servertype jlink.",
"type": "string"
},
"openOCDLaunchCommands": {
"default": [],
"description": "OpenOCD command(s) after configuration files are loaded (-c options)",
Expand Down Expand Up @@ -2843,6 +2848,11 @@
"description": "J-Link script file - optional input file for customizing J-Link actions.",
"type": "string"
},
"gdbHost": {
"default": null,
"description": "Host for the GDB server connection (defaults to localhost). Only used for servertype jlink.",
"type": "string"
},
"openOCDLaunchCommands": {
"default": [],
"description": "OpenOCD command(s) after configuration files are loaded (-c options)",
Expand Down
1 change: 1 addition & 0 deletions src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,7 @@ export interface ConfigurationArguments extends DebugProtocol.LaunchRequestArgum
ipAddress: string;
serialNumber: string;
jlinkscript: string;
gdbHost: string;

// OpenOCD Specific
configFiles: string[];
Expand Down
4 changes: 2 additions & 2 deletions src/jlink.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ export class JLinkServerController extends EventEmitter implements GDBServerCont

public initCommands(): string[] {
const gdbport = this.ports[createPortName(this.args.targetProcessor)];

const host = this.args.gdbHost || 'localhost';
return [
`target-select extended-remote localhost:${gdbport}`
`target-select extended-remote ${host}:${gdbport}`
];
}

Expand Down