Re: native gdb for Android

2012-02-03 Thread Barry Song
Ulrich, thanks a lot! 2012/2/4 Ulrich Weigand : > Barry Song <21cn...@gmail.com> wrote. >> 2012/2/3 Ulrich Weigand : >> > However, from looking at the gdbserver sources provided with Android, >> > it seems there are some differences; in particular, there's this patch: >> > >> > +/* Android doesn't

Re: native gdb for Android

2012-02-03 Thread Ulrich Weigand
Barry Song <21cn...@gmail.com> wrote. > 2012/2/3 Ulrich Weigand : > > However, from looking at the gdbserver sources provided with Android, > > it seems there are some differences; in particular, there's this patch: > > > > +/* Android doesn't have libthread_db.so.1, just libthread_db.so.  */ > > +

Re: native gdb for Android

2012-02-03 Thread Barry Song
2012/2/3 Thiago Jung Bauermann : > Hi Barry, > > On Thu, 2012-02-02 at 10:23 +0800, Barry Song wrote: >> 2.    Why can’t the current gdb capture multithreads for android >> processes? This question is actually about the theory for gdb to know >> multi-threads. In my opinion, both gnu and android us

Re: native gdb for Android

2012-02-02 Thread Barry Song
Hi Ulrich, 2012/2/3 Ulrich Weigand : > Barry Song <21cn...@gmail.com> wrote: > >> So my questions are: >> >> 1.   Should I compile the native gdb using android toolchain and android >> bionic/libthread libraries? >> 2.   Why can’t the current gdb capture multithreads for android >> processes? This

Re: native gdb for Android

2012-02-02 Thread Thiago Jung Bauermann
Hi Barry, On Thu, 2012-02-02 at 10:23 +0800, Barry Song wrote: > 2.Why can’t the current gdb capture multithreads for android > processes? This question is actually about the theory for gdb to know > multi-threads. In my opinion, both gnu and android use clone() to fork > threads and threads i

Re: native gdb for Android

2012-02-02 Thread Ulrich Weigand
Barry Song <21cn...@gmail.com> wrote: > So my questions are: > > 1. Should I compile the native gdb using android toolchain and android > bionic/libthread libraries? > 2. Why can’t the current gdb capture multithreads for android > processes? This question is actually about the theory for gdb

native gdb for Android

2012-02-01 Thread Barry Song
Hi guys, I compile a native gdb using linaro 2011.10 by “./configure --host=arm-none-linux-gnueabi --target=arm-none-linux-gnueabi”, and the gdb runs on arm target boards directly. # gdb GNU gdb (Linaro GDB) 7.3-2011.10 Copyright (C) 2011 Free Software Foundation, Inc. License GPLv3+: GNU GPL versi