microsoft / microsoft/vscode-cpptools

[ARM] stopAtEntry: false has no effect

Abierto
#978 8 comentarios 0 reacciones 1 asignado Ver en GitHub

@pieandcakes ya está trabajando en esto.

Desde el 17/8/2017.

bug debugger embedded
Lenguaje dominante
TypeScript
Estrellas
6.2k
Forks
1.7k
Merge medio
14 h 46 min
PR fusionados (30 d)
61

Descripción

Here is:
VSCode 1.15.1 / x64
cpptools 0.12.2
Windows 8/x64
I am debugging remote target (ARM MCU) using arm-gcc tools and openocd server.

launch.json:

{
   "version": "0.2.0",
   "configurations": 
   [
      {
         "name": "OpenOCD & gdb",
         "type": "cppdbg",
         "request": "launch",
         "program": "${workspaceRoot}/Debug/Main.elf",
         "args": [],
         "stopAtEntry": false,
         "cwd": "${workspaceRoot}",
         "environment": [],
         "externalConsole": false,
         "visualizerFile": "${workspaceRoot}/Neon.natvis",
         "showDisplayString": true,
         "logging": 
         {
            "engineLogging":true,
            "moduleLoad": false,
            "exceptions": false,
            "trace": false, 
            "traceResponse": false
         },
         //"preLaunchTask": "oocd",
         "windows": 
         {
            "MIMode": "gdb",
            "miDebuggerPath":"c:/arm/bin/arm-none-eabi-gdb.exe",     
            "setupCommands": 
            [
               {"text":"target remote localhost:3333"},
               {"text":"monitor reset halt"},
               {"text":"monitor halt"},
               {"text":"set var {int}0xE0042008 |= 0x000001FF"},
               {"text":"set var {int}0xE004200C |= 0x00070003"},
            ]
         },
         "launchCompleteCommand": "exec-continue"
      }
   ]
}

And here is a piece of the log where VSCode instructs gdb to set breakpoint on main():

1: (1022) <-1014-break-insert main
1: (1034) ->1014^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x08014f34",func="main",file="Main.c",fullname="d:\\Oleg\\!Projects\\HAMHard\\TrcrvNew-(Neon)\\Soft\\Ctrl2\\Ctrl\\Main.c",line="1317",thread-groups=["i1"],times="0",original-location="main"}
1: (1034) ->(gdb)
1: (1034) 1014: elapsed time 12
1: (1034) ->&"\n"
1: (1034) ->^done
1: (1034) ->(gdb)

Please tell me if you need the full log, or other information...

BTW, Several months ago it worked fine.

Guía de contribución

Abrir la guía de contribución

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.