This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: [Fwd: [Fwd: gdb 20000413 compile problem and strange SEGVproblem]]


In regard to: Re: [Fwd: [Fwd: gdb 20000413 compile problem and strange...:

>Tim Mooney wrote:
>
>> >so IRIX 6.x is a known problem.  If someone comes up with a simple small
>> >self contained patch in time for gdb-5.0 then it might go in.  I suspect
>> >that getting it sorted in 5.1 is a better option.  This is consistent
>> >with FreeBSD and a few other platforms.
>> 
>> Sounds good.  I was just surprised to see that recent cvs wouldn't build,
>> sinc 4.18 will build fine on the same platform.  Looking through the code
>> I can see there have been a lot of changes, though, so it's not such a
>> surprise.
>
>Sigh.  If GDB-4.18 built on IRIX 6.x but GDB-5.0 doesn't we've got a
>regression - I didn't know it had built before :-(  In the other cases
>they either never built or the OS underwent significant changes.

That's why I mentioned it -- I thought it was kind of odd.

I just built 4.18 on mips-sgi-irix6.5 (6.5.3), to make sure I wasn't
misremembering anything.  I'm not.  It builds out of the box, with the vendor
compiler, in `n32' (new 32-bit ABI) mode.  I used the following CFLAGS with
the MIPSPro 7.2.1 C compiler:

	-n32 -O2 -g3 -xansi -OPT:Olimit=3000

I was also able to build a 64 bit ABI version of gdb on a mips-sgi-irix6.5
(6.5.5) box.  I couldn't optimize ch-exp.c because the vendor compiler 
(version 7.3, here) backend exhausted swap, and I had to manually remove
`-lsun' from the link line (seems it's being added automatically, probably
by a config fragment in gdb-4.18/gdb/config/mips).  It appears there is no
64-bit version of that (old, I think?) library.

I haven't done exhaustive testing of either of the binaries, but they'll
*build*, and very minimal testing works OK on n32 binaries.  I tried attaching
to a 64 bit program, and that didn't work.

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J1, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]