I might have posted this to a wrong group. Posting to the kernel
group. With some hacking, I could able to get the gdbserver to the
link with bionic libraries and run on my target (armv7) platform. But,
I see that the gdbserver can only trace ARM code not thumb code.  Then
I looked at the ptrace code in kernel and saw that it doesn't support
using breakpoints for the thumb code.

See arch/arm/kernel/ptrace.c
printk(KERN_WARNING "ptrace: can't handle thumb mode\n");

Question: Did anyone used gdbserver to single step thumb/thumb2 code?


On Fri, Oct 16, 2009 at 10:55 AM, muni anda <muni.a...@gmail.com> wrote:
> Hi,
>
> I am trying to compile gdbserver 7.0 for bionic/armv7 target and
> running into compilation and linker issues.
>
> Problems are mainly 2 fold:
> - gdbserver code needs to be slightly modified as bionic has include files 
> with same name
>  in different locations (Example: sys/elf.h and linux/elf.h)
> - Linux include files under bionic are old and gdbserver 7.0 seems to be 
> using newer macros which are not
> are not on the public bionic git repo.
>
> I got past some of the issues and gdb server mostly works, but a bit crippled 
> in the features mainly related to the threading.
>
> Does Google happen to have the patch for the gdbserver (any version) 
> somewhere on the web? Is so, can someone share the patch?
>
> Thanks
> - Muni
>

--~--~---------~--~----~------------~-------~--~----~
unsubscribe: android-kernel+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-kernel
-~----------~----~----~----~------~----~------~--~---

Reply via email to