1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
| star-chen@starchen-vb:~$ cat peda_install.sh git clone https://github.com/longld/peda.git ~/peda echo "source ~/peda/peda.py" >> ~/.gdbinit echo "DONE! debug your program with gdb and enjoy"
star-chen@starchen-vb:~$ sudo sh peda_install.sh 正克隆到 '/home/star-chen/peda'... remote: Counting objects: 304, done. remote: Total 304 (delta 0), reused 0 (delta 0), pack-reused 304 接收对象中: 100% (304/304), 197.98 KiB | 45.00 KiB/s, 完成. 处理 delta 中: 100% (192/192), 完成. 检查连接... 完成。 DONE! debug your program with gdb and enjoy star-chen@starchen-vb:~$ gdb GNU gdb (Ubuntu 7.11.1-0ubuntu1~16.04) 7.11.1 Copyright (C) 2016 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-linux-gnu". Type "show configuration" for configuration details. For bug reporting instructions, please see: <http://www.gnu.org/software/gdb/bugs/>. Find the GDB manual and other documentation resources online at: <http://www.gnu.org/software/gdb/documentation/>. For help, type "help". Type "apropos word" to search for commands related to "word". gdb-peda$
|