android


Android: No debugging symbols found in gdbserver


I try to attach a process on my rooted Android and create corefile with GDB but it can't create a gcore file because the symbols could not be found.
on my phone, i open Terminal app and i input
su
to grant root access in Terminal. i input
dumpsys meminfo
to show all running processes. i input
gdbserver :1234 --attach 5132
on my computer, i open gdb.exe (from Android NDK) and i input
(gdb) target remote 192.168.1.13:1234
and i got those infomation
(gdb) target remote 192.168.1.13:1234
Remote debugging using 192.168.1.13:1234
warning: Architecture rejected target-supplied description
Reading /system/bin/app_process32_original from remote target...
warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead.
warning: A handler for the OS ABI "Cygwin" is not built into this configuration
of GDB. Attempting to continue with the default arm settings.
Reading /system/bin/app_process32_original from remote target...
warning: A handler for the OS ABI "Cygwin" is not built into this configuration
of GDB. Attempting to continue with the default arm settings.
Reading symbols from target:/system/bin/app_process32_original...(no debugging symbols found)...done.
0xb6e8b0f8 in ?? ()
With my own compiled gdb.exe, i got another info
(gdb) target remote 192.168.1.13:1234
Remote debugging using 192.168.1.13:1234
warning: Can not parse XML target description; XML support was disabled at compile time
Reading /system/bin/app_process32_original from remote target...
warning: File transfers from remote targets can be slow. Use "set sysroot" to access files locally instead.
Reading /system/bin/app_process32_original from remote target...
Reading symbols from target:/system/bin/app_process32_original...(no debugging symbols found)...done.
Remote 'g' packet reply is too long: fcffffff605fd9be10000000ffffffff0000000008000000000000005a010000a87687b414000000000000004010c032105fd9be005fd9be1352e6b6f8b0e8b610000f204a280000000000003d0000001100000000000000000000006000000004000000d002000068010000680100003702000052000010110000001600000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004a28000072002e0073006500720076006900630065002e0056006f006900700043006f006e006e006500630074006f0072005300e83bb770e83bb77088639b70e83bb770e83bb770e83bb770e83bb770e83bb770e83bb770e83bb770e83bb770e83bb770e83bb770e83bb770e83bb770e83bb77011000060
0xb6e8b0f8 in ?? ()
i type
gcore
and it says
Can't create a corefile
I have installed the correct gdbserver binary that match with my kernel architecture in /system/bin
I tried different Android OSes below Android 4.4.4 which does not have PIE protection thing, but i still getting the same problem. I tried to use ported version gdb client and it works perfectly.
I just wanna save the corefile with my powerful device running Android 5.1.1 with 2 GB RAM, instead using gdb client on my low-end tablet that has 512 MB RAM and running Android 4.4.4, and the gdb could not fully create the corefile due to low RAM.
Just download gdb source and compile with below steps:
1).Compile gdb with below command:
cd gdb-7.11/gdb
./configure --target=arm-linux-androideabi --with-python --prefix=$HOME/mybinaries/bin
make
make install
2).Compile gdbserver with below command:
cd gdb-7.11/gdb/gdbserver
CC=arm-linux-androideabi-gcc LDFLAGS="-fPIC -pie" ./configure --target=arm-linux-androideabi --host=arm-linux-androideabi --prefix=$HOME/mybinaries/bin
make
make install
When compiling the GDB, i must give the target --target arm-linux-androideabi instead --target arm-eabi and it works perfectly

Related Links

Google Map getMapAsync() NullPointerException
Error during creating dialog inside onDestroy : Can not perform this action after onSaveInstanceState Android
Android studio which version is good for development?
Unable to create GridView element in layout
Android Error parsing package - partial download
AdMob dont display Ads with my code
Android media player won't start
android Toolbar view in MainActivity
Cordova plugin-qrscanner no video preview
JNI FindClass called with pending exception java.lang.ClassNotFoundException: Didn't find class “net.sqlcipher.database.SQLiteDatabase”
Copy file from asset folder to local directory and open file android nougat
How to refresh a Fragment of a listview adapter button click..?
Load checkbox it from SQLite database
How to use google vision to detect the barcode automatically without touch the screen
How to set the default placeholderImage when using fresco
Android Studio: Facebook image won't load

Categories

HOME
django
gridview
design-patterns
fuelux
eslint
forms
dns
amp-html
powerpoint
rsa
nuget
alsa
vxml
limit
interpolation
android-json
character
automatic-ref-counting
code-generation
screen-readers
modbus-tcp
aws-sdk
wolframalpha
nodemcu
google-maps-autocomplete
ckfinder
moses
progress-bar
inversion-of-control
comparable
google-earth
aws-codecommit
git-squash
baidu-map
video-capture
modernizr
google-data-api
unordered-map
apache-stanbol
odoo-website
skylink
servermanager
getchar
opennms
chai-as-promised
reportservice2010
insight
java-websocket
structuremap4
javafx-css
rocks
slackware
google-cloud-console
resourcemanager
macaulay2
i386
gogs
observablecollection
dllimport
dock
toolkit
evolus-pencil
finalbuilder
airbrake
linked-tables
dnssec
cwrsync
osc
j-security-check
shopizer
umlgraph
openbabel
delayed-execution
nodelist
browserify-shim
sip-server
post-commit-hook
linkedin-jsapi
tweenlite
xml-namespaces
template-deduction
cuba
decoupling
artemis
isqlquery
ice-cube
inappsettingskit
octal
insert-id
fb.ui
idn
frameworkelementfactory
boost-signals
inkcanvas
multiplexing
workflow-services
update-statement
tournament
pylucene
rmdir
django-paypal
twitterizer
ajax-polling
message-passing
addchild
web-garden
sifr
silverlight-oob
glui
int64
technical-debt
change-management
leader

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App