microsoft / vscode-cpptools

Official repository for the Microsoft C/C++ extension for VS Code.
Other
5.51k stars 1.55k forks source link

No registers/peripherals/memory/disassembly while debugging bare metal software (aarch64) #2523

Closed TheAifam5 closed 4 years ago

TheAifam5 commented 6 years ago

Type: Debugger

Describe the bug

To Reproduce launch.json:

 {
      "name": "(gdb) Attach Example",
      "type": "cppdbg",
      "request": "launch",
      "program": "${workspaceFolder}/build/projects/example/kernel8",
      "cwd": "${workspaceFolder}/build/projects/example/",
      "MIMode": "gdb",
      "miDebuggerPath": "D:/Programs/gcc-linaro/bin/aarch64-elf-gdb.exe",
      "miDebuggerServerAddress": "localhost:1234",
      "targetArchitecture": "arm64",
      "setupCommands": [
        {
          "description": "Enable pretty-printing for gdb",
          "text": "-enable-pretty-printing",
          "ignoreFailures": true
        }
      ],
      "internalConsoleOptions": "openOnSessionStart",
      "logging": {
        "engineLogging": true,
        "exceptions": true,
        "moduleLoad": true,
        "programOutput": true,
        "trace": true,
        "traceResponse": true
      },
      "launchCompleteCommand": "None",
      "preLaunchTask": "debug-qemu"
    }

tasks.json:

{
      "label": "debug-qemu",
      "type": "process",
      "windows": {
        "options": {
          "env": {
            "PATH": "C:/Program Files/qemu;%PATH%"
          }
        }
      },
      "command": "qemu-system-aarch64",
      "args": [
        "-M",
        "raspi3",
        "-kernel",
        "${workspaceFolder}/build/projects/example/kernel8.img",
        "-serial",
        "stdio",
        "-s",
        "-S"
      ],
      "isBackground": true
    }

Steps to reproduce the behavior:

  1. Use one of the examples from: https://github.com/bztsrc/raspi3-tutorial
  2. Compile it and build kernel8.img file
  3. Run debugger with the configuration written above.

So I am able put the breakpoints, view variables, see call stack but the containers like:

Additional context

1: (379) LaunchOptions<LocalLaunchOptions xmlns='http://schemas.microsoft.com/vstudio/MDDDebuggerOptions/2014'

1: (390) LaunchOptions  ExePath='D:\Projects\Private Repositories\rpi3-baremetal/build/projects/example/kernel8'

1: (390) LaunchOptions  WorkingDirectory='D:\Projects\Private Repositories\rpi3-baremetal\build\projects\example\'

1: (390) LaunchOptions  TargetArchitecture='arm64'

1: (390) LaunchOptions  ExeArguments=''

1: (390) LaunchOptions MIMode='gdb'

1: (390) LaunchOptions  MIDebuggerPath='D:/Programs/gcc-linaro/bin/aarch64-elf-gdb.exe'

1: (391) LaunchOptions  WaitDynamicLibLoad='false'

1: (391) LaunchOptions  MIDebuggerServerAddress='localhost:1234'

1: (391) LaunchOptions>

1: (391) LaunchOptions    <SetupCommands>

1: (392) LaunchOptions        <Command IgnoreFailures='true' Description='Enable pretty-printing for gdb'>-enable-pretty-printing</Command>

1: (392) LaunchOptions    </SetupCommands>

1: (392) LaunchOptions    <LaunchCompleteCommand>None</LaunchCompleteCommand>

1: (392) LaunchOptions</LocalLaunchOptions>

1: (449) Starting: "D:/Programs/gcc-linaro/bin/aarch64-elf-gdb.exe" --interpreter=mi

1: (457) DebuggerPid=13656

1: (587) ->=thread-group-added,id="i1"

1: (588) ->~"GNU gdb (Linaro_GDB-2018.05) 8.1.0.20180612-git\n"

1: (588) ->~"Copyright (C) 2018 Free Software Foundation, Inc.\n"

1: (590) ->~"License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\n"

1: (592) ->~"This GDB was configured as \"--host=i686-w64-mingw32 --target=aarch64-elf\".\nType \"show configuration\" for configuration details."

1: (592) ->~"\nFor bug reporting instructions, please see:\n"

1: (593) ->~"<http://www.gnu.org/software/gdb/bugs/>.\n"

1: (594) ->~"Find the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\n"

1: (594) ->~"For help, type \"help\".\n"

