Need Help: Can only set gdb breakpoints in python module the first time

Ram Bhamidipaty ramb at synopsys.com
Mon Feb 25 13:16:13 EST 2002


Python is embedded into my application. I have a custom module that
is part of the application - it is not loaded as a shared library - rather
the object files are incorporated into the final binary at link time.

The problem I am having is that I can set breakpoints in my module only
when gdb is first started. Once my app exits I am no longer able to set
breakpoints on functions in my module.

I suspect that python is somehow changing the mapping of the text segment,
but that just a guess.

My question: What is python doing that prevents gdb from setting breakpoints
after the program exits the first time? How can I prevent this?


Thanks for any info.
-Ram



More information about the Python-list mailing list