This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Fix gdb 8.1 Solaris compilation
- From: Rainer Orth <ro at CeBiTec dot Uni-Bielefeld dot DE>
- To: Andreas Schwab <schwab at suse dot de>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 21 Sep 2017 16:14:48 +0200
- Subject: Re: Fix gdb 8.1 Solaris compilation
- Authentication-results: sourceware.org; auth=none
- References: <yddy3p8p5l6.fsf@CeBiTec.Uni-Bielefeld.DE> <mvm8th819a0.fsf@suse.de>
Hi Andreas,
> On Sep 21 2017, Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE> wrote:
>
>> diff --git a/gdb/configure.nat b/gdb/configure.nat
>> --- a/gdb/configure.nat
>> +++ b/gdb/configure.nat
>> @@ -216,7 +216,8 @@ case ${gdb_host} in
>> case ${gdb_host_cpu} in
>> i386)
>> # Host: Solaris x86
>> - NATDEPFILES='fork-child.o i386-v4-nat.o i386-sol2-nat.o \
>> + NATDEPFILES='fork-child.o fork-inferior.o
>> + i386-v4-nat.o i386-sol2-nat.o
>> procfs.o proc-api.o proc-events.o proc-flags.o proc-why.o'
>> HAVE_NATIVE_GCORE_HOST=1
>> ;;
>
> Doesn't that lack backslashes?
It does, good catch, thanks. The configure fragment resp. shell is fine
without, of course, but they are needed once substituted into Makefile.
Fixed locally.
However, this section is only needed on Solaris < 10, which is why I
didn't notice it until I tried an i386-pc-solaris2.9 build. It's
probably time to remove support for those old Solaris versions in gdb,
too: gcc lost them after 4.9.
Rainer
--
-----------------------------------------------------------------------------
Rainer Orth, Center for Biotechnology, Bielefeld University