gdb not doing its thing?

gdb not doing its thing?

Discuss the source code and development of Spring Engine in general from a technical point of view. Patches go here too.

Moderator: Moderators

Post Reply
stephelton
Posts: 12
Joined: 28 May 2009, 07:10

gdb not doing its thing?

Post by stephelton »

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?
User avatar
BrainDamage
Lobby Developer
Posts: 1164
Joined: 25 Sep 2006, 13:56

Re: gdb not doing its thing?

Post by BrainDamage »

DEBUG doesn't have line debug infos, use an higher level

I'd say go directly for DEBUG3
stephelton
Posts: 12
Joined: 28 May 2009, 07:10

Re: gdb not doing its thing?

Post by stephelton »

Thanks. I thought I had tried DEBUG4 earlier, maybe I missed another part. I'll recompile DEBUG3 and sounds like it should work :)
User avatar
hoijui
Former Engine Dev
Posts: 4344
Joined: 22 Sep 2007, 09:51

Re: gdb not doing its thing?

Post by hoijui »

there is no DEBUG4 (maybe there is in CMake, but spring has only DEBUG, DEBUG2 and DEBUG3)
stephelton
Posts: 12
Joined: 28 May 2009, 07:10

Re: gdb not doing its thing?

Post by stephelton »

That's why I prequalified with "I thought..." ;)

DEBUG3 did the trick. Thanks.
Post Reply

Return to “Engine”