Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common Use int...



details:   https://anonhg.NetBSD.org/src/rev/520b1e2b0301
branches:  trunk
changeset: 955065:520b1e2b0301
user:      kamil <kamil%NetBSD.org@localhost>
date:      Thu Sep 17 15:43:24 2020 +0000

description:
Use internal_ptrace() instead of ptrace()

Cherry-pick:

commit 0008fb343704bafc3469703be930b8a65d7c47fa
Author: Kamil Rytarowski <n54%gmx.com@localhost>
Date:   Mon Sep 14 10:10:49 2020 +0200

    [compiler-rt] [netbsd] Use internal_ptrace() instead of ptrace()

diffstat:

 external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cc |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r e4994aac6a12 -r 520b1e2b0301 external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cc
--- a/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cc     Thu Sep 17 15:42:17 2020 +0000
+++ b/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/sanitizer_stoptheworld_netbsd_libcdep.cc     Thu Sep 17 15:43:24 2020 +0000
@@ -131,7 +131,7 @@
   pl.pl_lwpid = 0;
 
   int val;
-  while ((val = ptrace(op, pid_, (void *)&pl, sizeof(pl))) != -1 &&
+  while ((val = internal_ptrace(op, pid_, (void *)&pl, sizeof(pl))) != -1 &&
          pl.pl_lwpid != 0) {
     suspended_threads_list_.Append(pl.pl_lwpid);
     VReport(2, "Appended thread %d in process %d.\n", pl.pl_lwpid, pid_);



Home | Main Index | Thread Index | Old Index