1

Can I change argument number to macro in IDA pro Hex-rays?

 fd = open("a", 513, 0644);

Like this.

fd = open("a", O_WRONLY|O_CREAT, 0644);

Is this possible?

3
  • Create a bitmap enum, and set arg2 to this bitfield type. Feb 27, 2015 at 11:55
  • Thanks for answer me. one number possible. like this. O_WRONLY. but O_WRONLY|O_CREAT this not possible Feb 27, 2015 at 11:56
  • To change IDA's standard enum containing O_WRONLY etc. to the bitfield type you need to delete the harebrained O_RDONLY thing; otherwise IDA mumbles something like 'some constants hinder'. Then position the cursor on the enum name and hit Ctrl+N to bring up the "Edit enum type" dialogue and set a check mark next to "Bitfield". This is for plain IDA but things shouldn't be different with the Hex-Rays plugin loaded.
    – DarthGizka
    Feb 27, 2015 at 17:56

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.