edit: ok, i wont give up.
i tried to set this up in codeblocks, but that doesnt work well either:
Starting debugger: C:\\MinGW\\bin\\gdb-python27.exe -nx
MinGW GDB 7.5.1 uses Python Scripts from normal GDB 7.6. Therefore the Scripts fail.
After i copied the syscalls and python folders out of
http://ftp.gnu.org/gnu/gdb/gdb-7.5.1.tar.gz
and tried everything again, it miraculously worked.
Starting debugger: C:\MinGW\bin\gdb-python27.exe -nx -fullname -quiet
done
Setting breakpoints
Attaching to program with pid: 7428
Debugger name and version: GNU gdb (GDB) 7.5
Attaching to process 7428
Continuing...
At D:\work\ludum-dare\src\main.cpp:39
Continuing...
At D:\work\ludum-dare\src\main.cpp:41
Continuing...
At D:\work\ludum-dare\src\componentEntitySystem\componentEntitySystem.cpp:393
> print funcText
$1 = {static npos = , _M_dataplus = {> = {<__gnu_cxx::new_allocator> = {}, }, _M_p = 0x24504f4 "'ces:getEntitiesWithComponent(\"position\")'"}}
> source C:\MingW\bin\.gdbinit
> print funcText
$2 = "'ces:getEntitiesWithComponent(\"position\")'"
So, "nice job" to the person who put the gdb 7.6 python scripts into the MinGW GDB 7.5.1 package. NOT.