Author Topic: Symbol file  (Read 10958 times)

Offline antonien

  • Multiple posting newcomer
  • *
  • Posts: 24
Symbol file
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Symbol file
« Reply #1 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.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline antonien

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: Symbol file
« Reply #2 on: February 05, 2011, 06:48:27 pm »
Thanks for the reply.
It is cdb.

Regards

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Symbol file
« Reply #3 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
« Last Edit: February 05, 2011, 07:15:37 pm by oBFusCATed »
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline antonien

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: Symbol file
« Reply #4 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.
« Last Edit: February 06, 2011, 11:19:55 am by antonien »

Offline antonien

  • Multiple posting newcomer
  • *
  • Posts: 24
Re: Symbol file
« Reply #5 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
« Last Edit: February 06, 2011, 01:03:21 pm by antonien »

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13413
    • Travis build status
Re: Symbol file
« Reply #6 on: February 07, 2011, 12:20:05 am »
You are not posting the correct log :(
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]