Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Phil Muldoon <pmuldoon@redhat.com>
To: Doug Evans <dje@google.com>
Cc: Kevin Pouget <kevin.pouget@gmail.com>, gdb@sourceware.org
Subject: Re: [RFC] Python Finish Breakpoints
Date: Fri, 13 May 2011 07:51:00 -0000	[thread overview]
Message-ID: <m3boz79gyh.fsf@redhat.com> (raw)
In-Reply-To: <BANLkTi=Eu-5B4YyhP2rGdQXgXbBN-EmLKA@mail.gmail.com> (Doug	Evans's message of "Thu, 12 May 2011 12:00:11 -0700")

Doug Evans <dje@google.com> writes:

> So first let me ask a clarifying question: Is the main purpose for the
> patch to provide robust handling of the different ways an inferior
> function call can "exit"?
> And if so, maybe (or maybe not, dunno) it would be better to focus on
> making that work as desired, as opposed to a general purpose
> finish-frame breakpoint handler.
> The latter may be sufficiently useful as well of course.  At this
> point I'd just like to understand the main use-case.

Pretty much just agreeing with what you said, but with a distinction.
Inferior function calls are so transparent in GDB that it can happen
even if we explicitly exclude the case for these breakpoints (IE,
inferior function calls are a special case which would be ignored).  As
inferior function calls can happen in watchpoint expressions, or in
conditional breakpoints, the C++ exception example can happen there,
anyway.  We can exclude the watchpoint case by disallowing them in the
finish breakpoint.  But even so, with the attaching of conditions to a
breakpoint, will the breakpoint 'know' that GDB has done some magic
re-shuffling with the inferior?

Anyway, tests will tell this story better than my word-craft ;)  I am
all for this functionality, as long as we don't leave the Python script
confused about 'what just happened'.

Cheers,

Phil 


  reply	other threads:[~2011-05-13  7:51 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-09 14:11 Kevin Pouget
2011-05-09 14:31 ` Kevin Pouget
     [not found]   ` <BANLkTikVdqbMqjguTV8ct0TWiBDhHGYtLg@mail.gmail.com>
2011-05-11  7:44     ` Kevin Pouget
2011-05-11 10:31       ` Phil Muldoon
2011-05-11 11:29         ` Kevin Pouget
2011-05-12 10:50         ` Phil Muldoon
2011-05-12 11:29           ` Kevin Pouget
2011-05-12 19:00 ` Doug Evans
2011-05-13  7:51   ` Phil Muldoon [this message]
     [not found]   ` <BANLkTikt2hEUcXkGVH44NaUcwiF1SGdMaw@mail.gmail.com>
2011-05-13  9:04     ` Kevin Pouget
2011-05-16 11:24       ` Kevin Pouget
2011-05-18  8:58         ` Kevin Pouget
2011-05-18 10:16           ` Phil Muldoon

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=m3boz79gyh.fsf@redhat.com \
    --to=pmuldoon@redhat.com \
    --cc=dje@google.com \
    --cc=gdb@sourceware.org \
    --cc=kevin.pouget@gmail.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