diff options
author | Yao Qi <yao@codesourcery.com> | 2012-09-18 11:33:43 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2012-09-18 11:33:43 +0000 |
commit | 201b4506b3d34c274cdc5ec5ffb8f6e43fc982a9 (patch) | |
tree | 3315adad7b15dc81c715d0e28da3778dbde9e49c /gdb/mi/mi-cmds.c | |
parent | fbdc86d9c9e5fe451861a34381bf5483aec43bf1 (diff) | |
download | gdb-201b4506b3d34c274cdc5ec5ffb8f6e43fc982a9.zip gdb-201b4506b3d34c274cdc5ec5ffb8f6e43fc982a9.tar.gz gdb-201b4506b3d34c274cdc5ec5ffb8f6e43fc982a9.tar.bz2 |
gdb/doc:
* observer.texi (GDB Observers): New observer 'traceframe_changed'.
* gdb.texinfo (GDB/MI Async Records): Mention new MI notification
'=traceframe-changed'.
gdb:
* tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
if traceframe changed.
* mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
"trace-find".
* mi/mi-interp.c: Declare 'mi_traceframe_changed'.
(mi_interpreter_init): Hook mi_traceframe_changed to observer
'traceframe_changed'.
(mi_traceframe_changed): New.
* mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
New field.
* NEWS: Mention the new MI notification.
gdb/testsuite:
* gdb.trace/mi-traceframe-changed.exp: New.
Diffstat (limited to 'gdb/mi/mi-cmds.c')
-rw-r--r-- | gdb/mi/mi-cmds.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/mi/mi-cmds.c b/gdb/mi/mi-cmds.c index 008f8cc..2ed1905 100644 --- a/gdb/mi/mi-cmds.c +++ b/gdb/mi/mi-cmds.c @@ -137,7 +137,8 @@ static struct mi_cmd mi_cmds[] = DEF_MI_CMD_MI ("thread-list-ids", mi_cmd_thread_list_ids), DEF_MI_CMD_MI ("thread-select", mi_cmd_thread_select), DEF_MI_CMD_MI ("trace-define-variable", mi_cmd_trace_define_variable), - DEF_MI_CMD_MI ("trace-find", mi_cmd_trace_find), + DEF_MI_CMD_MI_1 ("trace-find", mi_cmd_trace_find, + &mi_suppress_notification.traceframe), DEF_MI_CMD_MI ("trace-list-variables", mi_cmd_trace_list_variables), DEF_MI_CMD_MI ("trace-save", mi_cmd_trace_save), DEF_MI_CMD_MI ("trace-start", mi_cmd_trace_start), |