Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Breakpoints in managed code with gdb on Linux doesn't work #2703

Closed
shrah opened this issue Feb 9, 2017 · 8 comments
Closed

Breakpoints in managed code with gdb on Linux doesn't work #2703

shrah opened this issue Feb 9, 2017 · 8 comments

Comments

@shrah
Copy link
Contributor

shrah commented Feb 9, 2017

I tried to set breakpoints in managed code with gdb on Linux. The breakpoints are not hitting. Also "info function" doesn't include the list of managed functions. I can see the function names in the frame, so I am assuming the symbols are there. gdb version 7.7

It didn't work for me with lldb on OSX either.

@tijoytom-zz
Copy link
Contributor

OSX is known #2625

@tijoytom-zz
Copy link
Contributor

@shrah Realized that it's the framework code break points that don't work , did you try a break point in any user code ..

@MichalStrehovsky
Copy link
Member

We are probably not reading the symbols for System.Private assemblies. You can probably hack it locally to place the PDBs next to the IL DLLs. This is related to #941 and #907.

@shrah
Copy link
Contributor Author

shrah commented Feb 10, 2017

@tijoytom I tried setting breakpoint in user code, unfortunately that didn't work either :(

@shrah
Copy link
Contributor Author

shrah commented Feb 10, 2017

@MichalStrehovsky I just verified the pdbs are there for System.Private* next to the dlls. However, I noticed that the pdb sizes are smaller than dll. For example, System.Private.CoreLib the dll size is 2.1MB whereas the pdb size is 0.8 MB. I wonder whether these are public PDBs or not.

@jkotas
Copy link
Member

jkotas commented Feb 10, 2017

These are portable PDBs, and yes - they are small :-)

@kbaladurin
Copy link
Member

Is this issue still occurs on the current version of the corert?

@jkotas
Copy link
Member

jkotas commented Mar 23, 2018

It works for me too. I assume that this issue can be closed.

@jkotas jkotas closed this as completed Mar 23, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants