메뉴 건너뛰기

app

[안드로이드] gdb 연결

lispro062014.02.08 02:52조회 수 4171댓글 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 조회 1745
lispro06
2015.05.15 조회 1708
lispro06
2015.05.15 조회 2605
lispro06
2014.08.16 조회 1852
lispro06
2014.02.08 조회 4171
lispro06
2013.12.11 조회 1781
lispro06
2013.12.10 조회 3105
suritam9
2013.12.06 조회 2367
suritam9
2013.12.02 조회 3581
suritam9
2013.11.30 조회 2241
suritam9
2013.11.26 조회 1759
suritam9
2013.08.23 조회 7425
suritam9
2013.08.23 조회 1965
suritam9
2013.06.28 조회 2452
첨부 (14)
1.JPG
25.5KB / Download 76
2.JPG
25.9KB / Download 93
3.JPG
15.6KB / Download 92
4.JPG
19.8KB / Download 95
5.JPG
16.4KB / Download 82
6.JPG
12.4KB / Download 89
7.JPG
67.7KB / Download 92
8.JPG
13.9KB / Download 104
9.JPG
24.5KB / Download 107
a.JPG
34.1KB / Download 108
b.JPG
14.9KB / Download 77
c.JPG
53.8KB / Download 107
d.JPG
92.2KB / Download 99
e.JPG
48.8KB / Download 91
위로