rr logging mechanism

Robert O'Callahan robert at ocallahan.org
Sat Jun 3 00:23:48 UTC 2017


On Sat, Jun 3, 2017 at 12:20 PM, Steve Fink <sphink at gmail.com> wrote:

> It's buried in a long boring document about other things, but one part
> that might be of interest to people here -- I implemented a logging command
> for gdb under rr, to allow making notes as you move through an execution.
> You can then display them in original execution order:
>
> (rr) log $thread sees the bad value  # $thread is replaced by eg T1
> (rr) log also, obj is now $1         # gdb convenience vars ok
> (rr) rfin
> (rr) log {$2+4} bytes are required   # {any gdb expr}
> (rr) n
> (rr) log -sorted                     # log -s for short
>    346/945 7 bytes are required
> => 562/8443 T2 sees the bad value
>    562/8443 also, obj is now 0x7ff687749c00
>
> https://github.com/hotsphink/sfink-tools/blob/master/mozilla.md#rr
>
> It's also handy in combination with breakpoint command lists, so you can
> automatically log the values of something over time and then see it in
> execution order, interleaved with other log messages.
>
> Some sort of structured log would probably make more sense, but this was a
> quick hack.
>

Thanks. We saw that; it's a cool feature!

Rob
-- 
lbir ye,ea yer.tnietoehr  rdn rdsme,anea lurpr  edna e hnysnenh hhe uresyf
toD
selthor  stor  edna  siewaoeodm  or v sstvr  esBa  kbvted,t
rdsme,aoreseoouoto
o l euetiuruewFa  kbn e hnystoivateweh uresyf tulsa rehr  rdm  or rnea
lurpr
.a war hsrer holsa rodvted,t  nenh hneireseoouot.tniesiewaoeivatewt sstvr
esn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/rr-dev/attachments/20170603/34fef070/attachment.html>


More information about the rr-dev mailing list