diff options
author | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-17 12:34:19 +0000 |
---|---|---|
committer | Vladimir Prus <vladimir@codesourcery.com> | 2008-11-17 12:34:19 +0000 |
commit | 3d043ef6a32bab5eeaa0a4ea0532a2a7858e518e (patch) | |
tree | e577eb4b9c7be5b8ba9fdfc04053e4809955c38d /gdb/mi | |
parent | 4a92f99bc7076bebcee009e8b2a7fc717df03590 (diff) | |
download | gdb-3d043ef6a32bab5eeaa0a4ea0532a2a7858e518e.zip gdb-3d043ef6a32bab5eeaa0a4ea0532a2a7858e518e.tar.gz gdb-3d043ef6a32bab5eeaa0a4ea0532a2a7858e518e.tar.bz2 |
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')
-rw-r--r-- | gdb/mi/mi-interp.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c index 3121604..e05b1ad 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); } |