This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH 0/3] MI notification on trace started/stopped (V2)


Hello,
This patch series addes the notifications of 'trace-started' and
'trace-stopped', which are emitted when

  1) trace is started or stopped by commands in GDB,
  2) trace is stopped due to some reasons in the remote stub, such as
trace buffer full.

With these notifications, MI front-end can show the status of trace
up to date.

Patch 1/3 is to address #1, adding new MI notifications and
notifying observers when the commands are called.  #2 needs more work
here, because GDB doesn't know the trace is stopped in the remote
stub.  So we need an async remote notification 'Trace' to tell GDB.
That is what patch 2/3 about.  Patch 3/3 is to use this async remote
notification 'Trace' and notify trace_stopped observer.

The patch series are tested on x86_64-linux with {native, gdbserver} x
{sync, async}.

*** BLURB HERE ***

  MI notification on trace started/stopped:basic
  async remote notification 'Trace'.
  MI notification on trace stop: triggered by remote

 gdb/Makefile.in                              |    5 +-
 gdb/NEWS                                     |    2 +
 gdb/doc/gdb.texinfo                          |    6 +
 gdb/doc/observer.texi                        |    8 ++
 gdb/gdbserver/notif.c                        |    1 +
 gdb/gdbserver/notif.h                        |    1 +
 gdb/gdbserver/tracepoint.c                   |   27 +++++
 gdb/mi/mi-cmds.c                             |    6 +-
 gdb/mi/mi-interp.c                           |   46 ++++++++
 gdb/mi/mi-main.h                             |    2 +
 gdb/remote-notif-trace.c                     |   77 +++++++++++++
 gdb/remote-notif.c                           |    1 +
 gdb/remote-notif.h                           |    1 +
 gdb/testsuite/gdb.trace/mi-trace-changed.exp |  159 ++++++++++++++++++++++++++
 gdb/tracepoint.c                             |    4 +
 gdb/tracepoint.h                             |    1 +
 16 files changed, 343 insertions(+), 4 deletions(-)
 create mode 100644 gdb/remote-notif-trace.c
 create mode 100644 gdb/testsuite/gdb.trace/mi-trace-changed.exp

-- 
1.7.7.6


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]