Adding cross references

Did you know that you can add your own cross-references to the listing? There are even several different methods for that:

  • Open xrefs window and press Ins
  • Write an IDC script
  • Write a plugin

Adding xrefs is very useful if IDA missed some of them and the graph looks ugly. Another benefit is replicated comments.

See a demo below the cut.


CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112"
standby="Loading Microsoft Windows® Media Player components..."
type="application/x-oleobject"
width="538"
height="388">
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
name="MediaPlayer1"
filename="http://www.hexblog.com/ida_pro/pix/add_xref.avi"
AutoSize="1"
width="538"
height="388">

If some lines of the demo look greenish, it is not your monitor. I have a plugin which colorizes the listing for me. It is an experimental thing, I’ll publish it later…

This entry was posted in IDA Pro. Bookmark the permalink.

6 Responses to Adding cross references

  1. gera says:

    I also used it (for the first time) just the day before yesterday to add links between nodes when using the graph view:
    There was a jump table in a AIX/PowerPC binary which was not recognized as such, so the graph for the function was full of loose blocks. Adding CodeXRefs from the indirect jump to the blocks added all missing arcs in the graph, and made the function look like it should look :-)
    I think that it may be a good idea to let the user add XRefs interactibly when using the Graph view (not wingraph32, the new main graph view). At least for CodeXRefs I think it makes a lot of sense.

  2. OJ says:

    Hello,
    I stumbled on your blog this morning, and I think it’s great!
    I have a question regarding IDA. Do you happen to know how I can get IDA to list the opcodes alongside the ASM source view (just as you can with applications such as SoftIce? Is that possible with IDA? Is that something that I would need to write a plugin for?
    Thank you!

  3. Ilfak Guilfanov says:

    Thank you. Please send a message to Datarescue’s support for questions like this, they’ll be gladly answered there!

  4. OJ says:

    Hello,
    I see that support isn’t available to those people who are just using the demo. That’s ok. My testing with IDA is finished now. I’m going to try out some other tools to see if there is one that’s a little bit cheaper!
    Thanks!

  5. Ilfak Guilfanov says:

    It doesn’t matter if you are using the demo or full version, I just do not provide any IDA support on this blog. Sorry about that.

  6. OJ says:

    Hello again. Thanks for the information! I totally understand. I will contact support and hope they can help me.
    Cheers, and keep up the great work!