Code::Blocks Forums

User forums => Help => Topic started by: antonien on February 05, 2011, 04:27:53 pm

Title: Symbol file
Post by: antonien on February 05, 2011, 04:27:53 pm
Looking at the search section, I am not the only guy who get stuck with that warning :

Code
ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll -

I couldn't find a definite answer in the search : is it possible to cope with it ? Where can I find that symbol file ?

Thanks in advance for the answer.
I'll google for it in the mean time and if I find the answer, I'll post it.

Best regards
Title: Re: Symbol file
Post by: oBFusCATed on February 05, 2011, 06:44:15 pm
Which compiler? If it is gcc you can't, because it doesn't support MS style debug info.
Title: Re: Symbol file
Post by: antonien on February 05, 2011, 06:48:27 pm
Thanks for the reply.
It is cdb.

Regards
Title: Re: Symbol file
Post by: oBFusCATed on February 05, 2011, 07:13:46 pm
Read the cdb manual...
There should be a command that tells the debugger to load the symbols from MS's symbol servers.
Another option is to download it yourself and place it, where the debugger can find it.

p.s. can you paste the debugger's debug log ( Settings -> Compiler & Debugger -> Debugger -> Display debug log).
p.p.s. please use code tags
Title: Re: Symbol file
Post by: antonien on February 06, 2011, 10:04:32 am
Thanks for the answer. Debug log is :

Code
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: D:\Jeux\CodeBlocks\Programmes\EditXY\
Adding source dir: D:\Jeux\CodeBlocks\Programmes\EditXY\
Adding file: bin\Debug\EditXY.exe
Starting debugger:
done
Setting breakpoints
Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: bin/Debug/EditXY.exe
Symbol search path is: D:/Jeux/CodeBlocks/Programmes/EditXY/
Executable search path is:
ModLoad: 00000000`00cf0000 00000000`0110d000   EditXY.exe
ModLoad: 00000000`774d0000 00000000`7767b000   ntdll.dll
ModLoad: 00000000`776b0000 00000000`77830000   ntdll32.dll
ModLoad: 00000000`73cb0000 00000000`73cef000   C:\Windows\SYSTEM32\wow64.dll
ModLoad: 00000000`73c50000 00000000`73cac000   C:\Windows\SYSTEM32\wow64win.dll
ModLoad: 00000000`751f0000 00000000`751f8000   C:\Windows\SYSTEM32\wow64cpu.dll
(10b4.1048): Break instruction exception - code 80000003 (first chance)
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll -
ntdll!CsrSetPriorityClass+0x40:
00000000`77581340 cc              int     3
Obviously, symbol path is set to my program directory.
Do I have to write something in the Dubugger initialization commands ? Where to put the symbol path ?
I did put a "_NT_SYMBOL_PATH" with my "c:\CB nightly build\Symbols" symbol path as an environment variable but it doesn't work.
Id doesn't work either with the "srv*c:\symbols*http://msdl.microsoft.com/download/symbols" setting for "_NT_SYMBOL_PATH".

Thanks in advance.
Title: Re: Symbol file
Post by: antonien on February 06, 2011, 01:00:04 pm
I removed any "space" character from my symbol path and put it in c:\Symbols. To be sure, I declared it as a _NT_SYMBOL_PATH environment variable.
I declared it in the "Projetc>Properties>Debugger>Additional debugger search dirs" and now it is recognized as symbol search path by the debugger... but it fails again and again !

Code
Building to ensure sources are up-to-date
Build succeeded
Selecting target:
Debug
Adding source dir: C:\Symbols\
Adding source dir: D:\Jeux\CodeBlocks\Programmes\EditXY\
Adding source dir: D:\Jeux\CodeBlocks\Programmes\EditXY\
Adding file: bin\Debug\EditXY.exe
Starting debugger:
done
Setting breakpoints
Microsoft (R) Windows Debugger Version 6.12.0002.633 AMD64
Copyright (c) Microsoft Corporation. All rights reserved.
CommandLine: bin/Debug/EditXY.exe
Symbol search path is: C:/Symbols/;D:/Jeux/CodeBlocks/Programmes/EditXY/
Executable search path is:
ModLoad: 00000000`00e60000 00000000`0127d000   EditXY.exe
ModLoad: 00000000`778e0000 00000000`77a8b000   ntdll.dll
ModLoad: 00000000`77ac0000 00000000`77c40000   ntdll32.dll
ModLoad: 00000000`740c0000 00000000`740ff000   C:\Windows\SYSTEM32\wow64.dll
ModLoad: 00000000`74060000 00000000`740bc000   C:\Windows\SYSTEM32\wow64win.dll
ModLoad: 00000000`75600000 00000000`75608000   C:\Windows\SYSTEM32\wow64cpu.dll
(b40.137c): Break instruction exception - code 80000003 (first chance)
*** ERROR: Symbol file could not be found.  Defaulted to export symbols for ntdll.dll -
ntdll!CsrSetPriorityClass+0x40:
00000000`77991340 cc              int     3
Title: Re: Symbol file
Post by: oBFusCATed on February 07, 2011, 12:20:05 am
You are not posting the correct log :(