This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] [new testcase] Regression on qsort_cmp [Re: status of Darwin support]
- From: Paul Pluzhnikov <ppluzhnikov at google dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Tue, 25 Aug 2009 10:20:30 -0700
- Subject: Re: [patch] [new testcase] Regression on qsort_cmp [Re: status of Darwin support]
- References: <m3bpmvfro1.fsf@fleche.redhat.com> <20090805044504.GJ4370@adacore.com> <4A7ABAF0.7010004@Sun.COM> <C11EE4DE-A0A0-4A9E-A86E-9153A7AC81C8@adacore.com> <4A7FFAB3.7080903@Sun.COM> <m33a7z8qq5.fsf@fleche.redhat.com> <8ac60eac0908101320k6cc20e9age92656cba254a5d4@mail.gmail.com> <4A812B8B.8040202@Sun.COM> <20090825084613.GA22242@host0.dyn.jankratochvil.net> <20090825084723.GA24462@host0.dyn.jankratochvil.net>
On Tue, Aug 25, 2009 at 1:47 AM, Jan
Kratochvil<jan.kratochvil@redhat.com> wrote:
> Requesting approval for the testcase check-in.
> Tested on {x86_64,i686}-fedorarawhide-linux-gnu:
> FAIL: gdb.base/solib-overlap.exp: 0x40000000: attach (GDB internal error)
> FAIL: gdb.base/solib-overlap.exp: 0x50000000: attach (GDB internal error)
Thanks for the test. It nicely reproduces the problem, and is fixed by the
"remove assertions and deal with possible unexpected overlaps" patch I am
working on :)
I do have a general question on testing shlibs though:
In order to run this test on x86_64, I had to do this:
- set lib_flags {debug}
+ set lib_flags {debug additional_flags=-fpic}
Otherwise, I get
gdb.base/solib-overlap-lib.c.o: relocation R_X86_64_32 against `a
local symbol' can not be used when making a shared object; recompile
with -fPIC
and the test goes UNTESTED.
Shouldn't gdb_compile_shlib be adding '-fpic' automatically?
Or is the above correct fix for that test?
Thanks,
--
Paul Pluzhnikov