From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: GDB Date: Wed, 19 Feb 1997 00:23:56 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 42 Message-ID: <330AB89C.2B0@cs.com> References: <19970218 DOT 223208 DOT 4511 DOT 0 DOT fwec AT juno DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp227.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Mark T Logan wrote: > > I have compiled and linked my program with -pg, and then > run gdb bspbuild. (that is the name of my program) Umm... the last time I checked, there were some incompatibilities when debugging programs that are compiled for profiling. I think you've got your command line switched mixed up: '-g' compiles with debugging information, and '-pg' compiles for profiling. Try using '-g' and you should be able to debug properly. > when gdb starts up I type... > > (gdb) set args test.mp1 > (gdb) file bspbuild --( I think this is how you load symbol data. > Correct me if I'm wrong.) It's far easier to just type "gdb bspbuild.exe" instead of manually loading the file. Also, with v2.01, debuggers are capable of handling .exe files as well as unstubbed images. > P.S. Is there a high level debugger like GDB that has a full screen > interface like FSDB? Try getting the latest version of RHIDE. Robert Hoehne has done some fantastic work in integrating the functions of the gdb debugger into a Turbo Vision-style interface. His debugger exists as both an integrated part of the RHIDE IDE and as a standalone program. To obtain RHIDE, you'll need the 'v2apps/rhide11b.zip' package, and you'll also need to get the latest updates to v1.1 from Robert's web site at . Good luck! -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | God's final message to His Creation: | http://www.cs.com/fighteer | | "We apologize for the inconvenience."| Fight against proprietary | | - Douglas Adams | software - support the FSF!| ---------------------------------------------------------------------