This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: dlmopen and core dumps
- From: Petr Machata <pmachata at redhat dot com>
- To: "Carlos O'Donell" <carlos at systemhalted dot org>
- Cc: Jan Kratochvil <jan dot kratochvil at redhat dot com>, Pedro Alves <palves at redhat dot com>, Roland McGrath <roland at hack dot frob dot com>, libc-alpha at sourceware dot org, gbenson at redhat dot com
- Date: Wed, 02 Jan 2013 18:54:30 +0100
- Subject: Re: dlmopen and core dumps
- References: <20121105132108.GA4305@redhat.com><CAE2sS1j8pNMhgunxNHvCofR-TuiJYk9HVTWk5OYz0MQN2_GuDg@mail.gmail.com><20121213214047.4D5652C0BF@topped-with-meat.com><50CB55A5.2020007@redhat.com><CAE2sS1gnk0vCgWFpmxQVLfcNOGYU3SRXU-ZtpfBU4JFZoPo2tw@mail.gmail.com><50CB6100.7070100@redhat.com><CAE2sS1iRo8_Z1zCkGN==cU0b=-zy_4o1GpTxk02Rpq+QoFhVNw@mail.gmail.com><20121219180552.GA19512@host2.jankratochvil.net><50D20572.70002@systemhalted.org>
"Carlos O'Donell" <carlos@systemhalted.org> writes:
> On 12/19/2012 01:05 PM, Jan Kratochvil wrote:
>> On Sat, 15 Dec 2012 01:20:03 +0100, Carlos O'Donell wrote:
>>> Why not just run a generic program, or rather a python script?
>>
>> Python is needlessly expensive. There does not exist only GDB, there exist
>> other smaller tools examining external programs which can for example run on
>> embedded targets.
>
> Do you have examples of such tools that I can go look at?
I suppose ltrace fits the bill. Embedded crowd even seems to have some
interest in it (I've seen several MIPS-related bug reports over the past
year). It's a small tool (the binary is about 200K), and linking in
close to 2M worth of libpython is something I'd rather not do.
I find the declarative approach very attractive. Using specifically
Dwarf seems like an obvious choice. Putting together a parser for Dwarf
expressions wouldn't be a big deal, and failing that, even the whole of
eu-libdw is not huge.
Thanks,
PM