Author Topic: getting gbd to work  (Read 3687 times)

Offline hckr83

  • Multiple posting newcomer
  • *
  • Posts: 38
getting gbd to work
« on: December 22, 2005, 09:04:33 pm »
I am trying to get gbd to tell me where at in my code a segmentation fault happens but nothing seems to work, i tried adding a symbol file and tried building debug info but all it seems to do is tell me a pointless address and what happened not where at in my code
any help?

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: getting gbd to work
« Reply #1 on: December 22, 2005, 09:08:46 pm »
Code::Blocks version, gdb version, compiler version, compiler flags...?
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline 280Z28

  • Regular
  • ***
  • Posts: 397
  • *insert unicode here*
Re: getting gbd to work
« Reply #2 on: December 22, 2005, 09:21:08 pm »
Are you using GDB 6.3? It's the only one that works with Code::Blocks.
78 280Z, "a few bolt-ons" - 12.71@109.04
99 Trans Am, "Daily Driver" - 525rwhp/475rwtq
 Check out The Sam Zone :cool:

Offline hckr83

  • Multiple posting newcomer
  • *
  • Posts: 38
Re: getting gbd to work
« Reply #3 on: December 22, 2005, 10:04:56 pm »
yes im pretty sure i have it because im using the one that was packaged with codeblocks
but i figured it out

the optimization of stripping symbols from the binary will remove all debug symbols(which logically that means its doing what its suppose to) so therefor wont give you any
debug info