Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old July 1, 2013, 05:12   #1
TricksterWolf
Scout
 
Join Date: Sep 2012
Posts: 43
TricksterWolf is on a distinguished road
Unhappy I am too stupid to use gdb with Angband.

In Netbeans I have the Run executable pointing to the place angband.exe gets copied at project root level. But when I try to Debug, all I get is assembly code I can't step through (it decompiles angband.exe which is dumb). Basically I can pause execution and peek at the decompiled code, and that's all I can do. I know that gdb is running through either Cygwin or DOS just fine because the decompiled code has a stack trace etc.

Trying to attach angband.exe to the debugger directly ends up failing, though if I really muck it up I can get it to do the same not-useful thing by attaching it directly.

Is there something I must do to configure gdb (and/or the project) so that I can see debugging data at C-file level? I haven't used a C-only debugger ever, and it's been many years since I did it with C++ so things have changed.

I may need to post on gdb forums and NetBeans forums as well but I figured I'd give this one a shot first. Thanks.
TricksterWolf is offline   Reply With Quote
Old July 6, 2013, 04:44   #2
TricksterWolf
Scout
 
Join Date: Sep 2012
Posts: 43
TricksterWolf is on a distinguished road
Solved it. Someone from the NetBeans forums was kind enough to inform me I needed to use the cross-compiler's -g flag to retain debug information with the binary. I updated the Makefile.win and it works like a charm.

Submitted here in case anyone else has gdb woes someday...
TricksterWolf is offline   Reply With Quote
Old July 6, 2013, 18:15   #3
APWhite
Adept
 
APWhite's Avatar
 
Join Date: Jul 2007
Location: St George Utah, USA
Posts: 244
APWhite is on a distinguished road
Which is why I use Visual Studio. Its free now, BTW.
APWhite is offline   Reply With Quote
Reply

Tags
breakpoint, debug, gdb, stack trace, watch


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
It was so stupid... lenrok Vanilla 10 January 24, 2013 08:23
Yet another stupid Windows question Therem Harth Development 0 July 13, 2012 18:25
Probably going to sound stupid Monkay Vanilla 6 March 20, 2012 14:16
Stupid non-death brinewave Vanilla 5 November 8, 2010 19:02
Stupid ghouls. relientKitten Vanilla 7 June 2, 2009 16:43


All times are GMT +1. The time now is 04:48.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.