aboutsummaryrefslogtreecommitdiff
path: root/gdb/inferior.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@ericsson.com>2015-06-02 15:32:40 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-06-02 15:32:57 -0400
commit3b462ec2bedca7392bf4720db44fdf2a46ad8b4d (patch)
tree00f38e40bcab9efa75a154ad7b8c3f57f2e8c407 /gdb/inferior.c
parent9c7fe3c5c2c9e4c3571c253cf77341e3f6adf94c (diff)
Fix =thread-exited not showing up when detaching (PR 15564)
I sent a patch in 2013 for this (incorrectly named =thread-created): https://cygwin.com/ml/gdb-patches/2013-06/msg00129.html Tom Tromey was ok with the change, but suggested to add a test as well. Then I forgot about this patch until today. So here it is again, with the corresponding test. The problem is that the =thread-exited event does not appear when detaching from a local process. It does appear with remote though. It's not a really big deal, but I'd like it to be consistent. Tested with local and remote Linux on my Ubuntu 14.04. gdb/ChangeLog: PR gdb/15564 * inferior.c (detach_inferior): Call exit_inferior_1 with silent = 0. gdb/testsuite/ChangeLog: PR gdb/15564 * gdb.mi/mi-detach.exp: New file.
Diffstat (limited to 'gdb/inferior.c')
-rw-r--r--gdb/inferior.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/inferior.c b/gdb/inferior.c
index ba320b52e7..d0783d3b70 100644
--- a/gdb/inferior.c
+++ b/gdb/inferior.c
@@ -310,7 +310,7 @@ detach_inferior (int pid)
{
struct inferior *inf = find_inferior_pid (pid);
- exit_inferior_1 (inf, 1);
+ exit_inferior_1 (inf, 0);
if (print_inferior_events)
printf_unfiltered (_("[Inferior %d detached]\n"), pid);