From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,77a0c0853f67580b X-Google-Attributes: gidfa528,public From: Bevin R Brett Subject: Re: GNUPro Toolkit on OSF5.1 on Compaq ES Date: 2000/12/07 Message-ID: <3A305A4F.83D37D04@compaq.com>#1/1 X-Deja-AN: 702424945 Content-Transfer-Encoding: 7bit References: <90kdqb$cpf$1@nnrp1.deja.com> <3A2EEDF7.C3AAF458@compaq.com> <90o97h$f94$1@nnrp1.deja.com> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@rcn.com X-Trace: YCbYpOSiEZYfMS3XIKpGfR9JtkEei1rXyemDTrrov28= Mime-Version: 1.0 NNTP-Posting-Date: 8 Dec 2000 03:48:43 GMT Newsgroups: comp.unix.tru64 The gcc compilers produce incorrect debugging information - bad indexes into tables. They also produce inadequate debugging information to do a really good job - especially if you are trying to debug optimized code. On Tru64 systems, ladebug expects the compilers to produce the so-called 3rd-eye symbol table inside coff .o files (all the Compaq compilers do) plus Compaq extensions that describe optimized code (inlining, split lifetimes, etc.). On Alpha Linux systems, Compaq uses Dwarf2 in elf .o files. Have you tried using the Compaq cc and cxx compilers and ladebug? I understand that there are advantages to using the same dialect/dev system on several platforms, but my experience is that the Compaq compilers usually produce better diagnostics, and almost always produce much better code and better debugging information. Apart from a few places where g++ would not accept valid C++, we had good success using g++ to port Ladebug to Alpha Linux, although we have since switched to using Compaq's cxx on that platform also. The Compaq compilers have command line switches that cause them to accept pretty close to the gcc dialects on both platforms. /Bevin Brett Ladebug team Core Tech Group, High Performance Technical Computing Group Compaq ps: On Tru64, use ladebug, not dbx. dbx is being phased out. rslyon@my-deja.com wrote: > When you say that GCC produces invalid .o files, do you mean that they > are not accurate, or that they are not easily read with debuggers? > > We have had nothing but terrible luck porting from AIX to OSF51.. Same > GCC version, but unpredictable results. What kind of debug > information does ladebug read? I found that -g confuses DBX.. The > only one dbx will accept is -gcoff.. > > Richard > > In article <3A2EEDF7.C3AAF458@compaq.com>, > Bevin R Brett wrote: > > Download the latest ladebug from www.compaq.com/ladebug - -64 should > be > > there any day now > > > > There are some problems with the gcc generating invalid .o files, we > have > > been making some changes to ladebug more robust when it encounters > such > > badness > > > > /Bevin > > Compaq Ladebug Team > > > > rslyon@my-deja.com wrote: > > > > > Has anyone experience problems using the GNUPro Toolkit that comes > with > > > the freeware CD for osf5.1? > > > > > > We have experienced major problems an difficulties.. > > > > > > The first being that it doesn't come with GDB (nor will GDB come > close > > > to compiling on the machine). The version of DBX tends to be > > > unreliable using the supplied GCC version, and LADEBUG core dumps > > > consistently. > > > > > > The second being that without defining _LIBC_POLLUTION_H_, the > header > > > files that come with GNUPro collide with the system header files > (most > > > notibly, unistd.h.. cuserid redefined) > > > > > > The third being that if you change the owner of an executable that > > > relies on shared libraries, and set the group and user sticky bit > > > (gu+s), it looses track of paths from LD_LIBRARY_PATH (/sbin/loader > > > cannot find them).. > > > > > > Any comments, or suggestions would be greatly appreciated... > > > > > > Richard > > > > > > Sent via Deja.com http://www.deja.com/ > > > Before you buy. > > > > > > Sent via Deja.com http://www.deja.com/ > Before you buy.