I've checked out branch 0.80.5.2 and set:
CMAKE_BUILD_TYPE = DEBUG
USE_GML = ON
USE_GML_DEBUG = ON
USE_GML_SIM = ON
All confirmed by ccmake. I build, then bust out gdb with "gdb ./spring" and it reports success in loading debug symbols.
But I try to set a breakpoint and it fails:
(gdb) break SelectMenu.cpp:146
No line 146 in file "/home/stephen/devel/cvs/spring/rts/Game/SelectMenu.cpp".
Likewise, when I suspend execution and get a backtrace, there are no line numbers.
Any thoughts?
gdb not doing its thing?
Moderator: Moderators
- BrainDamage
- Lobby Developer
- Posts: 1164
- Joined: 25 Sep 2006, 13:56
Re: gdb not doing its thing?
DEBUG doesn't have line debug infos, use an higher level
I'd say go directly for DEBUG3
I'd say go directly for DEBUG3
-
- Posts: 12
- Joined: 28 May 2009, 07:10
Re: gdb not doing its thing?
Thanks. I thought I had tried DEBUG4 earlier, maybe I missed another part. I'll recompile DEBUG3 and sounds like it should work :)
Re: gdb not doing its thing?
there is no DEBUG4 (maybe there is in CMake, but spring has only DEBUG, DEBUG2 and DEBUG3)
-
- Posts: 12
- Joined: 28 May 2009, 07:10
Re: gdb not doing its thing?
That's why I prequalified with "I thought..." 
DEBUG3 did the trick. Thanks.

DEBUG3 did the trick. Thanks.