diff options
author | davidxu <davidxu@FreeBSD.org> | 2005-05-06 11:01:15 +0000 |
---|---|---|
committer | davidxu <davidxu@FreeBSD.org> | 2005-05-06 11:01:15 +0000 |
commit | f305634ad3db253bc00759b68aec35b6d1270be3 (patch) | |
tree | de81aea844b2d034dfd65a646484543a1d8be8cc /gnu | |
parent | 42ce29d66bd2407a5f5b3ec0d6fafec55fdf18a8 (diff) | |
download | FreeBSD-src-f305634ad3db253bc00759b68aec35b6d1270be3.zip FreeBSD-src-f305634ad3db253bc00759b68aec35b6d1270be3.tar.gz |
Don't try to enable event reporting for core file, it is not writable.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gdb/libgdb/fbsd-threads.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c index c3149b2..2dfdff4 100644 --- a/gnu/usr.bin/gdb/libgdb/fbsd-threads.c +++ b/gnu/usr.bin/gdb/libgdb/fbsd-threads.c @@ -660,6 +660,8 @@ attach_thread (ptid_t ptid, const td_thrhandle_t *th_p, if (! IS_THREAD(ptid)) return; + if (fbsd_thread_core != 0) + return; /* Enable thread event reporting for this thread. */ err = td_thr_event_enable_p (th_p, 1); if (err != TD_OK) |