Author Topic: AMD CodeAnalyst and Symbols  (Read 6081 times)

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
AMD CodeAnalyst and Symbols
« on: May 27, 2005, 02:24:37 am »
I am trying to use AMD CodeAnalyst to profile one of the Orge Tutorial examples, and I can't seem to get it recognize any of the symbols.  I am not using strip.exe to remove extra stuff (the file is about 4.3MB bigger without it) and I have the "Produce debugging symbols" checked.  But not matter what I do when I open the exe in CodeAnalyst it doesn't show any symbols.

Does anyone have any experience with this? Am I doing something wrong?

Offline Profic

  • Multiple posting newcomer
  • *
  • Posts: 56
AMD CodeAnalyst and Symbols
« Reply #1 on: May 27, 2005, 11:30:19 am »
I can't find more info about CodeAnalyst in AMD's site to check out supported debug symbols formats, thus try to play with debug symbols format specifiers described http://gcc.gnu.org/onlinedocs/gcc-3.4.4/gcc/Debugging-Options.html and starting with -g.

PS. I personally use -ggdb to debug c++ with gdb, as with default -g gdb just crashes. You seems need to use -gstabs or -gdwarf-2, however -g
  • coff may be reasonable, too.
Not fear, nor tears can reach me now, the light seems so clear as the night fades away (c) Tristania - Beyond The Veil

Offline Game_Ender

  • Lives here!
  • ****
  • Posts: 551
AMD CodeAnalyst and Symbols
« Reply #2 on: May 27, 2005, 04:12:59 pm »
Thanke for the help, but now I have a stupid question: where do i set those compiler flags? It doesn't seem to work if I go to myproject->Build Option->Compiler Options->More Options/Compiler Defininitions.

Offline Profic

  • Multiple posting newcomer
  • *
  • Posts: 56
AMD CodeAnalyst and Symbols
« Reply #3 on: May 27, 2005, 04:55:54 pm »
myproject->Build Option->Compiler Options->More Options works fine for me. As I mentioned earlier I have -ggdb there.
What do you mean under "doesn't seem to work"? If it not displaying in log, then go to Settings->Compiler->Other and select in "Compiler logging" "Full command line"

I do not known what type of debugging symbols CA expects. You have to read the manual, or something similiar, if included with CA at all, to figure out required format.
Second option is to bruteforce through all possisble formats, supported by gcc.

PS. I guess there is no problems with MSVCTK, and CA expects debugging info in former's format.
Not fear, nor tears can reach me now, the light seems so clear as the night fades away (c) Tristania - Beyond The Veil