Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: "Marc Khouzam" <marc.khouzam@ericsson.com>
To: "Edward Peschko" <horos11@gmail.com>, <gdb@sourceware.org>
Subject: RE: industrial use of 'record' and replay.
Date: Wed, 03 Jun 2009 01:20:00 -0000	[thread overview]
Message-ID: <6D19CA8D71C89C43A057926FE0D4ADAA0786E824@ecamlmw720.eamcs.ericsson.se> (raw)
In-Reply-To: <5cfa99000906021448y5a7b4418l8578052bbd79757e@mail.gmail.com>

 

> -----Original Message-----
> From: gdb-owner@sourceware.org 
> [mailto:gdb-owner@sourceware.org] On Behalf Of Edward Peschko
> Sent: June-02-09 5:49 PM
> To: gdb@sourceware.org
> Subject: industrial use of 'record' and replay.
> 
> All,
> 
> First of all, I'm really glad to see that record and replay 
> is going to make
> it into gdb. Predictions aren't easy here, but my guess is 
> that it is going to
> revolutionize debugging..
> 
> However, I had a few questions, about 'scaling up' the use of this:
> 
>     1. Suppose that one has an extremely long process, one 
> which takes hours to
>         'get' to the bug.. How can one 'short circuit' this process so
> that you don't need
>         to replay for hours to get to it?

I'm not sure I understand.
Do you want to avoid the 'long execution' all together or do you want
to avoid executing it with Recording enabled?  Can you predict about
where in the program the bug occurs?

Without fully understanding the question, some things that do come to 
mind that might be relevant are:

o GDB checkpoints (look for the chapter on bookmarks)
o only turning on Record once you are close to the bug, instead
   of turning it on from the start
o setting the program counter to a new address to literally skip
   a large part of the execution 

>     2. Suppose that one has a test suite, one that runs a 
> command - or series of
>         commands - multiple times. How does one save states of
> 'interest', ones that
>         cause segfaults or deadlocks?

Do you mean 'save to file', so as to use later?
That would be cool.  I don't think this exists for PRecord
or for Checkpoints (maybe I'm wrong?), but it would be a nice
feature.

> 
>     3. Suppose that one is testing something like a server, one that
> has multiple
>         processes.. is there a way to 'record' without running under
> gdb, or to record
>         sub processes as via strace or truss?
> 
> I'm sure I'll have more as I start using it, but any ideas on the
> above would be
> very helpful..
> 
> Ed
> 


  reply	other threads:[~2009-06-03  1:20 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-02 21:49 Edward Peschko
2009-06-03  1:20 ` Marc Khouzam [this message]
2009-06-03  1:50   ` Edward Peschko
2009-06-09 19:41     ` Toby Haynes
2009-06-11  1:42       ` 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=6D19CA8D71C89C43A057926FE0D4ADAA0786E824@ecamlmw720.eamcs.ericsson.se \
    --to=marc.khouzam@ericsson.com \
    --cc=gdb@sourceware.org \
    --cc=horos11@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