Re:Raspberry Pi Bare Metal Programming with Rust
by izacus on Saturday January 16, 2016 @05:48PM
(#10917241)
Of course that same ability lets you clobber anything else in your address space and leads to those lovely debugging sessions playing "track down what corrupted my datastructure".
[ Parent
| on HN ]
Re:Raspberry Pi Bare Metal Programming with Rust
by Manishearth on Sunday January 17, 2016 @01:08AM
(#10918504)
Whilst having to debug this is still undesirable, I recommend trying `rr` (http://rr-project.org/) to track this if you're ever in such a situation. It's as simple as setting a watchpoint and reverse-continue-ing!
I don't do much C/++ these days, but when I do (and it's a large codebase which is hard to debug), `rr` is invaluable. It works with Rust too.