This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa:sparc/rfc] multi-arch SOFTWARE_SINGLE_STEP et.al.
Michael Snyder wrote:
>
> Andrew Cagney wrote:
> >
> > Andrew Cagney wrote:
> >
> > > For the sparc64 this multi-arches software_single_step. Maintainer?
> > > Test on a solaris N+1 machine?
> >
> > So, I've managed to get a solaris 7 machine. How should I configure
> > things so that I know I'm testing the sparc64 support?
>
> Just make sure that the default gcc on your path (or $CC) defaults to 64-bit.
> Everything else should follow automatically.
Ok, found one. Must be working because:
$ file corelow.o
corelow.o: ELF 64-bit MSB relocatable SPARCV9 Version 1
> During development, when I had a prototype gcc that would do 64-bit
> but not as the default, I simply defined CC = "gcc -m64".
Only ....
gcc -c -g -O -I. -I/skil/cagney/SINGLE-STEP/src/gdb
-I/skil/cagney/SINGLE-STEP/src/gdb/config -DHAVE_CONFIG_H
-I/skil/cagney/SINGLE-STEP/src/gdb/../include/opcode
-I/skil/cagney/SINGLE-STEP/src/gdb/../readline/.. -I../bfd
-I/skil/cagney/SINGLE-STEP/src/gdb/../bfd
-I/skil/cagney/SINGLE-STEP/src/gdb/../include -I../intl
-I/skil/cagney/SINGLE-STEP/src/gdb/../intl -DUI_OUT=1 -Werror
/skil/cagney/SINGLE-STEP/src/gdb/core-sol2.c
In file included from /skil/cagney/SINGLE-STEP/src/gdb/core-sol2.c:35:
/usr/include/v9/sys/privregs.h:20:20: sys/asi.h: No such file or
directory
make: *** [core-sol2.o] Error 1
cagney@skil$ file corelow.o
I appended an extra -I/usr/include/v9 to CFLAGS. Should that be needed?
Andrew
PS, there are also a few -Werror warnings.