corert icon indicating copy to clipboard operation
corert copied to clipboard

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

Open shrah opened this issue 9 years ago • 8 comments

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.

shrah avatar Feb 09 '17 20:02 shrah

OSX is known https://github.com/dotnet/corert/issues/2625

tijoytom-zz avatar Feb 09 '17 20:02 tijoytom-zz

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

tijoytom-zz avatar Feb 10 '17 17:02 tijoytom-zz

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.

MichalStrehovsky avatar Feb 10 '17 18:02 MichalStrehovsky

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

shrah avatar Feb 10 '17 19:02 shrah

@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.

shrah avatar Feb 10 '17 19:02 shrah

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

jkotas avatar Feb 10 '17 19:02 jkotas

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

kbaladurin avatar Mar 22 '18 06:03 kbaladurin

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

jkotas avatar Mar 23 '18 22:03 jkotas