메뉴 건너뛰기

app

[안드로이드] gdb 연결

lispro062014.02.08 02:52조회 수 3979댓글 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
suritam9
2013.04.25 조회 6115
suritam9
2013.04.04 조회 2197
suritam9
2012.09.14 조회 2515
suritam9
2012.06.24 조회 2366
suritam9
2012.06.24 조회 2777
suritam9
2012.06.24 조회 2538
suritam9
2012.06.22 조회 2582
박영식
2011.09.22 조회 2544
박영식
2011.09.21 조회 2488
박영식
2011.02.18 조회 2964
박영식
2010.09.29 조회 4757
첨부 (14)
1.JPG
25.5KB / Download 73
2.JPG
25.9KB / Download 88
3.JPG
15.6KB / Download 88
4.JPG
19.8KB / Download 90
5.JPG
16.4KB / Download 74
6.JPG
12.4KB / Download 83
7.JPG
67.7KB / Download 88
8.JPG
13.9KB / Download 99
9.JPG
24.5KB / Download 100
a.JPG
34.1KB / Download 102
b.JPG
14.9KB / Download 73
c.JPG
53.8KB / Download 101
d.JPG
92.2KB / Download 94
e.JPG
48.8KB / Download 84
위로