ddd
[Top][All Lists]
Advanced

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

Re: ddd/gdb


From: Tim Mooney
Subject: Re: ddd/gdb
Date: Tue, 27 Jan 2004 10:45:20 -0600 (CST)

In regard to: Re: ddd/gdb, Tom Wurgler said (at 9:32am on Jan 27, 2004):

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

No, it just means that gdb 6.0 doesn't have good support for whatever
debugging format HP-UX's f77 uses.

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

No, that's not going to make any difference.

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

gdb isn't handling the debugging symbols that HP's f77 is inserting.  It
doesn't matter what compiler you compile gdb with, it probably just
doesn't have some of the code it needs to support f77.  gdb's support
for every platform and every compiler is not perfect.  I think it's a
fantastic debugger, but it works very poorly on alpha-dec-osf, so when I
want to debug something on my workstation, I have to resort to another
debugger.

You are sure, however, that f77 is compiling in debugging information,
right?

You do know about HP's Wildebeast (wdb), right?  It's basically gdb 5.x
plus a huge number of improvements for HP-UX.  I believe it's still
command-equivalent to gdb, so you might be able to use it as a drop in
replacement for gdb in most circumstances.

Tim
-- 
Tim Mooney                              address@hidden
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164




reply via email to

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