1: (595) ->~"Type \"apropos word\" to search for commands related to \"word\".\n"

1: (595) ->(gdb)

1: (598) <-1001-gdb-set target-async on

1: (606) ->1001^done

1: (606) ->(gdb)

1: (606) ->&"\n"

1: (606) ->^done

1: (606) ->(gdb)

1: (608) 1001: elapsed time 10

1: (616) <-1002-enable-pretty-printing

1: (617) ->1002^done

1: (617) ->(gdb)

1: (617) 1002: elapsed time 1

1: (617) ->&"\n"

1: (617) ->^done

1: (617) ->(gdb)

1: (617) <-1003-interpreter-exec console "set pagination off"

1: (628) ->=cmd-param-changed,param="pagination",value="off"

1: (628) ->1003^done

1: (628) ->(gdb)

1: (629) ->&"\n"

1: (629) ->^done

1: (629) ->(gdb)

1: (628) 1003: elapsed time 10

1: (629) <-1004-gdb-set solib-search-path D:\\Projects\\Private Repositories\\rpi3-baremetal/build/projects/example;

1: (640) ->1004^done

1: (640) ->(gdb)

1: (640) 1004: elapsed time 10

1: (640) <-1005-environment-cd "D:/Projects/Private Repositories/rpi3-baremetal/build/projects/example/"

1: (640) ->&"\n"

1: (640) ->^done

1: (640) ->(gdb)

1: (641) ->1005^done

1: (641) ->(gdb)

1: (641) 1005: elapsed time 1

1: (641) ->&"\n"

1: (641) ->^done

1: (641) ->(gdb)

1: (645) <-1006-interpreter-exec console "show configuration"

1: (651) ->~"This GDB was configured as follows:\n   configure --host=i686-w64-mingw32 --target=aarch64-elf\n"

1: (653) ->~"             --with-auto-load-dir=$debugdir:$datadir/auto-load\n             --with-auto-load-safe-path=$debugdir:$datadir/auto-load\n"

1: (653) ->~"             --with-expat\n"

1: (655) ->~"             --with-gdb-datadir=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-elf/_build/builds/destdir/i686-w64-mingw32/share/gdb (relocatable)\n"

1: (656) ->~"             --with-jit-reader-dir=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-elf/_build/builds/destdir/i686-w64-mingw32/lib/gdb (relocatable)\n"

1: (657) ->~"             --without-libunwind-ia64\n"

1: (657) ->~"             --without-lzma\n"

1: (659) ->~"             --with-python=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-elf/snapshots/python-2.7.4-mingw32/dll\n"

1: (659) ->~"             --without-guile\n"

1: (661) ->~"             --with-separate-debug-dir=/home/tcwg-buildslave/workspace/tcwg-make-release/builder_arch/amd64/label/tcwg-x86_64-build/target/aarch64-elf/_build/builds/destdir/i686-w64-mingw32/lib/debug (relocatable)\n"

1: (661) ->~"             --without-babeltrace\n"

1: (662) ->~"\n(\"Relocatable\" means the directory can be moved with the GDB installation\ntree, and GDB will still find it.)\n"

1: (663) ->1006^done

1: (663) ->(gdb)

1: (663) 1006: elapsed time 17

1: (663) ->&"\n"

1: (663) ->^done

1: (663) ->(gdb)

E output: {"category":"telemetry","output":"VS/Diagnostics/Debugger/MIEngine/WindowsRuntime","data":{"VS.Diagnostics.Debugger.MIEngine.WindowsRuntime":"MinGW"},"type":"output"}

1: (671) <-1007-file-exec-and-symbols "D:/Projects/Private Repositories/rpi3-baremetal/build/projects/example/kernel8"

1: (677) ->1007^done

1: (677) ->(gdb)

1: (677) 1007: elapsed time 6

1: (678) <-1008-interpreter-exec console "show architecture"

1: (678) ->&"\n"

1: (678) ->^done

1: (678) ->(gdb)

1: (678) ->~"The target architecture is set automatically (currently aarch64)\n"

1: (679) ->1008^done

1: (679) ->(gdb)

1: (679) 1008: elapsed time 0

1: (679) ->&"\n"

1: (679) ->^done

1: (679) ->(gdb)

1: (680) <-1009-break-insert -f main

