From: Michael Snyder <msnyder@redhat.com>
To: Daniel Jacobowitz <drow@false.org>
Cc: Eli Zaretskii <eliz@gnu.org>, gdb-patches@sources.redhat.com
Subject: Re: [RFA] Reverse debugging, part 1/3: target interface
Date: Thu, 20 Apr 2006 23:53:00 -0000 [thread overview]
Message-ID: <44481EF9.5010900@redhat.com> (raw)
In-Reply-To: <20060420195047.GA22563@nevyn.them.org>
Daniel Jacobowitz wrote:
> With that fixed I can try it:
>
> (gdb) tar rem :1234
> Remote debugging using :1234
> 0x00002aaaaaaaba80 in ?? ()
> (gdb) rsi
> 0x00002aaaaaaaba80 in ?? ()
> (gdb)
> 0x00002aaaaaaaba83 in ?? ()
>
> OK, that's two bugs. One is the vCont bug I mentioned in another
> message; it's stepping forward instead of backwards. The other has
> nothing to do with this at all; apparently PTRACE_STEP isn't working
> for the first instruction in the program and we're taking two steps to
> go one instruction. OK, let's avoid the vCont bug and try again:
>
> (gdb) set remote verbose-resume-packet 0
> (gdb) rsi
> Sending packet: $m2aaaaaab7320,1#70...Ack
> Packet received: f3
> Sending packet: $M2aaaaaab7320,1:cc#50...Ack
> Packet received: OK
> Sending packet: $Hc0#db...Ack
> Packet received: E01
> Sending packet: $bs#d5...Ack
> Packet received:
> warning: Invalid remote reply:
> *hang*
>
> It thinks that the attempt to step has succeeded and that the program
> is now running. That's pretty messy failing.
Agreed, of course. Well, this code in remote_wait...
1.1 (shebs 16-Apr-99): default:
1.1 (shebs 16-Apr-99): warning ("Invalid remote reply: %s", buf);
1.1 (shebs 16-Apr-99): continue;
1.1 (shebs 16-Apr-99): }
*... has been essentially untouched since the public repository was
created. I could trace it back further, but my gut feeling is that
it is basically untested. I mean, if we say "continue" here,
of course it's going to hang... we've just consumed the target's
reply, so it's not going to send us anything else. Generally, you
send one command, you get one reply.
My inclination is to call error here, instead of continue.
But of course I know of no way to test the effects, except
for the experiment you've just done.
How does that strike you?
* Of course the code is not really Stan's -- he just created the repository.
next prev parent reply other threads:[~2006-04-20 23:53 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <442DAA70.5070203@redhat.com>
2006-04-01 12:23 ` Eli Zaretskii
2006-04-17 23:37 ` Michael Snyder
2006-04-18 12:58 ` Daniel Jacobowitz
2006-04-18 15:24 ` Daniel Jacobowitz
2006-04-18 22:08 ` Michael Snyder
2006-04-19 8:48 ` Eli Zaretskii
2006-04-19 18:26 ` Michael Snyder
2006-04-20 9:18 ` Eli Zaretskii
2006-04-20 13:43 ` Daniel Jacobowitz
2006-04-20 19:22 ` Michael Snyder
2006-04-20 19:50 ` Daniel Jacobowitz
2006-04-20 23:53 ` Michael Snyder [this message]
2006-04-24 20:55 ` Daniel Jacobowitz
2006-04-18 18:59 ` Michael Snyder
2006-04-20 13:58 ` Daniel Jacobowitz
2006-04-20 19:42 ` Michael Snyder
2006-04-20 19:58 ` Daniel Jacobowitz
2006-04-01 16:39 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=44481EF9.5010900@redhat.com \
--to=msnyder@redhat.com \
--cc=drow@false.org \
--cc=eliz@gnu.org \
--cc=gdb-patches@sources.redhat.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