aboutsummaryrefslogtreecommitdiff
path: root/gdb/inf-ttrace.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2005-10-29 21:22:39 +0000
committerMark Kettenis <kettenis@gnu.org>2005-10-29 21:22:39 +0000
commit7c35e3f307bcad29d248a4d40e8c50a4c4a8d4f0 (patch)
treefdc5268ad24b25d38bf959843469c41e65eb1cef /gdb/inf-ttrace.c
parent62d8ad4fd4444b825543eaf918ef007b1ae4d252 (diff)
downloadgdb-7c35e3f307bcad29d248a4d40e8c50a4c4a8d4f0.zip
gdb-7c35e3f307bcad29d248a4d40e8c50a4c4a8d4f0.tar.gz
gdb-7c35e3f307bcad29d248a4d40e8c50a4c4a8d4f0.tar.bz2
* inf-ttrace.c (inf_ttrace_wait): Comment out TARGET_WAITKIND_EXEC
code; return TARGET_WAITKIND_STOPPED instead.
Diffstat (limited to 'gdb/inf-ttrace.c')
-rw-r--r--gdb/inf-ttrace.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/inf-ttrace.c b/gdb/inf-ttrace.c
index 84ebb70..fc19e90 100644
--- a/gdb/inf-ttrace.c
+++ b/gdb/inf-ttrace.c
@@ -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: