ddd
[Top][All Lists]
Advanced

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

Re: ddd/gdb


From: Arnaud Desitter
Subject: Re: ddd/gdb
Date: Tue, 27 Jan 2004 15:42:09 -0000

Hi,

If you want to debug some code compiled by gcc/g++/g77,
use "ddd --gdb".
If you want to debug some code compiled by the HP compilers,
then you need to install the HP debugger (wdb) and use
"ddd --wdb".
Indecently, I thought that HP f77 was discontinued. I suppose
it is an alias for f90.

Regards,

----- Original Message ----- 
From: "Tom Wurgler" <address@hidden>
Newsgroups: gmane.comp.debugging.ddd.general
Cc: <address@hidden>
Sent: Tuesday, January 27, 2004 2:32 PM
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
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?





reply via email to

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