linux:~/tmp/downloads/boswars$ gdb ./boswars-debug
GNU gdb 6.7.1-debian
Copyright (C) 2007 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "i486-linux-gnu"...
Using host libthread_db library "/lib/i686/cmov/libthread_db.so.1".
(gdb) break MakeTextures
Breakpoint 1 at 0x811cd2b: file engine/video/graphic.cpp, line 964.
(gdb) run
Starting program: /home/daniel/tmp/downloads/boswars/boswars-debug
[Thread debugging using libthread_db enabled]
engine/stratagus/stratagus.cpp:281: !!!!Script scripts/boswars.lua
Bos Wars default config file loading ...
engine/video/sdl.cpp:134: frames 0 - 13.3ms
[New Thread 0xb784f6c0 (LWP 3674)]
[Switching to Thread 0xb784f6c0 (LWP 3674)]
Breakpoint 1, MakeTextures (g=0x833ce08, player=0, colors=0x0) at engine/video/graphic.cpp:964
964 tw = (g->GraphicWidth - 1) / GLMaxTextureSize + 1;
(gdb) step
Program received signal SIGFPE, Arithmetic exception.
0x0811cd40 in MakeTextures (g=0x833ce08, player=0, colors=0x0) at engine/video/graphic.cpp:964
964 tw = (g->GraphicWidth - 1) / GLMaxTextureSize + 1;
(gdb)