| Issue |
110253
|
| Summary |
[lldb-dap] vscode - Core dump debugging not hitting breakpoints nor loading debug symbols?
|
| Labels |
new issue
|
| Assignees |
|
| Reporter |
borjamunozf
|
Hello! I'm really a beginner with lldb-dap, looking for an alternatives and benchmarks regarding performance.
- Working config with vscode - gdb
```json
{
"name": "(gdb) Launch Core Dump",
"type": "cppdbg",
"request": "launch",
"program": "/mnt/disk1/rcs/asd/bin/DispApp",
"args": ["-g "],
"stopAtEntry": false,
"coreDumpPath": "${workspaceFolder}/coreDump",
"sourceFileMap": {
"/asdshell": "${workspaceFolder}",
},
"additionalSOLibSearchPath": "/mnt/disk1/asd/app/lib",
"cwd": "${workspaceFolder}",
"miDebuggerPath": "/usr/bin/gdb-multiarch",
"MIMode": "gdb",
"logging": {
"engineLogging":"verbose",
"trace": true,
"traceResponse": true,
},
}
```
- Trying to _mimick_ functionality with lldb-dap:
```json
{
"name": "(lldb-dap) Launch Core Dump",
"type": "lldb-dap",
"request": "attach",
"coreFile": "${workspaceFolder}/coreDump",
"program": "/mnt/disk1/asd/app/bin/DispApp",
"sourceMap": [
["/asdshell", "${workspaceFolder}"]
],
"initCommands":[
"settings set target.source-map /asdshell ${workspaceFolder}",
"settings set target.exec-search-paths /mnt/disk1/rcs/app/lib:${input:rcsosSysPath}/sysroots/x86-rcs-linux/",
],
"internalConsoleOptions": "openOnFirstSessionStart"
}
```
Info from breakpoints:
```
breakpoint list --verbose
(lldb) breakpoint list --verbose
Current breakpoints:
1: file = '/asdshell/asd/Main/Whatever/Source/WhateverInit.cpp, line = 13, exact_match = 0
2: file = '/asdshell/asd/Main/Whatever/Source/WhateverInit.cpp', line = 98, exact_match = 0
```
Show source map:
```
settings show target.source-map
(lldb) settings show target.source-map
target.source-map (path-map) =
[0] "/asdshell" -> "/home/borjamf/workspace/asd_shell"
```

I'll be happy to provide any info! Thanks a lot.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs