Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Pedro Alves <pedro@codesourcery.com>
To: Michael Snyder <msnyder@vmware.com>
Cc: "gdb-patches@sourceware.org" <gdb-patches@sourceware.org>
Subject: Re: [RFA] Resubmit reverse debugging [4/5]
Date: Thu, 09 Oct 2008 02:12:00 -0000	[thread overview]
Message-ID: <200810090312.16021.pedro@codesourcery.com> (raw)
In-Reply-To: <48ED5BD0.7050107@vmware.com>

A Thursday 09 October 2008 02:18:08, Michael Snyder wrote:
> Sorry, it's an artifact of the fact that I've been on a
> fork for so long.  When I copied this code from finish_command,
> the code that I copied had a similar call to internal_error.
> 
> In fact, finish_command_continuation still does.

Yeah, the continuation has a check for `function != NULL',
though.

> In fact, it's the same call that used to be in "finish_command".
> 
> So what should it be?  Just "error"?

Ah, I think I see what's going on.  "finish" is not meaningful
in the outermost frame, so, you'd get an error before reaching
here, if you had no symbols.  

 (gdb) finish
 "finish" not meaningful in the outermost frame.
 (gdb) reverse-finish
 "finish" not meaningful in the outermost frame.

Is it possible to be at frame != #0 and not find a function?

Wait, what does your remark about the frame #0 special
case mean then?

(I have to admit I got confused again by what finish in reverse
means.  I'd personaly trade it easily for "begin", and I'd
do the reverse step to go to the caller myself.  Then, you
could do begin at frame #0 too...)

> I think I understand that you think it would be more "local"
> to put the error here -- but is it worth it if it makes us
> add complexity?
> 
> finish_command already tests a number of things, including
> whether we are async and (now) whether we are reverse, and
> contains a number of error calls already.

No biggie with me.  Just thought you had signed up to do
the function split.  ;-)

-- 
Pedro Alves


  reply	other threads:[~2008-10-09  2:12 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-08  2:22 Michael Snyder
2008-10-08 23:38 ` Pedro Alves
2008-10-08 23:55   ` Michael Snyder
2008-10-09  0:36 ` Pedro Alves
2008-10-09  1:20   ` Michael Snyder
2008-10-09  2:12     ` Pedro Alves [this message]
2008-10-09  2:39       ` Michael Snyder
2008-10-09  3:21         ` Pedro Alves
2008-10-09  2:49       ` Michael Snyder
2008-10-09  3:11         ` Pedro Alves
2008-10-17 19:47 ` Michael Snyder

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=200810090312.16021.pedro@codesourcery.com \
    --to=pedro@codesourcery.com \
    --cc=gdb-patches@sourceware.org \
    --cc=msnyder@vmware.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