Z:\Trunk\indus\src\python-modules\library\mymodule>gdb python GNU gdb 6.8 Copyright (C) 2008 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later 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"... (no debugging symbols found) (gdb) break foo Function "foo" not defined in loaded symbols. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (foo) pending. (gdb) run Starting program: C:\Python22/python.exe [New thread 176.0xc08] (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) (no debugging symbols found) Python 2.2.3 (#42, May 30 2003, 18:12:08) [MSC 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. >>> import mymodule >>> mymodule.foo("toto") Breakpoint 1, foo (s=@0x12f940) at mymodule.cpp:11 11 cout << "foo" << endl; Current language: auto; currently c++ (gdb) next foo 12 } (gdb) next boost::python::detail::invoke > (f=@0x8cd8ac, ac0=@0x12f9e0) at ../../../3rdparty/boost-1.35/all/boost/python/detail/invoke.hpp:82 82 return none(); (gdb) next boost::python::detail::caller_arity<1u>::impl >::operator() (this=0x8cd8ac, args_=0x84bcb8) at ../../../3rdparty/boost-1.35/all/boost/python/detail/caller.hpp:225 225 return m_data.second().postcall(inner_args, result); (gdb) next boost::python::objects::py_function::operator() (this=0x89e168, args=0x84bcb8, kw=0x0) at ../../../boost/python/object/py_function.hpp:144 warning: Source file is more recent than executable. 144 } (gdb) next boost::python::objects::function::call (this=0x89e160, args=0x84bcb8, keywords=0x0) at ../../../libs/python/src/object/function.cpp:234 warning: Source file is more recent than executable. 234 if (result != 0 || PyErr_Occurred()) (gdb) next 235 return result; (gdb) next 243 } (gdb) next boost::python::objects::(anonymous namespace)::bind_return::operator() (this=0x12fd20) at ../../../libs/python/src/object/function.cpp:582 582 } (gdb) next boost::python::handle_exception_impl (f=0x12fcf0) at ../../../libs/python/src/errors.cpp:26 26 return false; (gdb) next 53 } (gdb) next function_call (func=0x89e160, args=0x84bcb8, kw=0x0) at ../../../libs/python/src/object/function.cpp:614 614 return result; (gdb) next 615 } (gdb) next 0x1e006ccc in python22!PyObject_Call () from C:\WINDOWS\system32\python22.dll (gdb) next Single stepping until exit from function python22!PyObject_Call, which has no line number information. 0x1e014cd6 in python22!PyEval_GetFuncDesc () from C:\WINDOWS\system32\python22.dll (gdb) next Single stepping until exit from function python22!PyEval_GetFuncDesc, which has no line number information. 0x1e0764c0 in python22!PyTuple_SetItem () from C:\WINDOWS\system32\python22.dll (gdb) next Single stepping until exit from function python22!PyTuple_SetItem, which has no line number information. 0x1e03af30 in python22!_PyObject_GC_UnTrack () from C:\WINDOWS\system32\python22.dll (gdb) next Single stepping until exit from function python22!_PyObject_GC_UnTrack, which has no line number information. 0x1e0764cf in python22!PyTuple_SetItem () from C:\WINDOWS\system32\python22.dll (gdb) next Single stepping until exit from function python22!PyTuple_SetItem, which has no line number information. 0x1e014ce9 in python22!PyEval_GetFuncDesc () from C:\WINDOWS\system32\python22.dll (gdb) continue Continuing. >>> >>> >>> mymodule.foo("") Breakpoint 1, foo (s=@0x12f940) at mymodule.cpp:11 11 cout << "foo" << endl; (gdb) next foo 12 } (gdb) next boost::python::detail::invoke > (f=@0x8cd8ac, ac0=@0x12f9e0) at ../../../3rdparty/boost-1.35/all/boost/python/detail/invoke.hpp:82 82 return none(); (gdb) next boost::python::detail::caller_arity<1u>::impl >::operator() (this=0x8cd8ac, args_=0x84bcb8) at ../../../3rdparty/boost-1.35/all/boost/python/detail/caller.hpp:225 225 return m_data.second().postcall(inner_args, result); (gdb) next warning: HEAP[python.exe]: warning: Invalid Address specified to RtlFreeHeap( 00840000, 6A1C8854 ) Program received signal SIGTRAP, Trace/breakpoint trap. 0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll (gdb) bt #0 0x7c90120f in ntdll!DbgUiConnectToDbg () from C:\WINDOWS\system32\ntdll.dll #1 0x7c96c201 in ntdll!RtlpNtMakeTemporaryKey () from C:\WINDOWS\system32\ntdll.dll #2 0x7c96c63e in ntdll!RtlpNtMakeTemporaryKey () from C:\WINDOWS\system32\ntdll.dll #3 0x7c96d826 in ntdll!RtlpNtMakeTemporaryKey () from C:\WINDOWS\system32\ntdll.dll #4 0x7c949e1c in ntdll!LdrFindEntryForAddress () from C:\WINDOWS\system32\ntdll.dll #5 0x00840000 in ?? () #6 0x50000061 in ?? () #7 0x6a1c8854 in __gnu_cxx::__pool_alloc::_S_force_new () from Z:\Trunk\indus\src\python-modules\library\mymodule\boost_python-mgw34-d-1_35.dll #8 0x00840000 in ?? () #9 0x6a1c8854 in __gnu_cxx::__pool_alloc::_S_force_new () from Z:\Trunk\indus\src\python-modules\library\mymodule\boost_python-mgw34-d-1_35.dll #10 0x40000060 in ?? () #11 0x7c910040 in ntdll!RtlFreeThreadActivationContextStack () from C:\WINDOWS\system32\ntdll.dll #12 0xffffffff in ?? () #13 0x00000000 in ?? () (gdb)