Conditional breakpoints in ceval.c

Demian Brecht demianbrecht at gmail.com
Sat Nov 9 03:03:51 CET 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