[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ddd/gdb
From: |
Tom Wurgler |
Subject: |
Re: ddd/gdb |
Date: |
Tue, 27 Jan 2004 09:32:55 -0500 (EST) |
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
breakpoint
Tom> at a point after a variable is set. The code runs to that spot and stops.
I
Tom> highlight the variable name in the source window and click "print". I get
Tom> $1 = 189871112. This should be a character string "testfile.dat". I get
Tom> similar results for a real variable.
Tom> So I get out of ddd and run gdb on the command line. Same results. So it
is
Tom> gdb doing this, not ddd. So I've searched the info pages for gdb and in
Tom> 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 isn't a
ddd
Tom> problem, but perhaps one of you know the answer?
- ddd/gdb, Tom Wurgler, 2004/01/26
- Re: ddd/gdb,
Tom Wurgler <=