[arch-commits] Commit in valgrind/trunk (valgrind-3.13.0-arch_prctl.patch)
Levente Polyak
anthraxx at archlinux.org
Wed Oct 17 07:43:49 UTC 2018
Date: Wednesday, October 17, 2018 @ 07:43:48
Author: anthraxx
Revision: 336796
upgpkg: valgrind 3.14.0-1
Deleted:
valgrind/trunk/valgrind-3.13.0-arch_prctl.patch
----------------------------------+
valgrind-3.13.0-arch_prctl.patch | 31 -------------------------------
1 file changed, 31 deletions(-)
Deleted: valgrind-3.13.0-arch_prctl.patch
===================================================================
--- valgrind-3.13.0-arch_prctl.patch 2018-10-17 07:37:43 UTC (rev 336795)
+++ valgrind-3.13.0-arch_prctl.patch 2018-10-17 07:43:48 UTC (rev 336796)
@@ -1,31 +0,0 @@
-diff --git a/coregrind/m_syswrap/syswrap-amd64-linux.c b/coregrind/m_syswrap/syswrap-amd64-linux.c
-index 0f2ad8c51..407af7f76 100644
---- a/coregrind/m_syswrap/syswrap-amd64-linux.c
-+++ b/coregrind/m_syswrap/syswrap-amd64-linux.c
-@@ -249,6 +249,7 @@ PRE(sys_rt_sigreturn)
- PRE(sys_arch_prctl)
- {
- ThreadState* tst;
-+ Bool known_option = True;
- PRINT( "arch_prctl ( %ld, %lx )", SARG1, ARG2 );
-
- vg_assert(VG_(is_valid_tid)(tid));
-@@ -283,13 +284,16 @@ PRE(sys_arch_prctl)
- POST_MEM_WRITE(ARG2, sizeof(unsigned long));
- }
- else {
-- VG_(core_panic)("Unsupported arch_prctl option");
-+ known_option = False;
- }
-
- /* Note; the Status writeback to guest state that happens after
- this wrapper returns does not change guest_FS_CONST or guest_GS_CONST;
- hence that direct assignment to the guest state is safe here. */
-- SET_STATUS_Success( 0 );
-+ if (known_option)
-+ SET_STATUS_Success( 0 );
-+ else
-+ SET_STATUS_Failure( VKI_EINVAL );
- }
-
- // Parts of this are amd64-specific, but the *PEEK* cases are generic.
More information about the arch-commits
mailing list