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
- From: Tom Tromey <tromey at redhat dot com>
- To: Siva Chandra <sivachandra at google dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 27 Apr 2012 09:40:23 -0600
- Subject: Re: [RFC] Extend gdb.Breakpoint to allow setting a breakpoint at the current execution address
- References: <CAGyQ6gwgaeptA6-C3-WFC6+1t_DW4pVc+pgJbQbAcZo=+SQ=bQ@mail.gmail.com>
>>>>> "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