This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] Support bionic's jmp_buf.


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]