peda icon indicating copy to clipboard operation
peda copied to clipboard

undefined command...peda help

Open Janette88 opened this issue 5 years ago • 2 comments

hi, i have a problem. when i was debugging a program using gdb-peda, i got a feedback like this: gdb-peda$ attach 1584 'Undefined command: c\x00\x00\x00o\x00\x00\x00n\x00\x00\x00t\x00\x00\x00e\x00\x00\x00x\x00\x00\x00t\x00\x00\x00. Try "peda help"' 'Undefined command: s\x00\x00\x00e\x00\x00\x00s\x00\x00\x00s\x00\x00\x00i\x00\x00\x00o\x00\x00\x00n\x00\x00\x00. Try "peda help"'

before debugging, i fininshed the installation of peda: git clone https://github.com/longld/peda.git ~/peda echo "source ~/peda/peda.py" >> ~/.gdbinit

what's wrong with my peda? please help me!

Janette88 avatar Oct 26 '19 13:10 Janette88

my python version is : Python 2.7.2+ (default, Oct 4 2011, 20:03:08) gdb version is: fusion@fusion:~$ gdb -v GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08

Janette88 avatar Oct 27 '19 07:10 Janette88

my python version is : Python 2.7.2+ (default, Oct 4 2011, 20:03:08) gdb version is: fusion@fusion:~$ gdb -v GNU gdb (Ubuntu/Linaro 7.3-0ubuntu2) 7.3-2011.08

我猜测根本原因在于编译python的时候你忘了添加一个选项。最初我也遇到了这个错误,编译python的时候,添加上这句话 ../configure --prefix=/usr/local --enable-optimizations --enable-unicode=ucs4

bb33bb avatar Jul 24 '20 08:07 bb33bb