Structs losing context of where they are after calls to void returning function?
yeah, param_1 is the r0 register. Issue is that changing the calling convention to __thiscall ends up with r0 just being forced to be void*, and changing TrashTStringInstancePlus to be a noreturn ends up ending all functions that call it early, due to it being a flow override. This is... extremely not ideal. Changing TrashTStringInstancePlus to return
voidjust results in.. this, which isn't ideal eitherHow do I make r0 not killed by the call?
This picture is technically correct but really stupid. I would consider this to be a decompiler bug as it seems like it is losing the context of where it was in the struct.
Setting it to thiscall without a class namespace will just get you a void *.
Originally posted by @astrelsky in https://github.com/NationalSecurityAgency/ghidra/discussions/7864#discussioncomment-12345100
Not sure what exactly is causing this, but it's really annoying and requires me to constantly make pointer offset overrides
Source: NationalSecurityAgency/ghidra