dlmopen and core dumps

Petr Machata pmachata@redhat.com
Wed Jan 2 17:55:00 GMT 2013


"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



More information about the Libc-alpha mailing list