mirror of
https://github.com/Zenithsiz/ftmemsim-valgrind.git
synced 2026-02-03 18:13:01 +00:00
Remove some unnecessary #includes, comment some others.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3966
This commit is contained in:
parent
cb6b13fdbf
commit
f4d8932fc8
@ -29,7 +29,7 @@
|
||||
*/
|
||||
|
||||
#include "pub_core_basics.h"
|
||||
#include "pub_core_threadstate.h"
|
||||
#include "pub_core_threadstate.h" // For VG_N_THREADS
|
||||
#include "pub_core_debugger.h"
|
||||
#include "pub_core_debuginfo.h"
|
||||
#include "pub_core_errormgr.h"
|
||||
@ -38,12 +38,11 @@
|
||||
#include "pub_core_libcassert.h"
|
||||
#include "pub_core_libcfile.h"
|
||||
#include "pub_core_libcprint.h"
|
||||
#include "pub_core_libcproc.h"
|
||||
#include "pub_core_libcproc.h" // For VG_(getpid)()
|
||||
#include "pub_core_mallocfree.h"
|
||||
#include "pub_core_options.h"
|
||||
#include "pub_core_stacktrace.h"
|
||||
#include "pub_core_tooliface.h"
|
||||
#include "pub_core_translate.h"
|
||||
#include "pub_core_translate.h" // for VG_(translate)()
|
||||
|
||||
/*------------------------------------------------------------*/
|
||||
/*--- Globals ---*/
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
#include "pub_core_basics.h"
|
||||
#include "pub_core_execontext.h"
|
||||
#include "pub_core_libcassert.h"
|
||||
#include "pub_core_libcprint.h"
|
||||
#include "pub_core_libcprint.h" // For VG_(message)()
|
||||
#include "pub_core_mallocfree.h"
|
||||
#include "pub_core_options.h"
|
||||
#include "pub_core_profile.h"
|
||||
|
||||
@ -33,11 +33,11 @@
|
||||
#include "pub_core_libcbase.h"
|
||||
#include "pub_core_libcassert.h"
|
||||
#include "pub_core_libcprint.h"
|
||||
#include "pub_core_libcproc.h"
|
||||
#include "pub_core_libcproc.h" // For VG_(gettid)()
|
||||
#include "pub_core_options.h"
|
||||
#include "pub_core_stacktrace.h"
|
||||
#include "pub_core_syscall.h"
|
||||
#include "pub_core_tooliface.h"
|
||||
#include "pub_core_tooliface.h" // For VG_(details)
|
||||
#include "vki_unistd.h"
|
||||
|
||||
/* ---------------------------------------------------------------------
|
||||
|
||||
@ -34,7 +34,6 @@
|
||||
#include "pub_core_libcfile.h"
|
||||
#include "pub_core_libcprint.h"
|
||||
#include "pub_core_mallocfree.h"
|
||||
#include "pub_core_options.h"
|
||||
#include "pub_core_syscall.h"
|
||||
#include "vki_unistd.h"
|
||||
|
||||
|
||||
@ -34,7 +34,6 @@
|
||||
#include "pub_core_libcassert.h"
|
||||
#include "pub_core_libcmman.h"
|
||||
#include "pub_core_libcprint.h"
|
||||
#include "pub_core_libcproc.h"
|
||||
#include "pub_core_syscall.h"
|
||||
#include "vki_unistd.h"
|
||||
|
||||
|
||||
@ -32,11 +32,11 @@
|
||||
#include "pub_core_debuglog.h"
|
||||
#include "pub_core_libcbase.h"
|
||||
#include "pub_core_libcassert.h"
|
||||
#include "pub_core_libcfile.h"
|
||||
#include "pub_core_libcfile.h" // For VG_(write)(), VG_(write_socket)()
|
||||
#include "pub_core_libcprint.h"
|
||||
#include "pub_core_libcproc.h"
|
||||
#include "pub_core_libcproc.h" // For VG_(getpid)()
|
||||
#include "pub_core_options.h"
|
||||
#include "valgrind.h" // for RUNNING_ON_VALGRIND
|
||||
#include "valgrind.h" // For RUNNING_ON_VALGRIND
|
||||
|
||||
#include <time.h>
|
||||
#include <sys/time.h>
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
*/
|
||||
|
||||
#include "pub_core_basics.h"
|
||||
#include "pub_core_aspacemgr.h"
|
||||
#include "pub_core_aspacemgr.h" // Needed for pub_core_redir.h
|
||||
#include "pub_core_libcbase.h"
|
||||
#include "pub_core_libcassert.h"
|
||||
#include "pub_core_libcprint.h"
|
||||
@ -41,7 +41,7 @@
|
||||
#include "pub_core_skiplist.h"
|
||||
#include "pub_core_trampoline.h"
|
||||
#include "pub_core_transtab.h"
|
||||
#include "m_debuginfo/priv_symtab.h" // XXX: bad!
|
||||
#include "m_debuginfo/priv_symtab.h" // XXX: bad! For SegInfo internals
|
||||
|
||||
/*------------------------------------------------------------*/
|
||||
/*--- General purpose redirection. ---*/
|
||||
|
||||
@ -95,8 +95,8 @@
|
||||
#include "pub_core_options.h"
|
||||
#include "pub_core_scheduler.h"
|
||||
#include "pub_core_signals.h"
|
||||
#include "pub_core_sigframe.h"
|
||||
#include "pub_core_stacktrace.h"
|
||||
#include "pub_core_sigframe.h" // For VG_(sigframe_create)()
|
||||
#include "pub_core_stacktrace.h" // For VG_(get_and_pp_StackTrace)()
|
||||
#include "pub_core_syscall.h"
|
||||
#include "pub_core_syswrap.h"
|
||||
#include "pub_core_tooliface.h"
|
||||
|
||||
@ -30,8 +30,7 @@
|
||||
|
||||
#include "pub_core_basics.h"
|
||||
#include "pub_core_threadstate.h"
|
||||
#include "pub_core_aspacemgr.h"
|
||||
#include "pub_core_debuginfo.h"
|
||||
#include "pub_core_aspacemgr.h" // For VG_(is_addressable)()
|
||||
#include "pub_core_libcbase.h"
|
||||
#include "pub_core_libcassert.h"
|
||||
#include "pub_core_libcprint.h"
|
||||
@ -267,5 +266,5 @@ void VG_(apply_StackTrace)( void(*action)(UInt n, Addr ip),
|
||||
|
||||
|
||||
/*--------------------------------------------------------------------*/
|
||||
/*--- end m_stacktrace.c ---*/
|
||||
/*--- end ---*/
|
||||
/*--------------------------------------------------------------------*/
|
||||
|
||||
@ -37,9 +37,9 @@
|
||||
#include "pub_core_libcprint.h"
|
||||
#include "pub_core_options.h"
|
||||
#include "pub_core_profile.h"
|
||||
#include "pub_core_redir.h"
|
||||
#include "pub_core_signals.h"
|
||||
#include "pub_core_tooliface.h"
|
||||
#include "pub_core_redir.h" // For VG_(code_redirect)()
|
||||
#include "pub_core_signals.h" // For VG_(synth_fault_{perms,mapping})()
|
||||
#include "pub_core_tooliface.h" // For VG_(tdict)
|
||||
#include "pub_core_translate.h"
|
||||
#include "pub_core_transtab.h"
|
||||
|
||||
|
||||
@ -30,15 +30,15 @@
|
||||
*/
|
||||
|
||||
#include "pub_core_basics.h"
|
||||
#include "pub_core_debuginfo.h"
|
||||
#include "pub_core_debuginfo.h" // For VG_(get_fnname_w_offset)()
|
||||
#include "pub_core_libcbase.h"
|
||||
#include "pub_core_libcassert.h"
|
||||
#include "pub_core_libcmman.h"
|
||||
#include "pub_core_libcmman.h" // For VG_(get_memory_from_mmap)()
|
||||
#include "pub_core_libcprint.h"
|
||||
#include "pub_core_options.h"
|
||||
#include "pub_core_tooliface.h"
|
||||
#include "pub_core_tooliface.h" // For VG_(details).avg_translation_sizeB
|
||||
// XXX: this module should not depend on m_translate!
|
||||
#include "pub_core_translate.h"
|
||||
#include "pub_core_translate.h" // For VG_(translate)()
|
||||
#include "pub_core_transtab.h"
|
||||
|
||||
/* #define DEBUG_TRANSTAB */
|
||||
|
||||
@ -46,8 +46,8 @@
|
||||
#include "coregrind.h"
|
||||
|
||||
#include "pub_core_basics.h"
|
||||
#include "pub_core_debuginfo.h" // needed for pub_core_redir.h :(
|
||||
#include "pub_core_redir.h"
|
||||
#include "pub_core_debuginfo.h" // Needed for pub_core_redir.h
|
||||
#include "pub_core_redir.h" // For VG_NOTIFY_ON_LOAD
|
||||
|
||||
/* ---------------------------------------------------------------------
|
||||
Hook for running __libc_freeres once the program exits.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user