looking for python object debugging hints
Daniel Berlin
dan at cgsoftware.com
Mon Jul 31 11:40:39 EDT 2000
On 31 Jul 2000 ramb at synopsys.com wrote:
> I've written some code to implement a new python object and I'm having
> some trouble with it. My code to implement the new object is written
> both in C and in Python.
>
> Here is the situation:
>
> A python script imports my module and then starts calling
> various functions in my C shared library. The problem is
> that if I use gdb on the python binary my shared library
> is not loaded until the script starts running and that
> is too late to set a break point. What I want is some way
> to make it easy to use a debugger to debug my dynamically
> loaded shared library.
Look at the documentation to auto-solib-add.
Also, once your shared lib is loaded, just Ctrl-C at the gdb console, or
click stop (if you are using the GDB gui), and it'll break into the
debugger, and you can set your breakpoint.
--Dan
C++ support maintainer - GDB
More information about the Python-list
mailing list