Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Jakob Engblom" <jakob@virtutech.com>
To: "'Greg Law'" <glaw@undo-software.com>
Cc: "'Michael Snyder'" <msnyder@vmware.com>, 	<gdb@sourceware.org>,
		"'Julian Smith'" <jsmith@undo-software.com>
Subject: RE: Simics & reverse execution
Date: Tue, 08 Sep 2009 07:21:00 -0000	[thread overview]
Message-ID: <017001ca3054$f2d26020$d8772060$@com> (raw)
In-Reply-To: <4AA4F724.1050708@undo-software.com>

> > Think about the cross-product with thread handling.  If you use time
> > there, you need to determine how to handle times for threads. One
> > timeline per thread? Or a global system time?
> 
> Oh right, yes, I was assuming global.
> 
> If time were per thread, then yes, I can see how that would quickly get
> very complicated.

And I think time is per-thread in process record, as that is based on
instruction counts.  Not to mention to synch time across multiple processors
which are executing in parallel... that is a very  non-trivial problem in
practice.
 
> > You also really like to have time breakpoints in the system, to
> > allow you to do things like "run this system for 6.132 seconds and
> > then stop" (typical operation we do when skipping a boot sequence or
> > we have run a workload several times and know when itneresting
> > things should start to happen).
> 
> I would argue that's a future feature.  Time-based breakpoints would
> seem a very nice thing to have, but a system which had get/set time
> commands but no time breakpoints would be a lot more more useful than
> one with neither.

True. And actually, if you "set" time to 6.132 seconds in my example, a smart
backend would do the same... execute until that point even if it was not already
executed. That's what Simics does, I think.
 
> > Also, how should this interact with non-stop debug? And how should
> > you handle multiple active processor cores running parallel threads?
> 
> I must confess, I haven't given much thought at all to the interaction
> of non-stop debug with reverse debugging in general.  I haven't been
> following too closely, but aren't they currently incompatible anyway?
> (something to do with displaced breakpoints not working well with
> reverse).  But I don't see how it's any worse than the bookmarks case.
> In fact, I don't see how any of it differs from use with bookmarks.  All
> we're really talking about is a different way to describe a point in
> history.

The problem is that different backends have different natural semantics here. 

A simulator has a natural semantic of synchronous stop across all processors,
devices, and everything else going on.  A hardware across JTAG is far more
likely to stop just a few cores and keep the rest running.  Hardware with
recording: ????

That's why an abstract bookmark concept is so appealing: it can hide anything in
the backend, and let it worry about setting up times on multiple processors,
multiple machines, or hardware recorders. 

> Again, you could go a lot further than I'm proposing right now.  But
> that's not to say you need to for this stuff be useful.

Yes, for us, a 64-bit integer count of time would be quite useful as a general
tool. 

/jakob


  reply	other threads:[~2009-09-08  7:21 UTC|newest]

Thread overview: 48+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-08-17  7:42 gdb reverse execution: how to actually run tests for it? Jakob Engblom
2009-08-17  7:58 ` Hui Zhu
2009-08-17 11:33   ` Jakob Engblom
2009-08-17 11:50   ` Jakob Engblom
2009-08-17 11:55     ` Pedro Alves
2009-08-17 15:31       ` Pedro Alves
2009-08-17 15:52         ` Hui Zhu
2009-08-20 17:10           ` Pedro Alves
2009-08-19  7:34         ` Jakob Engblom
2009-08-17 18:24       ` Michael Snyder
2009-08-17 20:08         ` Jakob Engblom
2009-08-17 22:44           ` Michael Snyder
2009-08-19  7:24             ` Jakob Engblom
2009-08-19  8:58             ` Simics & reverse execution Jakob Engblom
2009-08-19 12:29               ` Hui Zhu
2009-08-19 20:03                 ` Jakob Engblom
2009-08-19 20:29                   ` Michael Snyder
2009-08-19 20:44                     ` Daniel Jacobowitz
2009-08-19 21:09                     ` Pedro Alves
2009-08-20  6:54                       ` Jakob Engblom
2009-08-20 15:03                         ` Pedro Alves
2009-08-27  4:44               ` Michael Snyder
2009-08-27  8:17                 ` Jakob Engblom
2009-08-28 11:04                   ` Michael Snyder
2009-08-28 15:17                 ` Greg Law
2009-08-31 13:22                   ` Jakob Engblom
2009-08-31 16:34                     ` Greg Law
2009-09-01  6:37                       ` Jakob Engblom
2009-09-01 13:49                         ` Greg Law
2009-09-03 19:16                           ` Jakob Engblom
2009-09-04 12:44                             ` Greg Law
2009-09-07  7:16                               ` Jakob Engblom
2009-09-07  8:13                                 ` Greg Law
2009-09-07  8:24                                   ` Jakob Engblom
2009-09-07 12:06                                     ` Greg Law
2009-09-08  7:21                                       ` Jakob Engblom [this message]
2009-09-08 12:08                                         ` Greg Law
2009-09-08 13:02                                           ` Jakob Engblom
2009-09-08 19:11                                             ` Greg Law
2009-09-14  8:26                                               ` Jakob Engblom
2009-09-17  3:07                                                 ` Michael Snyder
2009-08-19  7:24       ` gdb reverse execution: how to actually run tests for it? Jakob Engblom
2009-08-19 15:28         ` Pedro Alves
2009-08-19 16:37           ` Tom Tromey
2009-08-20 13:10             ` Jakob Engblom
2009-08-20 14:50               ` Daniel Jacobowitz
2009-08-20 20:27               ` Michael Snyder
2009-08-20  6:53           ` Hui Zhu

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='017001ca3054$f2d26020$d8772060$@com' \
    --to=jakob@virtutech.com \
    --cc=gdb@sourceware.org \
    --cc=glaw@undo-software.com \
    --cc=jsmith@undo-software.com \
    --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