This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Extend gdb.Breakpoint to allow setting a breakpoint at the current execution address


>>>>> "Siva" == Siva Chandra <sivachandra@google.com> writes:

Siva> I didn't find a way to set a breakpoint at the current execution
Siva> address through the existing Python API.

I think you can use '*$pc' as the linespec.
Or you can get the value of the PC (any way you want) and use ('*%d' % pc).

I didn't read the patch yet.

Tom


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]