aboutsummaryrefslogtreecommitdiff
path: root/ndk-gdb
diff options
context:
space:
mode:
authorAndrew Hsieh <andrewhsieh@google.com>2012-07-02 16:38:19 -0700
committerAndrew Hsieh <andrewhsieh@google.com>2012-07-02 16:38:19 -0700
commit07a6a66c1fd347e24bd057f89191e0e8842a3b18 (patch)
tree115d80f023e95ae5cc77b9df04baeb488a774dee /ndk-gdb
parent60224fd69ebdc515ab9e88d22f4c33f70949e94f (diff)
downloadndk-07a6a66c1fd347e24bd057f89191e0e8842a3b18.tar.gz
Fix ndk-gdb to also pull /system/bin/link
ndk-gdb should also pull /system/bin/link, so gdb on host can set a breakpoint in __dl_rtld_db_dlactivity and be aware of linker activity (eg. rescan solib symbols when dlopen() is called) Change-Id: Ie98d026a92177a076650665d7c26ac88781621a2
Diffstat (limited to 'ndk-gdb')
-rwxr-xr-xndk-gdb3
1 files changed, 3 insertions, 0 deletions
diff --git a/ndk-gdb b/ndk-gdb
index a51decb83..94642ce6e 100755
--- a/ndk-gdb
+++ b/ndk-gdb
@@ -678,6 +678,9 @@ APP_PROCESS=$APP_OUT/app_process
run adb_cmd pull /system/bin/app_process `native_path $APP_PROCESS`
log "Pulled app_process from device/emulator."
+run adb_cmd pull /system/bin/linker `native_path $APP_OUT/linker`
+log "Pulled linker from device/emulator."
+
run adb_cmd pull /system/lib/libc.so `native_path $APP_OUT/libc.so`
log "Pulled libc.so from device/emulator."