summaryrefslogtreecommitdiffstats
path: root/gdb/mi/mi-interp.c
diff options
context:
space:
mode:
authorVladimir Prus <vladimir@codesourcery.com>2008-11-17 12:34:19 +0000
committerVladimir Prus <vladimir@codesourcery.com>2008-11-17 12:34:19 +0000
commit3d043ef6a32bab5eeaa0a4ea0532a2a7858e518e (patch)
treee577eb4b9c7be5b8ba9fdfc04053e4809955c38d /gdb/mi/mi-interp.c
parent4a92f99bc7076bebcee009e8b2a7fc717df03590 (diff)
downloadppe42-binutils-3d043ef6a32bab5eeaa0a4ea0532a2a7858e518e.tar.gz
ppe42-binutils-3d043ef6a32bab5eeaa0a4ea0532a2a7858e518e.zip
Include group-id in thread-created notification.
* mi/mi-interp.c (mi_new_thread, mi_thread_exit): Include group id in the output.
Diffstat (limited to 'gdb/mi/mi-interp.c')
-rw-r--r--gdb/mi/mi-interp.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c
index 31216040b0..e05b1ad5e2 100644
--- a/gdb/mi/mi-interp.c
+++ b/gdb/mi/mi-interp.c
@@ -293,7 +293,9 @@ mi_new_thread (struct thread_info *t)
{
struct mi_interp *mi = top_level_interpreter_data ();
- fprintf_unfiltered (mi->event_channel, "thread-created,id=\"%d\"", t->num);
+ fprintf_unfiltered (mi->event_channel,
+ "thread-created,id=\"%d\",group-id=\"%d\"",
+ t->num, t->ptid.pid);
gdb_flush (mi->event_channel);
}
@@ -302,7 +304,9 @@ mi_thread_exit (struct thread_info *t)
{
struct mi_interp *mi = top_level_interpreter_data ();
target_terminal_ours ();
- fprintf_unfiltered (mi->event_channel, "thread-exited,id=\"%d\"", t->num);
+ fprintf_unfiltered (mi->event_channel,
+ "thread-exited,id=\"%d\",group-id=\"%d\"",
+ t->num,t->ptid.pid);
gdb_flush (mi->event_channel);
}
OpenPOWER on IntegriCloud