Re: Conditional breakpoints in ceval.c

2013-11-12 Thread Tim Golden
On 12/11/2013 15:40, Demian Brecht wrote: > On Sat, Nov 9, 2013 at 5:33 AM, wrote: >> 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. > > A

Re: Conditional breakpoints in ceval.c

2013-11-12 Thread Demian Brecht
On Sat, Nov 9, 2013 at 5:33 AM, wrote: > 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. Apologies for not getting to this sooner, I took a m

Re: Conditional breakpoints in ceval.c

2013-11-12 Thread David Froger
Quoting Ned Batchelder (2013-11-09 14:24:34) > 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

Re: Conditional breakpoints in ceval.c

2013-11-09 Thread Ned Batchelder
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 > LOA

Conditional breakpoints in ceval.c

2013-11-08 Thread Demian Brecht
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