Core dumps in android

757 views
Skip to first unread message

Christian

unread,
May 31, 2011, 6:45:07 AM5/31/11
to android-ndk
Hello all, I'm developping a android's aplication using some shared
libraries written by me and compiled with ndk-r5b. The application
works, y and the calls to the libraries works too, but I detected some
errors, segmentations faults, and I need to debug it, but, I don't
know how debug native code from android and I don't know if I can
generate core dumps, as in linux, for debug my libraries.

Any idea?

Thanks!

Riasat Abir

unread,
Jun 1, 2011, 3:36:19 AM6/1/11
to andro...@googlegroups.com
you can use ndg-gdb for debugging the native code..


--
You received this message because you are subscribed to the Google Groups "android-ndk" group.
To post to this group, send email to andro...@googlegroups.com.
To unsubscribe from this group, send email to android-ndk...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/android-ndk?hl=en.




--

HimHim

Riasat Abir

unread,
Jun 1, 2011, 3:43:57 AM6/1/11
to andro...@googlegroups.com
ndk-gdb*
--

HimHim

Christian

unread,
Jun 1, 2011, 11:49:14 AM6/1/11
to android-ndk
Hello Riasat, I'm using ndk-gbd, but, ndk-gdb does not generate core
dumps or at least I don't know how generate it.

Thanks

On 1 jun, 09:36, Riasat Abir <riasat.a...@gmail.com> wrote:
> you can use ndg-gdb for debugging the native code..
>
> On Tue, May 31, 2011 at 4:45 PM, Christian <christianper...@gmail.com>wrote:
>
>
>
>
>
>
>
>
>
> > Hello all, I'm developping a android's aplication using some shared
> > libraries written by me and compiled with ndk-r5b. The application
> > works, y and the calls to the libraries works too, but I detected some
> > errors, segmentations faults, and I need to debug it, but, I don't
> > know how debug native code from android and I don't know if I can
> > generate core dumps, as in linux, for debug my libraries.
>
> > Any idea?
>
> > Thanks!
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-ndk" group.
> > To post to this group, send email to andro...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > android-ndk...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/android-ndk?hl=en.
>
> --
>
> HimHim

Srinidhi K V

unread,
Jun 1, 2011, 12:00:23 PM6/1/11
to andro...@googlegroups.com
Hi,
You can use gdb to debug your native code. But make sure you compile
code with debug flag on.

Regards
Srinidhi KV

Christian

unread,
Jun 1, 2011, 12:12:14 PM6/1/11
to android-ndk
Hello,
I'm debugging already, or at least I was debugging, but I need to
generate a core dump.
Reply all
Reply to author
Forward
0 new messages