Basic blocks: Start and end of bb of an eip

665 views
Skip to first unread message

Dominic

unread,
Sep 2, 2011, 11:18:12 AM9/2/11
to idapython
Hello there.

Is there any way to determine if an instruction address is a start or
an end of a basic block ?

Greets & Thanks
Dominic

Elias Bachaalany

unread,
Sep 2, 2011, 12:10:21 PM9/2/11
to idap...@googlegroups.com
Hello,

Perhaps you can first try to enumerate basic blocks of a function then
trying to figure out which block your eip belongs to.

Check http://code.google.com/p/idapython/source/browse/trunk/examples/ex_gdl_qflow_chart.py

> --
> You received this message because you are subscribed to the Google Groups "idapython" group.
> To post to this group, send email to idap...@googlegroups.com.
> To unsubscribe from this group, send email to idapython+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/idapython?hl=en.
>
>

Dominic Fischer

unread,
Sep 7, 2011, 9:57:47 AM9/7/11
to idap...@googlegroups.com
Hi, 

Thank you! that did the trick. i wonder if this lookup is also fast. I think, I will do some benchmarks.
Reply all
Reply to author
Forward
0 new messages