Flag: Tornado! Hurricane!

OpenRCE IDA SDK >> next_from

next_from
Category: Cross Referencing

bool
next_from(void)
Populates the xrefblk_t structure with the next cross references from the from address. Returns false if there are no more cross references.

Examples:
#include <kernwin.hpp> // For get_screen_ea() definition
#include <lines.hpp>   // For tag_remove() and generate_disasm_line()
#include <xref.hpp>

xrefblk_t xb;
ea_t addr = get_screen_ea();

// Replicate IDA 'x' keyword functionality
for (bool res = xb.first_to(addr, XREF_FAR); res; res = xb.next_to())
{
    char buf[MAXSTR];
    char clean_buf[MAXSTR];
    
    // Get the disassembly text for the referencing addr
    generate_disasm_line(xb.from, buf, sizeof(buf)-1);

    // Clean out any format or colour codes
    tag_remove(buf, clean_buf, sizeof(clean_buf) - 1);
    msg("%a: %s\n", xb.from, clean_buf);
}


Related: first_from, first_to, get_first_cref_from, next_from, next_to

Note: You must be logged in to add notes to the IDA SDK reference manual.

There are 28,220 total registered users.


Recently Created Topics
Reverse Engineering ...
Jan/23
Career: DoD Agency I...
Jan/22
"Disappearing&q...
Jan/17
Career: Software Sec...
Jan/11
Where is the call st...
Jan/07
IDA Pro 6.1 Breakpoi...
Jan/01
How to create data s...
Dec/30
can i search all mod...
Dec/23
IDA symbol table exp...
Dec/20
An anti-attach trick
Dec/17


Recent Forum Posts
Reverse Engineering ...
NirIzr
"Disappearing&q...
NirIzr
Reverse Engineering ...
charlie
"Disappearing&q...
charlie
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
An anti-attach trick
waleeda...
An anti-attach trick
Bass
Looking for value in...
NirIzr


Recent Blog Entries
waleedassar
Feb/06
OllyDbg v1.10 And Hardware ...

waleedassar
Jan/31
Yet Another Anti-Debug Trick

RolfRolles
Jan/22
Finding Bugs in VMs with a ...

waleedassar
Jan/13
An OllyDbg Bug Disables Sof...

waleedassar
Jan/01
Another OllyDbg Anti-Debug ...

More ...


Recent Blog Comments
NirIzr on:
Feb/05
Yet Another Anti-Debug Trick

trolotou on:
Feb/05
Doudoune Moncler -Pennies F...

waleedassar on:
Feb/01
Yet Another Anti-Debug Trick

NirIzr on:
Jan/31
Yet Another Anti-Debug Trick

jackchen on:
Jan/10
nike mercurial vapor iii

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit