highlighting

This commit is contained in:
George Hotz 2014-08-13 23:43:47 -07:00
parent 7343a1602b
commit fd830c3b6e
3 changed files with 8 additions and 0 deletions

Binary file not shown.

Binary file not shown.

View File

@ -2,6 +2,7 @@
#include <idp.hpp>
#include <loader.hpp>
#include <bytes.hpp>
#include <dbg.hpp>
//#define DEBUG
@ -15,12 +16,18 @@ static int callback_http(struct libwebsocket_context* context,
return 0;
}
ea_t qira_address = BADADDR;
static void thread_safe_jump_to(ea_t a) {
struct uireq_jumpto_t: public ui_request_t {
uireq_jumpto_t(ea_t a) {
la = a;
}
virtual bool idaapi run() {
if (qira_address != BADADDR) {
del_bpt(qira_address);
}
qira_address = la;
add_bpt(qira_address);
jumpto(la);
return false;
}
@ -167,6 +174,7 @@ int idaapi IDAP_init(void) {
void idaapi IDAP_term(void) {
unhook_from_notification_point(HT_VIEW, hook);
//set_user_defined_prefix(0, NULL);
exit_websocket_thread();
return;
}