Re: [patchv4 3/5] new: solib-sunos.c objfile unification [test needed]

Joel Brobecker
2013-09-19T14:19:34Z

> gdb/
> 2013-09-18 Jan Kratochvil <jan.kratochvil@redhat.com>
>
> * solib-sunos.c (allocate_rt_common_objfile): Replace it by an
> allocate_objfile call.
> (solib_add_common_symbols): Call free_objfile and allocate_objfile
> instead.

If this is really used on Solaris, I wouldn't mind testing it
(though only with our internal testing, as something in the official
testing badly crashes every single of our Solaris machine).
But isn't this file only used in the case of (old) SunOS, that is
pre-Solaris? Actually, a quick grep shows:

./config/vax/nbsdaout.mh: solib-sunos.o
./config/sparc/nbsdaout.mh: sparc-nat.o sparcnbsd-nat.o bsd-kvm.o solib-sunos.o
./config/m68k/nbsdaout.mh: solib-sunos.o
./config/m68k/obsd.mh: solib-sunos.o
./config/arm/nbsdaout.mh: solib-sunos.o
./config/i386/nbsdaout.mh: solib-sunos.o
./config/i386/obsdaout.mh: solib-sunos.o

I must be missing something, or else did you build with --enable-targets=all?

--
Joel