x13pixels / remedybg-issues

Public repository for tracking issues (bugs and features) for the RemedyBG debugger
85 stars 0 forks source link

Watch window shows wrong value when multiplying bitfield member. #301

Closed PascalBeyer closed 7 months ago

PascalBeyer commented 9 months ago

In the following program:

typedef unsigned char    u8;

struct unwind_code{
    u8 offset_in_prolog;
    u8 operation_code : 4;
    u8 operation_info : 4;
};

int main(){    
    struct unwind_code unwind_code = {
        .offset_in_prolog = 0xa,
        .operation_code = 0x2,
        .operation_info = 0xe,
    };       
    __debugbreak();    
    return 0;
} 

I get the following values: image

For reference, The file was compiled using cl /Z7 test.c with version 19.29.30147 and Remedybg is version 0.3.9.9.

Compiled files: repro.zip

x13pixels commented 7 months ago

Fixed in next release, 0.4.0.0