This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFC] Extend gdb.Breakpoint to allow setting a breakpoint at the current execution address
Siva> I didn't find a way to set a breakpoint at the current execution
Siva> address through the existing Python API.
Tom> I think you can use '*$pc' as the linespec.
Tom> Or you can get the value of the PC (any way you want) and use ('*%d' % pc).
Since gdb.Frame.pc works for me, I can drop this patch unless you feel
it adds a "good-to-have".
Thanks,
Siva Chandra