sdb_debugger 0.2.2

Book: Building a Debugger. Rust port of C++ debugger sdb
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include <iostream>
struct cat {
    const char* name;
    void meow() const { std::cout << "meow\n"; }
};
int main() {
    const char* (cat:: * data_ptr) = &cat::name;
    void (cat:: * func_ptr)() const = &cat::meow;

    cat marshmallow{ "Marshmallow" };

    auto name = marshmallow.*data_ptr;
    (marshmallow.*func_ptr)();
}