This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Support bionic's jmp_buf.
- From: Pedro Alves <palves at redhat dot com>
- To: Thiago Jung Bauermann <thiago dot bauermann at linaro dot org>
- Cc: gdb-patches ml <gdb-patches at sourceware dot org>
- Date: Mon, 21 May 2012 12:38:08 +0100
- Subject: Re: [patch] Support bionic's jmp_buf.
- References: <1337560528.4363.13.camel@hactar>
On 05/21/2012 01:35 AM, Thiago Jung Bauermann wrote:
> Hello,
>
> Android uses a libc (bionic) which is derived from BSD instead of glibc,
> and stores the PC value at a different location in the jump buffer than
> regular arm-linux. Also, since there's no PC mangling this code works
> even without SystemTap probes.
>
> I'm using the ELF interpreter field to identify an Android binary (the
> program loader is /system/bin/linker).
Urgh. Isn't there a better way? This doesn't work with shared libraries,
for starters.
But I think question number one is:
- Shouldn't there be an "Android" or "Bionic/Linux" OSABI instead
of abusing "GNU/Linux" ?
--
Pedro Alves