메뉴 건너뛰기

app

[안드로이드] gdb 연결

lispro062014.02.08 02:52조회 수 4053댓글 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 조회 1676
lispro06
2015.05.15 조회 1650
lispro06
2015.05.15 조회 2541
lispro06
2014.08.16 조회 1793
lispro06
2014.02.08 조회 4053
lispro06
2013.12.11 조회 1712
lispro06
2013.12.10 조회 3015
suritam9
2013.12.06 조회 2295
suritam9
2013.12.02 조회 3483
suritam9
2013.11.30 조회 2188
suritam9
2013.11.26 조회 1684
suritam9
2013.08.23 조회 7348
suritam9
2013.08.23 조회 1891
suritam9
2013.06.28 조회 2368
첨부 (14)
1.JPG
25.5KB / Download 75
2.JPG
25.9KB / Download 90
3.JPG
15.6KB / Download 90
4.JPG
19.8KB / Download 93
5.JPG
16.4KB / Download 80
6.JPG
12.4KB / Download 84
7.JPG
67.7KB / Download 90
8.JPG
13.9KB / Download 100
9.JPG
24.5KB / Download 105
a.JPG
34.1KB / Download 105
b.JPG
14.9KB / Download 74
c.JPG
53.8KB / Download 103
d.JPG
92.2KB / Download 96
e.JPG
48.8KB / Download 85
위로