Flag: Tornado! Hurricane!

Error: Authentication required to access requested resource.

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 20,335 total registered users.


Recently Created Topics
Career: Threat Inte...
Jul/30
Career: Security Res...
Jul/30
Library Debugging Pr...
Jul/29
Pydbg attach Vs load?
Jul/29
IDA and MIPS (emulat...
Jul/27
UK Cyber Security ch...
Jul/26
System Service Descr...
Jul/26
LD_PRELOAD Question
Jul/23
Patching Application...
Jul/22
Contract: Research E...
Jul/19


Recent Forum Posts
Pydbg attach Vs load?
aMIr
LD_PRELOAD Question
monarch
LD_PRELOAD Question
justano...
LD_PRELOAD Question
monarch
Patching Application...
hughhan
Patching Application...
jduck
immunity debugger pl...
Malware...
paimei installation ...
wishi
IDA Pro customization
wishi
how to chnage an ins...
ConsoleFx


Recent Blog Entries
ResearchAviator
Jul/28
Installation procedure for ...

artemblagodarenko
Jul/27
Common function prototype

dennis
Jul/24
Dr. Gadget IDAPython plugin

trufae
Jul/23
radare2 0.5 released

AmrThabet
Jul/21
Pokas x86 Emulator for Gene...

More ...


Recent Blog Comments
omeg on:
Jul/29
Windows 7 syscall list

renzosilv on:
Jul/26
Windows 7 syscall list

renzosilv on:
Jul/26
Windows 7 syscall list

Dreg on:
Jul/21
HiperDrop 0.0.1

djnemo on:
Jul/20
HiperDrop 0.0.1

More ...


Imagery
SoySauce Blueprint
Jun 6, 2008

[+] expand

View Gallery (11) / Submit