Anybody got a link to "running Tome with gdb under MinGW?"

All development conversation and discussion takes place here

Moderator: Moderator

Post Reply
Message
Author
Freddybear
Wyrmic
Posts: 201
Joined: Wed Dec 06, 2006 6:58 pm
Location: Mordor, Ohio

Anybody got a link to "running Tome with gdb under MinGW?"

#1 Post by Freddybear »

I found a ref to the old t-o-m-e wiki about how to run ToME under gdb, but that link is defunct now.
Is there an alternate source for that page?

I can start gdb and run the t-engine but I can't figure out how to get a stack trace when the engine is looping.

madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

Re: Anybody got a link to "running Tome with gdb under MinGW

#2 Post by madmonk »

Regards

Jon.

Freddybear
Wyrmic
Posts: 201
Joined: Wed Dec 06, 2006 6:58 pm
Location: Mordor, Ohio

Re: Anybody got a link to "running Tome with gdb under MinGW

#3 Post by Freddybear »

Thank you.

Got any hints on how to use gdb to debug a loop in the program?

"gbd t-engine" followed by "run" won't let me break in to do the "backtrace" or "info stack" command, and I can't seem to figure out how to attach t-engine from gdb to debug it asynchronously under Windows either.

madmonk
Reaper
Posts: 2257
Joined: Wed Dec 12, 2007 12:21 am
Location: New Zealand

Re: Anybody got a link to "running Tome with gdb under MinGW

#4 Post by madmonk »

Take a look at this:

http://www.unknownroad.com/rtfm/gdbtut/gdbinfloop.html

Since this is RMS at work, it is for Linux, but should work for WIndows.
Regards

Jon.

Freddybear
Wyrmic
Posts: 201
Joined: Wed Dec 06, 2006 6:58 pm
Location: Mordor, Ohio

Re: Anybody got a link to "running Tome with gdb under MinGW

#5 Post by Freddybear »

OK, this has turned into a can of worms.

It seems that there is a problem with Windows passing ctrl-C interrupts to gdb.
This page has a workaround: http://www.mingw.org/wiki/Workaround_fo ... _Interrupt

Post Reply