Author Topic: gdb  (Read 2213 times)

0 Members and 1 Guest are viewing this topic.

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Rather than going through the gazillion-page menu...is there an easy way to get a stack trace, and current variable values for a stack trace? I've gotten fs2_open_d running from within it, but I had to kill it from a console as I haven't been able to run with the -windowed argument. :wtf:
-C

 

Offline fizz

  • 25
    • Crimson Fields
What is it that didn't work with -window? I'm using it all the time.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
"gdb fs2_open_d -windowed"
-C

 

Offline fizz

  • 25
    • Crimson Fields
Try "gdb --args fs2_open_d -windowed" instead.
Otherwise gdb will interpret the -windowed as an arg for itself.

 

Offline WMCoolmon

  • Purveyor of space crack
  • 213
Well, that's half working. The problem now seems to be that fs2_open grabs control of the keyboard, so I can't alt-tab, and the mouse freezes with it. So every time I hit a segfault or somesuch, I have to kill gdb via one of the ttys and can't get at the console window to try and output a stack trace.
-C

 

Offline fizz

  • 25
    • Crimson Fields
Don't forget -nograb.