www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/18/22:37:31

To: djgpp AT delorie DOT com
Subject: GDB
Message-ID: <19970218.223208.4511.0.fwec@juno.com>
From: fwec AT juno DOT com (Mark T Logan)
Date: Tue, 18 Feb 1997 22:25:24 EST

Hello.

I am trying to debug a program with GDB.  
I have never used a command line debugger like this
before, and find it rather difficult.

Here is my problem.

I have compiled and linked my program with -pg, and then
run gdb bspbuild. (that is the name of my program)

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.)
(gdb) break list_driver::list_driver(list_driver *)  --(the name of one
of my functions)
(gdb) run

this takes me to my break point, and I now try to check which local
variables are used by this function.

(gdb) info locals

now it tells me that there is no symbol table data available.  I thought
I loaded it with file bspbuild?
What is wrong?

TIA

-Fwec

P.S.  Is there a high level debugger like GDB that has a full screen
interface like FSDB?

- Raw text -


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