1/ Record-and-replay debugging has changed the way I work as a software engineer working on browser engines. I made a video showing how I used rr to debug one bug in Chromium. drive.google.com/file/d/15Ef… Some Chromium colleagues found this useful, so I'm sharing it here too.
4
21
2
88
You definitely want to use `watch -l`, yes.
1
I'm aware... but at the same time I've come to expect things to have behavior subtly different from what I want. And the documentation wasn't very clear to me.
1
Replying to @davidbaron @khuey_
Does: (gdb) watch -l foo have the exact same semantics as: (gdb) p &foo (output is $n = ...) (gdb) watch *$n ?

Dec 22, 2021 · 11:54 PM UTC

2
Replying to @davidbaron @khuey_
I vaguely remember talking with @rocallahan about this once, and IIRC we'd both ended up distrusting forms of `watch` other than `watch *(T*)0xNNN…`. (But it's possible that I've confused roc with someone else who'd know a lot about gdb.)
1
1
Replying to @davidbaron
It's supposed to according to the documentation but I wouldn't bet anything of value on it.
2