debugging info

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

debugging info

Rob Withers
 
How can I compile with debugging info under cygwin?  I tried -g and it blew
up on me.

Thanks,
Rob

Reply | Threaded
Open this post in threaded view
|

Re: debugging info

Eliot Miranda-2
 


On Fri, Jul 23, 2010 at 5:14 AM, Rob Withers <[hidden email]> wrote:

How can I compile with debugging info under cygwin?  I tried -g and it blew up on me.

Have a look at the Cog cygwin makefiles. They use -ggdb2 (-ggdb3 & -ggdb3 works too) and  --add-gnu-debuglink to connect the stripped executable to the unstripped for debugging the stripped executable.
 

Thanks,
Rob

Reply | Threaded
Open this post in threaded view
|

Re: debugging info

Rob Withers
 
So I should run CroquetUnstripped.exe to debug?  I am a little confused by all the binaries.

Sent: Friday, July 23, 2010 1:06 PM
Subject: Re: [Vm-dev] debugging info




On Fri, Jul 23, 2010 at 5:14 AM, Rob Withers <[hidden email]> wrote:

How can I compile with debugging info under cygwin?  I tried -g and it blew up on me.

Have a look at the Cog cygwin makefiles. They use -ggdb2 (-ggdb3 & -ggdb3 works too) and  --add-gnu-debuglink to connect the stripped executable to the unstripped for debugging the stripped executable.
 

Thanks,
Rob

Reply | Threaded
Open this post in threaded view
|

Re: debugging info

Eliot Miranda-2
 


On Fri, Jul 23, 2010 at 11:37 PM, Rob Withers <[hidden email]> wrote:
 
So I should run CroquetUnstripped.exe to debug?  I am a little confused by all the binaries.

You can use either Croquet.exe or CroquetUnstripped.exe.  If footprint is a concern you deploy Croquet.exe and (if needed to debug in the field) grab a copy of CroquetUnstripped.exe, gdb Croquet.exe and say (gdb) file CroquetUnstripped.exe.  If footprint isn't a concern just use CroquetUnstripped.exe.


The CroquetConsole.exe & its unstripped twin are there because WIndows divides binaries into those that run in their own window (effectively with no stdio) and those that in a console with stdio.


HTH
Eliot

Sent: Friday, July 23, 2010 1:06 PM
Subject: Re: [Vm-dev] debugging info




On Fri, Jul 23, 2010 at 5:14 AM, Rob Withers <[hidden email]> wrote:

How can I compile with debugging info under cygwin?  I tried -g and it blew up on me.

Have a look at the Cog cygwin makefiles. They use -ggdb2 (-ggdb3 & -ggdb3 works too) and  --add-gnu-debuglink to connect the stripped executable to the unstripped for debugging the stripped executable.
 

Thanks,
Rob