This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list
- From: Doug Evans <dje at google dot com>
- To: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- Cc: Tom Tromey <tromey at redhat dot com>, gdb-patches at sourceware dot org
- Date: Fri, 4 Jun 2010 19:48:33 -0700
- Subject: Re: [patch] Smaller gdb: -rdynamic -> -Wl,--dynamic-list
- References: <20100513131840.GA31032@host0.dyn.jankratochvil.net> <AANLkTin4ZlIvdh7BXyfsuBj9oBmCJpHEYwhxukRqaVYu@mail.gmail.com> <20100516180828.GA6448@host0.dyn.jankratochvil.net> <m3y6f5f7d1.fsf@fleche.redhat.com> <20100528185211.GA30412@host0.dyn.jankratochvil.net>
On Fri, May 28, 2010 at 11:52 AM, Jan Kratochvil
<jan.kratochvil@redhat.com> wrote:
> On Thu, 27 May 2010 21:54:34 +0200, Tom Tromey wrote:
>> >>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:
>>
>> Jan> gdb/
>> Jan> 2010-05-16 ?Jan Kratochvil ?<jan.kratochvil@redhat.com>
>> Jan> gdb/gdbserver/
>> Jan> 2010-05-16 ?Jan Kratochvil ?<jan.kratochvil@redhat.com>
>> This is ok. ?Thanks.
>
> Checked-in:
> ? ? ? ?http://sourceware.org/ml/gdb-cvs/2010-05/msg00247.html
I've been playing with this a bit and got the following:
"ImportError: /usr/grte/v1/k8-linux/lib/python2.4/lib-dynload/itertools.so:
undefined symbol: PyExc_StopIteration"
when I did "import itertools".
I was statically linking libpythonX.Y.a.
I'm not sure what the right fix is. IWBN if the python folks have
anticipated this and provide something like proc-service.list for
python.
I don't know all the python symbols that need to be exported ... maybe
there's a simple regexp (or a small number of them) that could find
them all.
[OTOH it might be a bit too fragile.]
Alternatively, one could disable this feature when python is being
linked statically.