-
Notifications
You must be signed in to change notification settings - Fork 11.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[lldb] Core dump not able to resolve source locations nor loading debug symbols? #110253
Comments
Probaby related to #63973 I guess there is no solution, we have to keep suffering cppdbg with gdb. |
@llvm/issue-subscribers-lldb Author: None (borjamunozf)
Hello! Trying to debug a core dump that works with GDB and Vscode but it does not with lldb-dap / lldb.
{
"name": "(gdb) Launch Core Dump",
"type": "cppdbg",
"request": "launch",
"program": "/mnt/disk1/sad/bin/AsdfApp",
"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,
},
}
{
"name": "(lldb-dap) Launch Core Dump",
"type": "lldb-dap",
"request": "attach",
"coreFile": "${workspaceFolder}/coreDump",
"program": "/mnt/disk1/asd/app/bin/AsdfApp",
"sourceMap": [
["/asdshell", "${workspaceFolder}"]
],
"preRunCommands":[
"target symbols add /mnt/disk1/asd/app/bin/asdasda.debug",
],
"initCommands":[
"settings set target.source-map /asdshell ${workspaceFolder}",
"settings set target.exec-search-paths /mnt/disk1/asd/app/lib:${input:asdfSysPath}/sysroots/x86-asd-linux/",
],
"internalConsoleOptions": "openOnFirstSessionStart"
} The warning message with loading target symbols from .debug:
Info from breakpoints:
If I try to put the breakpoint other file it shows:
Show source map:
I'll be happy to provide any info! Thanks a lot. |
Seems to be a general lldb issue, not specific to lldb-dap |
It would be useful here to separate possible problems with core files from problems with symbols. To that end, can you run a process under lldb with the same executable and symbol files, and see if you see source information in places where with core files you weren't. The speculation from the other report you linked to was that this was lack of support for some gcc DWARF constructs. If that's what is going on, just loading the executable & symbol file into lldb and running |
The title threw me off a bit because "why would you want to set breakpoints in a core file"... And certainly you can't "hit" them since core files can't execute (at least on any system I know about). |
You're right about setting the breakpoints in the core dump, my fault. I mxied with other stuf I'm working on!
So my issue, as whole, its:
Edited:
|
Hello! Trying to debug a core dump that works with GDB and Vscode but it does not with lldb-dap / lldb.
The warning message with loading target symbols from .debug:
Info from breakpoints:
If I try to put the breakpoint other file it shows:
Show source map:
I'll be happy to provide any info! Thanks a lot.
The text was updated successfully, but these errors were encountered: