Fix gdb 8.1 Solaris compilation

Rainer Orth ro@CeBiTec.Uni-Bielefeld.DE
Thu Sep 21 14:14:00 GMT 2017


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



More information about the Gdb-patches mailing list