Conditional breakpoints in ceval.c

Demian Brecht demianbrecht at gmail.com
Fri Nov 8 21:03:51 EST 2013


Hi all,

I have an .py file with a simple assignment in it:
foo = 'bar'

Now, I want to set a conditional breakpoint in gdb, breaking on that
assignment (I'm guessing the top of the stack would be breaking on the
LOAD_CONST with a value or 'bar'). How would I go about doing that?

b ceval.c:1368 if [?]

Thanks,

-- 
Demian Brecht
http://demianbrecht.github.com



More information about the Python-list mailing list