GDBDebugging » History » Version 4
Denis 'GNUtoo' Carikli, 08/20/2012 01:30 PM
1 | 1 | Denis 'GNUtoo' Carikli | h1. GDBDebugging |
---|---|---|---|
2 | 3 | Denis 'GNUtoo' Carikli | Here are some notes on debugging with gdb while rebasing replicant changes on top of the last cyanogenmod. |
3 | 1 | Denis 'GNUtoo' Carikli | |
4 | <pre> |
||
5 | 2 | Denis 'GNUtoo' Carikli | adb shell |
6 | while true;do gdbserver 192.168.20.132:8022 --attach $(pidof system_server);done |
||
7 | 3 | Denis 'GNUtoo' Carikli | </pre> |
8 | |||
9 | <pre> |
||
10 | . build/envsetup.sh |
||
11 | lunch cm_maguro-eng |
||
12 | |||
13 | $ arm-linux-androideabi-gdb |
||
14 | GNU gdb (GDB) 7.1-android-gg2 |
||
15 | Copyright (C) 2010 Free Software Foundation, Inc. |
||
16 | License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> |
||
17 | This is free software: you are free to change and redistribute it. |
||
18 | There is NO WARRANTY, to the extent permitted by law. Type "show copying" |
||
19 | and "show warranty" for details. |
||
20 | This GDB was configured as "--host=i686-linux-gnu --target=arm-elf-linux". |
||
21 | For bug reporting instructions, please see: |
||
22 | <http://www.gnu.org/software/gdb/bugs/>. |
||
23 | (gdb) set sysroot ./out/target/product/maguro/symbols/ |
||
24 | 4 | Denis 'GNUtoo' Carikli | (gdb) set solib-search-path ./out/target/product/maguro/symbols/system/ |
25 | 3 | Denis 'GNUtoo' Carikli | |
26 | 1 | Denis 'GNUtoo' Carikli | </pre> |