binutils-gdb/gdb/common
Simon Marchi 38b022b445 Add method/format information to =record-started
Eclipse CDT now supports enabling execution recording using two methods
(full and btrace) and both formats for btrace (bts and pt).  In the
event that recording is enabled behind the back of the GUI (by the user
on the command line, or a script), we need to know which method/format
are being used, so it can be correctly reflected in the interface.  This
patch adds this information to the =record-started async record.

Before:

  =record-started,thread-group="i1"

After:

  =record-started,thread-group="i1",method="btrace",format="bts"
  =record-started,thread-group="i1",method="btrace",format="pt"
  =record-started,thread-group="i1",method="full"

The "format" field is only present when the current method supports
multiple formats (only the btrace method as of now).

gdb/ChangeLog:

	* NEWS: Mention the new fields in =record-started.
	* common/btrace-common.h (btrace_format_short_string): New function
	declaration.
	* common/btrace-common.c (btrace_format_short_string): New
	function.
	* mi/mi-interp.c (mi_record_changed): Output method and format
	fields in the =record-started record.
	* record-btrace.c (record_btrace_open): Adapt record_changed
	notification.
	* record-full.c (record_full_open): Likewise.
	* record.c (cmd_record_stop): Likewise.

gdb/doc/ChangeLog:

	* gdb.texinfo (GDB/MI Async Records): Document method and
	format fields in =record-started.
	* observer.texi (record_changed): Add method and format
	parameters.

gdb/testsuite/ChangeLog:

	* gdb.mi/mi-record-changed.exp: Adjust =record-started output
	matching.
2016-06-06 17:10:18 -04:00
..
agent.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
agent.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ax.def GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
break-common.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
btrace-common.c Add method/format information to =record-started 2016-06-06 17:10:18 -04:00
btrace-common.h Add method/format information to =record-started 2016-06-06 17:10:18 -04:00
buffer.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
buffer.h Use struct buffer in gdb_readline_no_editing 2016-03-09 18:25:00 +00:00
cleanups.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
cleanups.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-debug.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-debug.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-defs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-exceptions.c Propagate GDB/C++ exceptions across readline using sj/lj-based TRY/CATCH 2016-04-22 16:20:04 +01:00
common-exceptions.h Switch gdb's TRY/CATCH to C++ try/catch 2016-04-22 16:20:49 +01:00
common-regcache.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-regcache.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-types.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common-utils.c Add xmalloc_failed() function to common-utils.c in to avoid the need to link in libiberty's xmalloc code. 2016-06-01 11:44:08 +01:00
common-utils.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common.host GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
common.m4 GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
create-version.sh GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
enum-flags.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
errors.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
errors.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fileio.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
fileio.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
filestuff.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
filestuff.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
format.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
format.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_assert.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_locale.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_setjmp.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_signals.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_sys_time.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_vecs.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_vecs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
gdb_wait.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
host-defs.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
mingw-strerror.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
posix-strerror.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
print-utils.c Centralize thread ID printing 2016-01-13 10:59:14 +00:00
print-utils.h Centralize thread ID printing 2016-01-13 10:59:14 +00:00
ptid.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
ptid.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
queue.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
rsp-low.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
rsp-low.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
signals.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
symbol.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
vec.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
vec.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
version.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
x86-xstate.h Add target descriptions for AVX + MPX 2016-04-19 15:44:32 +02:00
xml-utils.c GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00
xml-utils.h GDB copyright headers update after running GDB's copyright.py script. 2016-01-01 08:43:22 +04:00