CDbg » Forums » Symbols not loading for my executable
Delix
Ryan Fleury
135 posts / 1 project

Handmade Network lead and developer of The Melodist

#16744 Symbols not loading for my executable
4 weeks, 1 day ago Edited by Ryan Fleury on Nov. 11, 2018, 6:21 a.m. Reason: Initial post

Hey there, hope you're doing well!

I'm writing a program in C and have been trying to debug it with CDbg; unfortunately, I am running into an issue that I'm not quite sure how to solve.

When trying to step into my program, the application does begin, and it seems that the debugger successfully attaches, as I can pause execution. However, checking the Debug Output window tells me that although the executable's module was loaded, its symbols weren't:

Loaded module "<path was here>"(symbols not loaded).

I am compiling the program with the following flags:

-Gm- -GR- -Gs- -Gy- -Gw- -EHa- -GL- -MT -nologo -Od -W3 -wd4201 -wd4100 -wd4189 /Zi -D_CRT_SECURE_NO_WARNINGS

I'm not sure if this helps, however, as they match another program I am writing identically (though the other program is compiled as C++) which runs just fine in CDbg.

I'm not really sure what the problem could be here... any idea?

Thanks,
Ryan

Handmade Network lead and developer of The Melodist
TastyMuffin
Nick Slivca
44 posts / 1 project

None

#16766 Symbols not loading for my executable
3 weeks, 6 days ago

Delix
Hey there, hope you're doing well!

I'm writing a program in C and have been trying to debug it with CDbg; unfortunately, I am running into an issue that I'm not quite sure how to solve.

When trying to step into my program, the application does begin, and it seems that the debugger successfully attaches, as I can pause execution. However, checking the Debug Output window tells me that although the executable's module was loaded, its symbols weren't:

Loaded module "<path was here>"(symbols not loaded).

I am compiling the program with the following flags:

-Gm- -GR- -Gs- -Gy- -Gw- -EHa- -GL- -MT -nologo -Od -W3 -wd4201 -wd4100 -wd4189 /Zi -D_CRT_SECURE_NO_WARNINGS

I'm not sure if this helps, however, as they match another program I am writing identically (though the other program is compiled as C++) which runs just fine in CDbg.

I'm not really sure what the problem could be here... any idea?

Thanks,
Ryan


Language should not be the issue. CDbg is written in C and I can debug it just fine. Maybe you can send me executable with the .pdb so I can debug it on my machine? There might be a bug in the NT headers parsing code which extracts PDB file path.

None
Delix
Ryan Fleury
135 posts / 1 project

Handmade Network lead and developer of The Melodist

#16804 Symbols not loading for my executable
2 weeks, 6 days ago

I sent you an email with a copy of the executable--thanks!

Handmade Network lead and developer of The Melodist