This is the mail archive of the gdb@sources.redhat.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: Building gdb for sparcv9-sun-solaris2.8


Deb,

Let me know if you get anywhere with GDB on this platform. I am
also trying to debug 64 bit executables on Solaris 8 (I am compiling both
my applications and gdb with gcc-3.0) and so far I have been able to compile
gdb but when I try to use gdb to debug a 64 bit debug executable I get
errors:

For example:

	netra1:/export/home/local=>gdb sizes
	GNU gdb 20010910 (MI_OUT)
	Copyright 2001 Free Software Foundation, Inc.
	GDB is free software, covered by the GNU General Public License, and you
are
	welcome to change it and/or distribute copies of it under certain
conditions.
	Type "show copying" to see the conditions.
	There is absolutely no warranty for GDB.  Type "show warranty" for details.
	This GDB was configured as "sparc-sun-solaris2.8"...
	(gdb) b main
	Cannot access memory at address 0x894
	(gdb)

I configured with the following args:
../gdb-5.0/configure --host=sparc-sun-solaris2.8 --with-ld=/usr/local/bin/ld
 --n
orecursion
# using "mh-frag"

(Same arguments I used for gcc...)

So far I have had to use the forte compiler and debugger...

Eric Aversa
eaversa@omnesys.com


Re: Building gdb for sparcv9-sun-solaris2.8
To: Jeff Holcomb <jeffh at redhat dot com>
Subject: Re: Building gdb for sparcv9-sun-solaris2.8
From: Debbie Meade <deb_meade at yahoo dot com>
Date: Thu, 1 Nov 2001 13:26:59 -0800 (PST)
Cc: gdb at sourceware dot cygnus dot com, deb_meade at yahoo dot com

----------------------------------------------------------------------------
----

Thanks for your quick reply.

This tag is valid when I run:
sh config.sub sparcv9-sun-solaris2.8
and it is the same tag I specified when I built the 64
bit compiler.

When I tried the ../src/configure
--prefix=/home/debbie/gdb-5.0-sparc64/install
sparc64-sun-solaris2.8 I get further but I get an
error on the make:

I../../src/gdb/../readline/.. -I../bfd
-I../../src/gdb/../bfd  -I../../src/gdb/../include
-I../intl -I../../src/gdb/../intl -I../../src/gdb/tui
-DUSE_INCLUDED_REGEX   ../../src/gdb/sparc-tdep.c
../../src/gdb/sparc-tdep.c: In function
`supply_gregset':
../../src/gdb/sparc-tdep.c:1347: `PS_REGNUM'
undeclared (first use in this function)
../../src/gdb/sparc-tdep.c:1347: (Each undeclared
identifier is reported only once
../../src/gdb/sparc-tdep.c:1347: for each function it
appears in.)
../../src/gdb/sparc-tdep.c:1353: `WIM_REGNUM'
undeclared (first use in this function)
../../src/gdb/sparc-tdep.c:1354: `TBR_REGNUM'
undeclared (first use in this function)
../../src/gdb/sparc-tdep.c:1355: `CPS_REGNUM'
undeclared (first use in this function)
../../src/gdb/sparc-tdep.c: In function
`fill_gregset':
../../src/gdb/sparc-tdep.c:1373: `PS_REGNUM'
undeclared (first use in this function)
../../src/gdb/sparc-tdep.c: In function
`supply_fpregset':
../../src/gdb/sparc-tdep.c:1409: `FPS_REGNUM'
undeclared (first use in this function)
../../src/gdb/sparc-tdep.c: In function
`fill_fpregset':
../../src/gdb/sparc-tdep.c:1436: `FPS_REGNUM'
undeclared (first use in this function)
make[1]: *** [sparc-tdep.o] Error 1
make[1]: Leaving directory
`/home/debbie/gdb-5.0-sparc64/build/gdb'
make: *** [all-gdb] Error 2


The bottom line is that I need to be able to debug 64
bit executables and the gdb built for a straight
solaris 8 machine doesn't like them.

Any suggestions?
Thanks,
Debbie





--- Jeff Holcomb <jeffh@redhat.com> wrote:
> On Thu, 1 Nov 2001, Debbie Meade wrote:
>
> > I am trying to build gdb 5.0 for
> > sparcv9-sun-solaris2.8 host and I am getting a
> failure
> > while configuring:
>
> Is that a valid host triple?  What happens when you
> run src/config.guess
> ?  I suspect you want your host to be either
> sparc-sun-solaris2.8 or
> sparc64-sun-solaris2.8.
>
> --
> Jeff Holcomb
> jeffh@redhat.com
> GDB Engineering
> Red Hat, Inc.
>



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