123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105 |
- {
- "version": "0.2.0",
- "configurations": [
- // {
- // "name": "Attach Arm",
- // "type": "gdb",
- // "request": "attach",
- // "gdbpath": "/usr/bin/gdb-multiarch",
- // "executable": "${workspaceFolder}/bin/ctnd",
- // "target": "192.168.0.137:2345",
- // "remote": true,
- // "printCalls": true,
- // "cwd": "${workspaceRoot}/shell/",
- // "valuesFormatting": "parseText"
- // },
- {
- "name": "(gdb) Attach Remote",
- "type": "cppdbg",
- "request": "attach",
- "targetArchitecture": "arm",
- "miDebuggerServerAddress": "192.168.0.137:2345",
- "miDebuggerPath": "/usr/bin/gdb-multiarch",
- "useExtendedRemote": true,
- "program": "${workspaceFolder}/bin/ctnd",
- "MIMode": "gdb",
- "setupCommands": [
- {
- "description": "Enable pretty-printing for gdb",
- "text": "-enable-pretty-printing",
- "ignoreFailures": true
- },
- {
- "description": "Set Disassembly Flavor to Intel",
- "text": "-gdb-set disassembly-flavor intel",
- "ignoreFailures": true
- },
- {
- "text": "-gdb-set follow-fork-mode child"
- },
- {
- // https://sourceware.org/gdb/onlinedocs/gdb/Forks.html
- "description": "Fork will keep the other process attached to debugger",
- "text": "set detach-on-fork off",
- "ignoreFailures": true
- }
- ]
- },
- {
- "name": "(gdb) Attach",
- "type": "cppdbg",
- "request": "attach",
- "program": "${workspaceFolder}/bin/ctnd",
- "MIMode": "gdb",
- "setupCommands": [
- {
- "description": "Enable pretty-printing for gdb",
- "text": "-enable-pretty-printing",
- "ignoreFailures": true
- },
- {
- "description": "Set Disassembly Flavor to Intel",
- "text": "-gdb-set disassembly-flavor intel",
- "ignoreFailures": true
- }
- ]
- },
- {
- "name": "(gdb) Launch",
- "type": "cppdbg",
- "request": "launch",
- "program": "${workspaceFolder}/bin/ctnd",
- "args": [
- "-t",
- "appl",
- ],
- "stopAtEntry": true,
- "cwd": "${workspaceFolder}/shell/",
- "environment": [],
- "externalConsole": false,
- "MIMode": "gdb",
- "miDebuggerPath": "/usr/bin/gdb",
- "setupCommands": [
- {
- "description": "Enable pretty-printing for gdb",
- "text": "-enable-pretty-printing",
- "ignoreFailures": true
- },
- {
- "description": "Set Disassembly Flavor to Intel",
- "text": "-gdb-set disassembly-flavor intel",
- "ignoreFailures": true
- },
- {
- "text": "-gdb-set follow-fork-mode child"
- },
- {
- // https://sourceware.org/gdb/onlinedocs/gdb/Forks.html
- "description": "Fork will keep the other process attached to debugger",
- "text": "set detach-on-fork off",
- "ignoreFailures": true
- }
- ]
- }
- ]
- }
|