I'm looking for a way, to make programmatically change of data type. This is the same as you press 'C' or 'D'.
For example convert this:
.text:00401008 unk_401008 db 55h ; U ; CODE XREF: start↑p
.text:00401009 db 8Bh ; ‹
.text:0040100A db 0ECh ; ì
.text:0040100B db 83h ; ƒ
.text:0040100C db 0ECh ; ì
to this:
.text:00401008 loc_401008: ; CODE XREF: start↑p
.text:00401008 push ebp
.text:00401009 mov ebp, esp
.text:0040100B sub esp, 0Ch
and vice versa.
These functions should be listed here https://www.hex-rays.com/products/ida/support/idapython_docs/ but I can't find it.
So far I found only this:
generate_disasm_line(here(), GENDSM_FORCE_CODE)
but it only prints data to output, and does not change the "IDA View" window content.
Thanks