www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/19/02:23:46

From: "John M. Aldrich" <fighteer AT cs DOT com>
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
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 <http://www.tu-chemnitz.de/~rho/rhide.html>.

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!|
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019