메뉴 건너뛰기

app

[안드로이드] gdb 연결

lispro062014.02.08 02:52조회 수 3789댓글 1

  • 14
    • 글자 크기


출처 : http://jack2.codebreaking.org/123


1. NDK 다운로드

(http://developer.android.com/tools/sdk/ndk/index.html)

1.JPG 

2. gdbserver 를 단말기에 복사

2.JPG 

3. gdbserver 퍼미션 변경

3.JPG 

4. 원하는 어플 pid 추출

4.JPG 

5. system/lib 을 pc에 복사하기 위해 압축

5.JPG 

6. 압축파일을 pc로 복사

6.JPG 

7. pc에 C:adt-bundle-windows-x86-20131030sdkplatform-toolslibsystemlib 에 압축 풀기

7.JPG 

8. app_process 도 pc로 복사

8.JPG 

9. C:adt-bundle-windows-x86-20131030sdkplatform-toolslibsystembin 경로로 이동시킴

9.JPG 

10. gdbserver 를 이용해 attatch 시킴

a.JPG 

11. 1234 포트로 포워딩

b.JPG 

12. PC에서 gdb 실행

c.JPG 

13. 아래 명령어로 경로 설정(상위 경로는 다를 수 있음)


set solib-search-path C:adt-bundle-windows-x86-20131030sdkplatform-toolslibsystemlib

set solib-absolute C:adt-bundle-windows-x86-20131030sdkplatform-toollib

file C:/adt-bundle-windows-x86-20131030/sdk/platform-tools/lib/system/bin/app_process


14. target remote:1234 로 프로세스에 연결


15. 디버깅~~~


d.JPG 

16. 쩝... 별 성과가 없었음.

e.JPG

lispro06 (비회원)
  • 14
    • 글자 크기

댓글 달기

댓글 1
이전 1 2 3 4 5 6 7 8 9 10... 14다음
첨부 (14)
1.JPG
25.5KB / Download 46
2.JPG
25.9KB / Download 58
3.JPG
15.6KB / Download 57
4.JPG
19.8KB / Download 57
5.JPG
16.4KB / Download 49
6.JPG
12.4KB / Download 57
7.JPG
67.7KB / Download 61
8.JPG
13.9KB / Download 69
9.JPG
24.5KB / Download 69
a.JPG
34.1KB / Download 68
b.JPG
14.9KB / Download 56
c.JPG
53.8KB / Download 69
d.JPG
92.2KB / Download 61
e.JPG
48.8KB / Download 55
위로