Skip to content
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

PDB debug symbol loading using LLVM #7

Open
lesderid opened this issue Aug 2, 2020 · 3 comments · May be fixed by #8
Open

PDB debug symbol loading using LLVM #7

lesderid opened this issue Aug 2, 2020 · 3 comments · May be fixed by #8
Assignees
Labels
enhancement New feature or request

Comments

@lesderid
Copy link
Owner

lesderid commented Aug 2, 2020

Replaces: #5

I was originally under the impression that bfd should be responsible for PDB debug symbol loading.
This seems to have been incorrect: GDB does all the debug symbol loading for other debug formats, and only relies on bfd to set up the file for reading.

This means the next step is to start implementing PDB debug symbol loading using LLVM in GDB. We use bfd to do the initial parsing of the PDB file headers and to initialise the section info.

@lesderid lesderid added the enhancement New feature or request label Aug 2, 2020
@lesderid lesderid self-assigned this Aug 2, 2020
@lesderid lesderid linked a pull request Aug 2, 2020 that will close this issue
@foerdi
Copy link

foerdi commented Dec 21, 2020

Hi,

how is the status of this issue?
I tried the llvm-symbols branch but unfortunately, this gdb cannot find any debugging symbols in my pdb files.
(On Windows vs and vs-code can find debug symbols)
Btw my code base is a D project and I am using ldc (an llvm based d compiler).

It would be great if I can use this debugger for my project, so if I can help you let me know (maybe with a minimal test case?)

-- foerdi

@lesderid
Copy link
Owner Author

Hi,

how is the status of this issue?
I tried the llvm-symbols branch but unfortunately, this gdb cannot find any debugging symbols in my pdb files.
(On Windows vs and vs-code can find debug symbols)
Btw my code base is a D project and I am using ldc (an llvm based d compiler).

It would be great if I can use this debugger for my project, so if I can help you let me know (maybe with a minimal test case?)

-- foerdi

Sorry, I haven't worked on this project much in the last few months, but I hope to pick it up again soon. The llvm-symbols branch doesn't work yet. You can try the master branch for some very basic symbol loading, but it's not great.

By the way, if you're developing D code on Windows, I recommend trying Visual Studio + VisualD with Visual Studio's debugger. I've been using it lately and it mostly works just fine.

@foerdi
Copy link

foerdi commented Dec 21, 2020

Thank you for the quick response.
The master branch is not building on my system, I will open an issue.

By the way, if you're developing D code on Windows, I recommend trying Visual Studio + VisualD with Visual Studio's debugger. I've been using it lately and it mostly works just fine.

Linux is my main System. I hope that I don't have to start my Windows VM to debug my project.
My plan is to use winedbg --gdb --no-start app.exe and connect this debugger. This works great for a separate MinGW project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants