The configure script was launched like
./configure --with-python=yes --host=arm-linux-gnueabi
So, the python is enabled. Also in the log of configure script I didn't found anything bad related to the python. But anyway, the compiled gdb keep saying
$ ./gdb -q
/home/constantine/.gdbinit:7: Error in sourced command file:
ind_string_in_backtrace (gdb.Function)::1: Error in sourced command file:
Undefined command: "class". Try "help".
(gdb) py print("hello")
Python scripting is not supported in this copy of GDB.
The error you can see after I entered in gdb is also about Python (the script that loaded on autostart). I did tried make clean, but it didn't helped. I hope someone knows the solution, I am really need a scripting, and hence the python.