ddd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: ddd/gdb


From: Atwood, Robert C
Subject: RE: ddd/gdb
Date: Tue, 27 Jan 2004 15:18:21 -0000

Well I am not the absolute authority,  but I believe that this is best
answered at the GDB level rather than DDD; DDD primarily does nice ways
of displaying and manipulating the information that is presented by the
underlying debugger. The underlying debugger depends upon the
relationship between machine-stored information and human-readable
variable names being stored in some particular format (some things like
STABS or DWARF2 ) inside the executable file. Mabye the other compiler
uses a different format or needs special instructions to use a format
recognized by gdb. Look at the gdb manual first, and the docs for your
compiler if available. 

-----Original Message-----
From: address@hidden
[mailto:address@hidden On Behalf Of Tom
Wurgler
Sent: 27 January 2004 14:33
To: address@hidden
Cc: address@hidden
Subject: Re: ddd/gdb



Using: DDD 3.3.8, gdb 6.0, gcc-3.3.2, HP-UX 11.0

Ok, I've found some answers.  If I compile my fortran program with g77,
then I can examine variables etc as I'd expect both in gdb command line
and via ddd. If I use HP's f77, then I can't. 

This brings up some questions:

1) DDD/GDB were compiled with gcc 3.3.2.  Does this mean I can only
debug
   programs compiled with the maching g77? 

2) If I recompile DDD/GDB with HP's cc, can I debug f77 compiled
programs
   and g77 compiled programs?

3) Or am I just not getting it?  What am I missing?

I will be experimenting with the various combos, but figured I'd ask the
list to gain any other opinions/experiences.

Thanks
tom



Recently Tom Wurgler <address@hidden> wrote:

Tom> Date: Mon, 26 Jan 2004 15:31:29 -0500 (EST)
Tom> From: Tom Wurgler <address@hidden>
Tom> Cc: address@hidden
Tom> Sender: address@hidden

Tom> I have a question about ddd (3.3.8) when using gdb (6.0).  I set a 
Tom> breakpoint at a point after a variable is set.  The code runs to 
Tom> that spot and stops.  I highlight the variable name in the source 
Tom> window and click "print".  I get $1 = 189871112.  This should be a 
Tom> character string "testfile.dat".  I get similar results for a real 
Tom> variable.

Tom> So I get out of ddd and run gdb on the command line.  Same results.

Tom> So it is gdb doing this, not ddd.  So I've searched the info pages 
Tom> for gdb and in particular the print command and try all the
options.

Tom> I can't get things to print.  What is up with this...I know this 
Tom> isn't a ddd problem, but perhaps one of you know the answer?



_______________________________________________
Ddd mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/ddd




reply via email to

[Prev in Thread] Current Thread [Next in Thread]