After that I did recompile and install gdb into e:\pas\fpc-2.7.1 directory
by specifying --prefix=/e/pas/fpc-2.7.1
(I tested with --preficx=e:/pas/fpc-2.4.4, which worked the same)
E:\pas\fpc-2.7.1\gdb>cd bin
E:\pas\fpc-2.7.1\gdb\bin>.\gdb ./gdb
GNU gdb (GDB) 7.4.50.20120117-cvs
Copyright (C) 2012 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 "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from E:\pas\fpc-2.7.1\gdb\bin\gdb.exe...done.
(gdb) py print gdb.PYTHONDIR
e:\pas\fpc-2.7.1\gdb\share\gdb/python
(gdb) py
end
(gdb) q
E:\pas\fpc-2.7.1\gdb\bin>cd ..\..
E:\pas\fpc-2.7.1>cp -Rf gdb ..\fpc-2.6.0
E:\pas\fpc-2.7.1>cd ..\fpc-2.6.0\gdb\bin
E:\pas\fpc-2.6.0\gdb\bin>.\gdb ./gdb
GNU gdb (GDB) 7.4.50.20120117-cvs
Copyright (C) 2012 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 "i686-pc-mingw32".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from E:\pas\fpc-2.6.0\gdb\bin\gdb.exe...done.
(gdb) py print gdb.PYTHONDIR
e:\pas\fpc-2.6.0\gdb\share\gdb/python
(gdb)
So the basic idea of rebasing gdb/python seems to work,
the next problem is that I never used python scripts
so that I didn't know what else to do to check that this directory is really
functional!