Difference between revisions of "HowTo:Use GDB"

From VsWiki
Jump to: navigation, search
m (small case fixes)
m (arrow links)
Line 1: Line 1:
 
{{NAV_Manual |
 
{{NAV_Manual |
| previous=[[HowTo:Edit News|Editing News]]
+
| previous=[[HowTo:Cygwin Compiling|Compiling with Cygwin]]
 
| up=[[HowTo]]
 
| up=[[HowTo]]
| next=[[HowTo:Checkout CVS|Checkout CVS]]
+
| next=[[HowTo:Compile Wings3d from CVS|Compiling Wings3d]]
 
}}
 
}}
 
----
 
----
Line 36: Line 36:
 
----
 
----
 
{{NAV_Manual |
 
{{NAV_Manual |
| previous=[[HowTo:Edit News|Editing News]]
+
| previous=[[HowTo:Cygwin Compiling|Compiling with Cygwin]]
 
| up=[[HowTo]]
 
| up=[[HowTo]]
| next=[[HowTo:Checkout CVS|Checkout CVS]]
+
| next=[[HowTo:Compile Wings3d from CVS|Compiling Wings3d]]
 
}}
 
}}
  
 
[[Category:HowTo|Using GDB]]
 
[[Category:HowTo|Using GDB]]

Revision as of 04:40, 23 March 2005

arrow_left.png Compiling with Cygwin arrow_up.png HowTo Compiling Wings3d arrow_right.png

Using GDB with Vegastrike

This page provides information on how to use GDB to help debug Vegastrike.

Debugging process

Game compilation

  • First you have to configure Vegastrike with the --enable-debug option in addition to your others:
    ./configure <your other parameters> --enable-debug
  • Then make your Vegastrike binary:
    make

Please make sure you have enough disk space available before doing this. Compiling Vegastrike with --enable-debug eats up a huge amount of disk space.

Run GDB

  • Start gdb (GNU Debugger):
    gdb /path/to/vegastrike
  • Start the game by typing this into the gdb-console:
    run
  • When the error occurs or it dies type
print *this
backtrace full
up
print *this
up
print *this

See also

The content of this site is mostly take from this post in the forum.


arrow_left.png Compiling with Cygwin arrow_up.png HowTo Compiling Wings3d arrow_right.png