Source-Changes-HG archive

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

[src/trunk]: src/external/gpl3/gdb/dist/gdb Fix arm, for which PT_STEP is def...



details:   https://anonhg.NetBSD.org/src/rev/8145fc413e6d
branches:  trunk
changeset: 946809:8145fc413e6d
user:      rin <rin%NetBSD.org@localhost>
date:      Thu Dec 10 07:14:58 2020 +0000

description:
Fix arm, for which PT_STEP is defined but unimplemented.

XXX
Stop exposing PT_STEP to userland for arm?

diffstat:

 external/gpl3/gdb/dist/gdb/nbsd-nat.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r fadf907a4939 -r 8145fc413e6d external/gpl3/gdb/dist/gdb/nbsd-nat.c
--- a/external/gpl3/gdb/dist/gdb/nbsd-nat.c     Thu Dec 10 04:03:00 2020 +0000
+++ b/external/gpl3/gdb/dist/gdb/nbsd-nat.c     Thu Dec 10 07:14:58 2020 +0000
@@ -458,7 +458,7 @@
   return true;
 }
 
-#ifdef PT_STEP
+#if defined(PT_STEP) && !defined(__arm__)
 /* Resume execution of a specified PTID, that points to a process or a thread
    within a process.  If one thread is specified, all other threads are
    suspended.  If STEP is nonzero, single-step it.  If SIGNAL is nonzero,
@@ -530,7 +530,7 @@
 void
 nbsd_nat_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
 {
-#ifdef PT_STEP
+#if defined(PT_STEP) && !defined(__arm__)
   if (minus_one_ptid != ptid)
     nbsd_resume (this, ptid, step, signal);
   else



Home | Main Index | Thread Index | Old Index