Does cdb / windbg have the equivalent of autoexp.dat?

I would like to change the way some types are displayed using 'dt' or '??' similar to how you can do this with autoexp.dat. Is there any way to do this?

For example, I have a structure like this:


struct Foo
{
    union Bar
    {
       int a;
       void *p;
    } b;
};

And I have an array of several hundred of them, all I know is pointing to the structure pane. Is there a way to tell cdb that in this expression, that 'p' is a pointer to Bar? This is what you could do with autoexp. (A concrete example here is that I have a stashtable that can have keys of any type, but I know that they are strings, the implementation saves them as void pointers).

Thanks in advance!

+3
2

, , autoexp.dat.

- script , , , "$<filename" ( ). .

, - DLL-, . - , , , . (, , , ). SDK , , .

+2

du da, unicode ascii.

+1

Source: https://habr.com/ru/post/1711538/


All Articles