android-gdb
android-gdb copied to clipboard
"gdbserver exited unexpectedly" from feninit on Galaxy S
When I run moz-gdb/bin/gdb on my Ubuntu 12.04 machine, with a Galaxy S device connected, I get:
GNU gdb (GDB) 7.3-android-github.com/darchons
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "--host=x86_64-unknown-linux-gnu --target=arm-elf-linux".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
New ADB device is "I897e057faf6"
Using device I897e057faf6
Using object directory: /hack/mozilla-central/obj-mobile-debug
Set sysroot to "/hack/moz-gdb/lib/I897e057faf6".
Updated solib-search-path.
Using package org.mozilla.fennec_bjacob.
Done
Attaching to parent (pid 5465)... as non-root...
/hack/moz-gdb/bin/../utils/gdbinit:68: Error in sourced command file:
gdbserver exited unexpectedly
This line 68 in gdbinit is where we run feninit. Same problem when running gdbserver and feninit manually.
This problem was reproduced with the same phone on another PC. On the same PCs, other phones work fine with moz-gdb.
Also, this Galaxy S phone does have gdbserver, and running it manually seem to work fine by itself.
Thanks for the note! Could you try it again with the 'gdbutils-3' branch? i.e.
cd moz-gdb/utils
git pull origin gdbutils-3
That branch has some improvements related to running gdbserver and hopefully that'll fix the issue. Thanks!