1: (691) ->1009^done,bkpt={number="1",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000080070",func="main",file="../lib/src/kernel.c",fullname="D:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\kernel.c",line="11",thread-groups=["i1"],times="0",original-location="main"}

1: (691) ->(gdb)

1: (691) ->&"\n"

1: (691) ->^done

1: (691) ->(gdb)

1: (697) 1009: elapsed time 17

1: (698) <-1010-target-select remote localhost:1234

1: (755) ->=thread-group-started,id="i1",pid="42000"

1: (756) ->=thread-created,id="1",group-id="i1"

1: (757) ->=thread-created,id="2",group-id="i1"

1: (758) ->=thread-created,id="3",group-id="i1"

1: (758) ->=thread-created,id="4",group-id="i1"

1: (762) ->~"0x0000000000000000 in ?? ()\n"

1: (762) ->*stopped,frame={addr="0x0000000000000000",func="??",args=[]},thread-id="1",stopped-threads="all"

1: (763) ->1010^connected

1: (763) ->(gdb)

1: (764) ->&"\n"

1: (764) ->^done

1: (764) ->(gdb)

1: (765) <-1011-thread-info 1

1: (767) <-1012-thread-info 2

1: (767) <-1013-thread-info 3

1: (767) <-1014-thread-info 4

1: (773) 1010: elapsed time 74

1: (776) ->1011^done,threads=[{id="1",target-id="Thread 1",details="CPU#0 [running]",frame={level="0",addr="0x0000000000000000",func="??",args=[]},state="stopped"}]

1: (776) ->(gdb)

1: (776) ->&"\n"

1: (776) ->^done

1: (776) ->(gdb)

1: (777) 1011: elapsed time 12

1: (780) ->1012^done,threads=[{id="2",target-id="Thread 2",details="CPU#1 [running]",frame={level="0",addr="0x0000000000000300",func="??",args=[]},state="stopped"}]

1: (780) ->(gdb)

1: (780) ->&"\n"

1: (781) ->^done

1: (781) ->(gdb)

1: (781) 1012: elapsed time 14

1: (783) ->1013^done,threads=[{id="3",target-id="Thread 3",details="CPU#2 [running]",frame={level="0",addr="0x0000000000000300",func="??",args=[]},state="stopped"}]

1: (783) ->(gdb)

1: (783) ->&"\n"

1: (784) ->^done

1: (784) ->(gdb)

1: (784) 1013: elapsed time 17

1: (786) ->1014^done,threads=[{id="4",target-id="Thread 4",details="CPU#3 [running]",frame={level="0",addr="0x0000000000000300",func="??",args=[]},state="stopped"}]

1: (786) ->(gdb)

1: (786) 1014: elapsed time 19

1: (786) ->&"\n"

1: (786) ->^done

1: (786) ->(gdb)

E output: {"category":"telemetry","output":"VS/Diagnostics/Debugger/Launch","data":{"VS.Diagnostics.Debugger.ImplementationName":"Microsoft.MIDebugEngine","VS.Diagnostics.Debugger.EngineVersion":"14.0.50814.1","VS.Diagnostics.Debugger.HostVersion":"14.0.50814.1","VS.Diagnostics.Debugger.AdapterId":"cppdbg","VS.Diagnostics.Debugger.Launch.Duration":514,"VS.Diagnostics.Debugger.Launch.IsCoreDump":false,"VS.Diagnostics.Debugger.VisualizerFileUsed":false,"VS.Diagnostics.Debugger.SourceFileMappings":0},"type":"output"}

 R: {"success":true,"message":null,"request_seq":2,"command":"launch","body":null,"running":false,"refs":null,"seq":0,"type":"response"}

E initialized: {"type":"initialized"}

C setBreakpoints: {"source":{"name":"kernel.c","path":"D:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\kernel.c","sources":[],"checksums":[]},"breakpoints":[{"line":14}],"lines":[14],"sourceModified":false}

1: (889) <-1015-break-insert -f kernel.c:14

1: (894) ->1015^done,bkpt={number="2",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000080080",func="main",file="../lib/src/kernel.c",fullname="D:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\kernel.c",line="14",thread-groups=["i1"],times="0",original-location="kernel.c:14"}

1: (895) ->(gdb)

1: (895) 1015: elapsed time 6

1: (895) ->&"\n"

1: (895) ->^done

1: (895) ->(gdb)

1: (915) <-1016-symbol-list-lines "D:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\kernel.c"

1: (920) ->1016^done,lines=[{pc="0x0000000000080068",line="10"},{pc="0x0000000000080070",line="11"},{pc="0x0000000000080078",line="12"},{pc="0x0000000000080080",line="14"},{pc="0x0000000000080094",line="20"},{pc="0x0000000000080098",line="21"},{pc="0x00000000000800a0",line="0"}]

1: (920) ->(gdb)

1: (921) 1016: elapsed time 5

1: (921) ->&"\n"

1: (921) ->^done

1: (921) ->(gdb)

 R: {"success":true,"message":null,"request_seq":3,"command":"setBreakpoints","body":{"breakpoints":[{"id":1,"verified":true,"line":14,"message":null}]},"running":false,"refs":null,"seq":0,"type":"response"}

E breakpoint: {"reason":"changed","breakpoint":{"id":1,"verified":true,"line":14,"message":null},"type":"breakpoint"}

C setBreakpoints: {"source":{"name":"main.c","path":"D:\\Projects\\Private Repositories\\rpi3-baremetal\\projects\\example\\src\\main.c","sources":[],"checksums":[]},"breakpoints":[{"line":4}],"lines":[4],"sourceModified":false}

1: (938) <-1017-break-insert -f main.c:4

1: (944) ->1017^done,bkpt={number="3",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000080060",func="kernel_main",file="../projects/example/src/main.c",fullname="D:\\Projects\\Private Repositories\\rpi3-baremetal\\projects\\example\\src\\main.c",line="4",thread-groups=["i1"],times="0",original-location="main.c:4"}

1: (944) ->(gdb)

1: (944) 1017: elapsed time 5

1: (944) ->&"\n"

1: (944) <-1018-symbol-list-lines "D:\\Projects\\Private Repositories\\rpi3-baremetal\\projects\\example\\src\\main.c"

1: (944) ->^done

1: (944) ->(gdb)

1: (947) ->1018^done,lines=[{pc="0x0000000000080060",line="4"},{pc="0x0000000000080060",line="4"},{pc="0x0000000000080068",line="0"}]

1: (947) ->(gdb)

1: (947) 1018: elapsed time 2

1: (947) ->&"\n"

1: (947) ->^done

1: (947) ->(gdb)

 R: {"success":true,"message":null,"request_seq":4,"command":"setBreakpoints","body":{"breakpoints":[{"id":2,"verified":true,"line":4,"message":null}]},"running":false,"refs":null,"seq":0,"type":"response"}

E breakpoint: {"reason":"changed","breakpoint":{"id":2,"verified":true,"line":4,"message":null},"type":"breakpoint"}

C setFunctionBreakpoints: {"breakpoints":[{"name":"_start"}]}

1: (987) <-1019-break-insert -f _start

1: (991) ->1019^done,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000080000",file="../lib/src/boot.S",fullname="D:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\boot.S",line="7",thread-groups=["i1"],times="0",original-location="_start"}

1: (991) ->(gdb)

1: (991) 1019: elapsed time 4

1: (991) <-1020-symbol-list-lines "D:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\boot.S"

1: (991) ->&"\n"

1: (992) ->^done

1: (992) ->(gdb)

1: (997) ->1020^done,lines=[{pc="0x0000000000080000",line="7"},{pc="0x0000000000080004",line="8"},{pc="0x0000000000080008",line="9"},{pc="0x000000000008000c",line="11"},{pc="0x0000000000080010",line="12"},{pc="0x0000000000080014",line="16"},{pc="0x0000000000080018",line="17"},{pc="0x000000000008001c",line="20"},{pc="0x0000000000080020",line="21"},{pc="0x0000000000080024",line="22"},{pc="0x0000000000080028",line="23"},{pc="0x000000000008002c",line="24"},{pc="0x0000000000080030",line="25"},{pc="0x0000000000080034",line="28"},{pc="0x0000000000080038",line="30"},{pc="0x000000000008003c",line="34"},{pc="0x0000000000080040",line="35"},{pc="0x0000000000080044",line="39"},{pc="0x0000000000080048",line="40"},{pc="0x0000000000080060",line="0"}]

1: (997) ->(gdb)

1: (997) ->&"\n"

1: (997) 1020: elapsed time 5

1: (997) ->^done

1: (997) ->(gdb)

 R: {"success":true,"message":null,"request_seq":5,"command":"setFunctionBreakpoints","body":{"breakpoints":[{"id":0,"verified":true,"line":0,"message":null}]},"running":false,"refs":null,"seq":0,"type":"response"}

E breakpoint: {"reason":"changed","breakpoint":{"id":0,"verified":true,"line":7,"message":null},"type":"breakpoint"}

C configurationDone: null

 R: {"success":true,"message":null,"request_seq":6,"command":"configurationDone","body":null,"running":false,"refs":null,"seq":0,"type":"response"}

E output: {"category":"stdout","output":"=thread-group-added,id=\"i1\"\nGNU gdb (Linaro_GDB-2018.05) 8.1.0.20180612-git\nCopyright (C) 2018 Free Software Foundation, Inc.\nLicense GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>\nThis is free software: you are free to change and redistribute it.\nThere is NO WARRANTY, to the extent permitted by law.  Type \"show copying\"\nand \"show warranty\" for details.\nThis GDB was configured as \"--host=i686-w64-mingw32 --target=aarch64-elf\".\nType \"show configuration\" for configuration details.\nFor bug reporting instructions, please see:\n<http://www.gnu.org/software/gdb/bugs/>.\nFind the GDB manual and other documentation resources online at:\n<http://www.gnu.org/software/gdb/documentation/>.\nFor help, type \"help\".\nType \"apropos word\" to search for commands related to \"word\".\n=cmd-param-changed,param=\"pagination\",value=\"off\"\n0x0000000000000000 in ?? ()\n","data":null,"type":"output"}

=thread-group-added,id="i1"
GNU gdb (Linaro_GDB-2018.05) 8.1.0.20180612-git
Copyright (C) 2018 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=i686-w64-mingw32 --target=aarch64-elf".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word".
=cmd-param-changed,param="pagination",value="off"
0x0000000000000000 in ?? ()
C threads: null

1: (1032) <-1021-interpreter-exec console "info sharedlibrary"

1: (1044) ->~"No shared libraries loaded at this time.\n"

1: (1044) ->1021^done

1: (1044) ->(gdb)

1: (1044) ->&"\n"

1: (1044) ->^done

1: (1044) ->(gdb)

1: (1045) 1021: elapsed time 13

 R: {"success":true,"message":null,"request_seq":7,"command":"threads","body":{"threads":[]},"running":false,"refs":null,"seq":0,"type":"response"}

E output: {"category":"console","output":"Loaded 'shared libraries loaded at this time.'. Cannot find or open the symbol file.\r\n","data":null,"type":"output"}

Loaded 'shared libraries loaded at this time.'. Cannot find or open the symbol file.

1: (1066) <-1022-thread-info

1: (1080) ->1022^done,threads=[{id="1",target-id="Thread 1",details="CPU#0 [running]",frame={level="0",addr="0x0000000000000000",func="??",args=[]},state="stopped"},{id="2",target-id="Thread 2",details="CPU#1 [running]",frame={level="0",addr="0x0000000000000300",func="??",args=[]},state="stopped"},{id="3",target-id="Thread 3",details="CPU#2 [running]",frame={level="0",addr="0x0000000000000300",func="??",args=[]},state="stopped"},{id="4",target-id="Thread 4",details="CPU#3 [running]",frame={level="0",addr="0x0000000000000300",func="??",args=[]},state="stopped"}],current-thread-id="1"

1: (1080) ->(gdb)

1: (1080) ->&"\n"

1: (1080) ->^done

1: (1080) ->(gdb)

1: (1080) 1022: elapsed time 13

1: (1094) <-1023-stack-list-frames 0 1000

1: (1102) ->1023^done,stack=[frame={level="0",addr="0x0000000000000000",func="??"}]

1: (1102) ->(gdb)

1: (1102) ->&"\n"

1: (1102) ->^done

1: (1102) ->(gdb)

1: (1102) 1023: elapsed time 8

E thread: {"reason":"started","threadId":1,"type":"thread"}

E thread: {"reason":"started","threadId":2,"type":"thread"}

E thread: {"reason":"started","threadId":3,"type":"thread"}

E thread: {"reason":"started","threadId":4,"type":"thread"}

1: (1114) <--exec-continue

1: (1124) ->^running

1: (1124) ->*running,thread-id="all"

1: (1125) ->(gdb)

1: (1126) ->&"\n"

1: (1126) ->^done

1: (1126) ->(gdb)

1: (1131) ->=breakpoint-modified,bkpt={number="4",type="breakpoint",disp="keep",enabled="y",addr="0x0000000000080000",file="../lib/src/boot.S",fullname="D:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\boot.S",line="7",thread-groups=["i1"],times="1",original-location="_start"}

1: (1134) ->~"\n"

1: (1135) ->~"Thread 1 hit Breakpoint 4, _start () at ../lib/src/boot.S:7\n"

1: (1136) ->~"7\t    mrs     x1, mpidr_el1\n"

1: (1136) ->*stopped,reason="breakpoint-hit",disp="keep",bkptno="4",frame={addr="0x0000000000080000",func="_start",args=[],file="../lib/src/boot.S",fullname="D:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\boot.S",line="7"},thread-id="1",stopped-threads="all"

E output: {"category":"stdout","output":"\n","data":null,"type":"output"}

E output: {"category":"stdout","output":"Thread 1 hit Breakpoint 4, _start () at ../lib/src/boot.S:7\n","data":null,"type":"output"}

Thread 1 hit Breakpoint 4, _start () at ../lib/src/boot.S:7
E output: {"category":"stdout","output":"7\t    mrs     x1, mpidr_el1\n","data":null,"type":"output"}

7       mrs     x1, mpidr_el1
1: (1138) <-1024-stack-list-frames 0 1000

1: (1148) ->1024^done,stack=[frame={level="0",addr="0x0000000000080000",func="_start",file="../lib/src/boot.S",fullname="D:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\boot.S",line="7"}]

1: (1148) ->(gdb)

1: (1148) 1024: elapsed time 10

1: (1148) ->&"\n"

1: (1148) ->^done

1: (1148) ->(gdb)

1: (1156) <-1025-break-delete 1

1: (1159) ->1025^done

1: (1159) ->(gdb)

1: (1159) 1025: elapsed time 3

1: (1159) ->&"\n"

1: (1159) ->^done

1: (1159) ->(gdb)

E output: {"category":"console","output":"Execute debugger commands using \"-exec <command>\", for example \"-exec info registers\" will list registers in use (when GDB is the debugger)\r\n","data":null,"type":"output"}

Execute debugger commands using "-exec <command>", for example "-exec info registers" will list registers in use (when GDB is the debugger)

E stopped: {"threadId":1,"reason":"breakpoint","source":{"name":"boot.S","path":"d:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\boot.S","sourceReference":0},"line":7,"column":1,"text":null,"allThreadsStopped":true,"type":"stopped"}

C threads: null

 R: {"success":true,"message":null,"request_seq":8,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"},{"id":2,"name":"Thread #2"},{"id":3,"name":"Thread #3"},{"id":4,"name":"Thread #4"}]},"running":false,"refs":null,"seq":0,"type":"response"}

C stackTrace: {"threadId":1,"startFrame":0,"levels":20}

1: (1215) <-1026-stack-list-arguments 0 0 0

1: (1221) ->1026^done,stack-args=[frame={level="0",args=[]}]

1: (1221) ->(gdb)

1: (1221) 1026: elapsed time 6

1: (1221) ->&"\n"

1: (1221) ->^done

1: (1221) ->(gdb)

 R: {"success":true,"message":null,"request_seq":9,"command":"stackTrace","body":{"stackFrames":[{"id":1000,"source":{"name":"boot.S","path":"d:\\Projects\\Private Repositories\\rpi3-baremetal\\lib\\src\\boot.S","sourceReference":0},"line":7,"column":1,"name":"_start()"}],"totalFrames":1},"running":false,"refs":null,"seq":0,"type":"response"}

C threads: null

 R: {"success":true,"message":null,"request_seq":10,"command":"threads","body":{"threads":[{"id":1,"name":"Thread #1"},{"id":2,"name":"Thread #2"},{"id":3,"name":"Thread #3"},{"id":4,"name":"Thread #4"}]},"running":false,"refs":null,"seq":0,"type":"response"}

C scopes: {"frameId":1000}

1: (1313) <-1027-stack-list-variables 0

1: (1314) ->1027^done,variables=[]

1: (1314) ->(gdb)

1: (1314) ->&"\n"

1: (1314) ->^done

1: (1314) ->(gdb)

1: (1315) 1027: elapsed time 1

 R: {"success":true,"message":null,"request_seq":11,"command":"scopes","body":{"scopes":[]},"running":false,"refs":null,"seq":0,"type":"response"}
pieandcakes commented 6 years ago

@TheAifam5 Those tool windows are not provided by this extension, so I assume without work on our side that probably isn't going to work. What are you installing that gives you those debug windows?

TheAifam5 commented 6 years ago

@pieandcakes oh, now I see.. that's a "PlatformIO IDE" extension. I will check if that problem with Threads is resolved now.