]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Remove existing non-working support for self-modifying code, and instead
authorJulian Seward <jseward@acm.org>
Thu, 16 May 2002 11:06:21 +0000 (11:06 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 16 May 2002 11:06:21 +0000 (11:06 +0000)
commit6610ca19b3820e27c72ab97154e2b3acc52aa6b4
tree7b73c725d68f2d5e3f618827dc98a0ea9d96d756
parent962660eadddf73c0b600f1615c45df2620bc7fa1
Remove existing non-working support for self-modifying code, and instead
add a simple compromise, in which the client can notify valgrind
that certain code address ranges are invalid and should be retranslated.
This is done using the VALGRIND_DISCARD_TRANSLATIONS macro in valgrind.h.

At the same time take the opportunity to close the potentially fatal
loophole that translations for executable segments were not being
discarded when those segments were munmapped.  They are now.

Documentation updated.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@274
29 files changed:
cachegrind/cg_main.c
cachegrind/docs/manual.html
coregrind/docs/manual.html
coregrind/vg_constants.h
coregrind/vg_from_ucode.c
coregrind/vg_helpers.S
coregrind/vg_include.h
coregrind/vg_main.c
coregrind/vg_scheduler.c
coregrind/vg_symtab2.c
coregrind/vg_translate.c
coregrind/vg_transtab.c
docs/manual.html
include/valgrind.h
memcheck/docs/manual.html
tests/discard.c [new file with mode: 0644]
valgrind.h
vg_cachesim.c
vg_clientperms.c
vg_constants.h
vg_from_ucode.c
vg_helpers.S
vg_include.h
vg_main.c
vg_scheduler.c
vg_symtab2.c
vg_syscall_mem.c
vg_translate.c
vg_transtab.c