Conditional breakpoints in ceval.c

Ned Batchelder ned at nedbatchelder.com
Sat Nov 9 08:24:34 EST 2013


On Friday, November 8, 2013 9:03:51 PM UTC-5, Demian Brecht wrote:
> 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

I don't know how to use gdb the way you want, but it sounds like you are on a fascinating journey of discovery.  What are you trying to learn?  Perhaps we can talk about how the interpreter works.

--Ned.



More information about the Python-list mailing list