So I'm seeing this a lot in an IDA database:
; wchar_t off_BADF00D
off_BADF00D dd offset loc_6F0062
dd offset loc_740074
dd offset loc_6D006E+1
align 10h
So given the comment at the top IDA knows from the code reference that this ought to be a zero-terminated wide character string.
I was thinking of writing a simple IDAPython script to find instances of this and force these items to be converted to the appropriate data type automatically.
However, neither ;
nor :
showed anything, so this is neither a repeatable nor a normal comment. So what is it and how can I use IDAPython to extract it? I also tried (prompted by a comment here) if it's an anterior or posterior comment line. It wasn't.
Alternatively I'll also be happy if someone can point out how to "guide" IDA to do the right thing without scripting, but this sparked my curiosity, so only bonus points for that. I'd still like to find out how to get the comment shown.
:
and repeated;
– appear at the end of the first line of code or data.