Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Tom Tromey <tromey@redhat.com>
To: Siva Chandra <sivachandra@google.com>
Cc: gdb-patches@sourceware.org
Subject: Re: [RFC] Extend gdb.Breakpoint to allow setting a breakpoint at the current execution address
Date: Fri, 27 Apr 2012 15:41:00 -0000	[thread overview]
Message-ID: <878vhh5gk8.fsf@fleche.redhat.com> (raw)
In-Reply-To: <CAGyQ6gwgaeptA6-C3-WFC6+1t_DW4pVc+pgJbQbAcZo=+SQ=bQ@mail.gmail.com>	(Siva Chandra's message of "Fri, 27 Apr 2012 16:01:44 +0530")

>>>>> "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


  parent reply	other threads:[~2012-04-27 15:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-27 10:52 Siva Chandra
2012-04-27 15:32 ` Eli Zaretskii
2012-04-27 15:41 ` Tom Tromey [this message]
2012-04-30 20:01   ` Siva Chandra
2012-05-07 18:56     ` Tom Tromey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=878vhh5gk8.fsf@fleche.redhat.com \
    --to=tromey@redhat.com \
    --cc=gdb-patches@sourceware.org \
    --cc=sivachandra@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox