microsoft / microsoft/vscode-cpptools

Unable to attach to GDB server without exec_run

Aperta
#3,739 2 commenti 0 reazioni 1 assegnatario Vedi su GitHub

@WardenGnaw ci sta già lavorando.

Dal 7/6/2019.

debugger
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:

  1. Run the GDB Server (server listening at :1000 port)
  2. gdb Image.elf
  3. target remote :1000
  4. 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

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.