microsoft / microsoft/vscode-cpptools
Unable to attach to GDB server without exec_run
@WardenGnaw ci sta già lavorando.
Dal 7/6/2019.
- Lingua principale
- TypeScript
- Stelle
- 6.2k
- Fork
- 1.7k
- Merge medio
- 14h 46m
- PR unite (30g)
- 61
Descrizione
I was trying to debug arm elf file using ocd GDB server and gdb debugger.
My scenario is that, I have to attach to the GDB server without download the binary files.
Eg:
- Run the GDB Server (server listening at :1000 port)
- gdb Image.elf
- target remote :1000
- symbol-file Image.elf
Is it possible to achieve above steps in VSCode?
My configuration is:
"name": "(GDB) Attach",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}Image.elf",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"miDebuggerServerAddress": "localhost:1000",
"stopAtEntry": false,
// "customLaunchSetupCommands": [
// {
// "description": "Load symbol files",
// "ignoreFailures": false,
// "text": "symbol-file ${workspaceRoot}/Image.elf"
// }
// ],
"logging": {"engineLogging":true},
"targetArchitecture": "arm",
"cwd": "${workspaceRoot}",
"externalConsole": true,
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
Looking at logs it seems to be debugger is executing "1: (512) <-1013-exec-run " command which essentially trying to rerun the program from beginning.
Is it possible to skip these commands ? And I tried customLaunchSetupCommands too but it didn't help.
Guida per i contributori
Apri la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Valutazione
Questa issue non è ancora stata valutata.