about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAymeric Vincent <aymeric.vincent@cea.fr>2017-04-21 10:11:34 +0200
committerAymeric Vincent <aymeric.vincent@cea.fr>2017-04-21 10:11:34 +0200
commit1cdeda06eaca1ee7f9c67ddfde794911ba802adf (patch)
tree66946ec662ce40699de9ad51e42e7647a84fb63c
parentc23559173550cd13e0ca840638c65d83df89d572 (diff)
downloadmiasm-1cdeda06eaca1ee7f9c67ddfde794911ba802adf.tar.gz
miasm-1cdeda06eaca1ee7f9c67ddfde794911ba802adf.zip
set breakpoint handler in ntdll_LdrGetProcedureAddress()
This mimics the behaviour of kernel32_GetProcAddress()
Diffstat (limited to '')
-rw-r--r--miasm2/os_dep/win_api_x86_32.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/miasm2/os_dep/win_api_x86_32.py b/miasm2/os_dep/win_api_x86_32.py
index 265bad86..d9c659d3 100644
--- a/miasm2/os_dep/win_api_x86_32.py
+++ b/miasm2/os_dep/win_api_x86_32.py
@@ -1786,6 +1786,7 @@ def ntdll_LdrGetProcedureAddress(jitter):
     fname = jitter.get_str_ansi(p_src)
 
     ad = winobjs.runtime_dll.lib_get_add_func(args.libbase, fname)
+    jitter.add_breakpoint(ad, jitter.handle_lib)
 
     jitter.vm.set_mem(args.p_ad, pck32(ad))