diff options
author | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-06-17 03:06:27 +0000 |
---|---|---|
committer | njn <njn@a5019735-40e9-0310-863c-91ae7b9d1cf9> | 2005-06-17 03:06:27 +0000 |
commit | 6ace3ea69b3f004df3f06c78cf13aa514aaa7460 (patch) | |
tree | 991476ee7bdac524ca520a72ebd203ddd105f281 /include | |
parent | 41dd9d709993d2e076c4fb0606cc8d243b381dc5 (diff) | |
download | valgrind-6ace3ea69b3f004df3f06c78cf13aa514aaa7460.tar.gz |
Renamed VG_(mark_from_registers) to the more general
VG_(apply_to_GP_regs). Moved it into m_machine.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3919 a5019735-40e9-0310-863c-91ae7b9d1cf9
Diffstat (limited to 'include')
-rw-r--r-- | include/pub_tool_aspacemgr.h | 4 | ||||
-rw-r--r-- | include/pub_tool_machine.h | 6 | ||||
-rw-r--r-- | include/tool.h | 3 |
3 files changed, 9 insertions, 4 deletions
diff --git a/include/pub_tool_aspacemgr.h b/include/pub_tool_aspacemgr.h index ea709f680..4d2668f84 100644 --- a/include/pub_tool_aspacemgr.h +++ b/include/pub_tool_aspacemgr.h @@ -49,7 +49,9 @@ extern void VG_(init_shadow_range)(Addr p, UInt sz, Bool call_init); /* Calls into the core used by leak-checking */ /* Calls "add_rootrange" with each range of memory which looks like a - plausible source of root pointers. */ + plausible source of root pointers. This is very Memcheck-specific -- + it's used in leak detection. +*/ extern void VG_(find_root_memory)(void (*add_rootrange)(Addr addr, SizeT sz)); #endif // __PUB_TOOL_ASPACEMGR diff --git a/include/pub_tool_machine.h b/include/pub_tool_machine.h index b80573373..fab2f582d 100644 --- a/include/pub_tool_machine.h +++ b/include/pub_tool_machine.h @@ -64,6 +64,12 @@ extern void VG_(get_shadow_regs_area) ( ThreadId tid, OffT guest_state_offset, extern void VG_(set_shadow_regs_area) ( ThreadId tid, OffT guest_state_offset, SizeT size, const UChar* area ); +// Apply a function 'f' to all the general purpose registers in all the +// current threads. +// This is very Memcheck-specific -- it's used to find the roots when +// doing leak checking. +extern void VG_(apply_to_GP_regs)(void (*f)(UWord val)); + #endif // __PUB_TOOL_MACHINE /*--------------------------------------------------------------------*/ diff --git a/include/tool.h b/include/tool.h index 60cb335e2..38b385760 100644 --- a/include/tool.h +++ b/include/tool.h @@ -78,9 +78,6 @@ extern ThreadId VG_(first_matching_thread_stack) not expected to return. */ extern void VG_(set_fault_catcher)(void (*catcher)(Int sig, Addr addr)); -/* Calls "mark_addr" with register values (which may or may not be pointers) */ -extern void VG_(mark_from_registers)(void (*mark_addr)(Addr addr)); - /* ------------------------------------------------------------------ */ /* other, randomly useful functions */ extern Bool VG_(has_cpuid) ( void ); |