<div dir="ltr">Hi,<br><br>i have got some troubles while trying to instrumentate a indirect call instruction. <br>Basically, every time i run into a CALL64r i would like to have this situation:<br><font face="monospace, monospace">                 ------<br>                | .... |<br>                | CMP  |</font><div><font face="monospace, monospace">                | JE   |</font></div><div><font face="monospace, monospace">                 ------</font></div><div><font face="monospace, monospace">                  |  |</font></div><div><font face="monospace, monospace">                ---  -----</font></div><div><font face="monospace, monospace">                |        |</font></div><div><font face="monospace, monospace">                ----    ---- </font></div><div><font face="monospace, monospace">               |EXIT|  |CALL|</font></div><div><font face="monospace, monospace">                ----   |....|</font></div><div><font face="monospace, monospace">                        ----</font><br><font face="arial, helvetica, sans-serif">So i do a splice, fix up successors and predecessors, but since the call implicitly uses some register the compilation fails with a lot of this:<br><br>  *** Bad machine code: Using an undefined physical register ***</font></div><div><font face="arial, helvetica, sans-serif">- function:    parse_and_dump_tv_tag</font></div><div><font face="arial, helvetica, sans-serif">- basic block: BB#126 (null) (0x6127658)</font></div><div><font face="arial, helvetica, sans-serif">- instruction: CALL64r %vreg41, <regmask>, %RSP<imp-use>, %EDI<imp-use>, %RSI<imp-use>, %RDX<imp-use>, %RCX<imp-use>, %R8<imp-use>, %R9D<imp-use>, %AL<imp-use>, %RSP<imp-def>, %EAX<imp-def>; GR64:%vreg41<br><br>How can i get rid of this errors?<br><br>Thank you very much,<br><br>-- Jon</font></div></div>