Page 1 of 1
Anybody got a link to "running Tome with gdb under MinGW?"
Posted: Sat Feb 19, 2011 8:27 pm
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.
Re: Anybody got a link to "running Tome with gdb under MinGW
Posted: Sat Feb 19, 2011 8:42 pm
by madmonk
Re: Anybody got a link to "running Tome with gdb under MinGW
Posted: Sat Feb 19, 2011 9:28 pm
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.
Re: Anybody got a link to "running Tome with gdb under MinGW
Posted: Sat Feb 19, 2011 9:58 pm
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.
Re: Anybody got a link to "running Tome with gdb under MinGW
Posted: Sun Feb 20, 2011 1:06 am
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