메뉴 건너뛰기

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
    • 글자 크기
[GAS] 구글 캘린더 일정을 스프레드 시트로 가져오기 (by lispro06) [XE] before_module_proc 에서 after_module_proc로 디버깅 (by lispro06)

댓글 달기

댓글 1
lispro06
2015.05.15 조회 1632
lispro06
2015.05.15 조회 1600
lispro06
2015.05.15 조회 2492
lispro06
2014.08.16 조회 1739
lispro06
2014.02.08 조회 3979
lispro06
2013.12.11 조회 1648
lispro06
2013.12.10 조회 2953
suritam9
2013.12.06 조회 2249
suritam9
2013.12.02 조회 3423
suritam9
2013.11.30 조회 2139
suritam9
2013.11.26 조회 1626
suritam9
2013.08.23 조회 7291
suritam9
2013.08.23 조회 1826
suritam9
2013.06.28 조회 2313
첨부 (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
위로