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.

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…

6 thoughts on “Adding cross references”

  1. 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. 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. Thank you. Please send a message to Datarescue’s support for questions like this, they’ll be gladly answered there!

  4. 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!

  5. 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. 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!

Comments are closed.