* inf-ttrace.c (inf_ttrace_wait): Comment out TARGET_WAITKIND_EXEC
authorMark Kettenis <kettenis@gnu.org>
Sat, 29 Oct 2005 21:22:39 +0000 (21:22 +0000)
committerMark Kettenis <kettenis@gnu.org>
Sat, 29 Oct 2005 21:22:39 +0000 (21:22 +0000)
code; return TARGET_WAITKIND_STOPPED instead.

gdb/ChangeLog
gdb/inf-ttrace.c

index 00fa8bbb9c3c9b6d650be6ca9caafe0d09a21f71..4f67d1f5d82cd48fa68fd82b00d9eee2ecbc0d2b 100644 (file)
@@ -1,3 +1,8 @@
+2005-10-29  Mark Kettenis  <kettenis@gnu.org>
+
+       * inf-ttrace.c (inf_ttrace_wait): Comment out TARGET_WAITKIND_EXEC
+       code; return TARGET_WAITKIND_STOPPED instead.
+
 2005-10-28  Mark Kettenis  <kettenis@gnu.org>
 
        * ppc-tdep.h (PPC_INSN_SIZE): Define.
index 84ebb70d4d510f655efdf0e5a51c9ef148f66d30..fc19e90b0e1001a0947a3103ca70649672ad84df 100644 (file)
@@ -894,6 +894,10 @@ inf_ttrace_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
 #endif
 
     case TTEVT_EXEC:
+      /* FIXME: kettenis/20051029: GDB doesn't really know how to deal
+        with TARGET_WAITKIND_EXECD events yet.  So we make it look
+        like a SIGTRAP instead.  */
+#if 0
       ourstatus->kind = TARGET_WAITKIND_EXECD;
       ourstatus->value.execd_pathname =
        xmalloc (tts.tts_u.tts_exec.tts_pathlen + 1);
@@ -902,6 +906,10 @@ inf_ttrace_wait (ptid_t ptid, struct target_waitstatus *ourstatus)
                  tts.tts_u.tts_exec.tts_pathlen, 0) == -1)
        perror_with_name (("ttrace"));
       ourstatus->value.execd_pathname[tts.tts_u.tts_exec.tts_pathlen] = 0;
+#else
+      ourstatus->kind = TARGET_WAITKIND_STOPPED;
+      ourstatus->value.sig = TARGET_SIGNAL_TRAP;
+#endif
       break;
 
     case TTEVT_EXIT: