aboutsummaryrefslogtreecommitdiff
path: root/gdb/doc
diff options
context:
space:
mode:
authorTim Wiederhake <tim.wiederhake@intel.com>2016-07-25 10:57:06 +0200
committerTim Wiederhake <tim.wiederhake@intel.com>2016-07-25 11:03:43 +0200
commitc0272db5854a799a9f3bb3803c3d03d1a62b9ac2 (patch)
treeebd295aa3734c916316b96ed8a1481e5d13c6c39 /gdb/doc
parent95804507f2645c1cce29f2e1a33031accaa6aa24 (diff)
downloadgdb-c0272db5854a799a9f3bb3803c3d03d1a62b9ac2.zip
gdb-c0272db5854a799a9f3bb3803c3d03d1a62b9ac2.tar.gz
gdb-c0272db5854a799a9f3bb3803c3d03d1a62b9ac2.tar.bz2
btrace: Resume recording after disconnect.
This patch allows gdbserver to continue recording after disconnect. On reconnect, the recorded data is accessible to gdb as if no disconnect happened. A possible application for this feature is remotely examine bugs that occur at irregular intervals, where maintaining a gdb connection is inconvenient. This also fixes the issue mentioned here: https://sourceware.org/ml/gdb-patches/2015-11/msg00424.html Signed-off-by: Tim Wiederhake <tim.wiederhake@intel.com> gdb/ChangeLog: * NEWS: Resume btrace on reconnect. * record-btrace.c: Added record-btrace.h include. (record_btrace_open): Split into this and ... (record_btrace_push_target): ... this. (record_btrace_disconnect): New function. (init_record_btrace_ops): Use record_btrace_disconnect. * record-btrace.h: New file. * remote.c: Added record-btrace.h include. (remote_start_remote): Check recording status. (remote_btrace_maybe_reopen): New function. gdb/doc/ChangeLog: * gdb.texinfo: Resume btrace on reconnect. gdb/testsuite/ChangeLog: * gdb.btrace/reconnect.c: New file. * gdb.btrace/reconnect.exp: New file. Change-Id: I95e8b0ab8a89e58591aba0e63818cee82fd211bc
Diffstat (limited to 'gdb/doc')
-rw-r--r--gdb/doc/ChangeLog4
-rw-r--r--gdb/doc/gdb.texinfo4
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog
index 39eeab2b..cc9bc70 100644
--- a/gdb/doc/ChangeLog
+++ b/gdb/doc/ChangeLog
@@ -1,3 +1,7 @@
+2016-07-25 Tim Wiederhake <tim.wiederhake@intel.com>
+
+ * gdb.texinfo: Resume btrace on reconnect.
+
2016-07-23 Gabriel Krisman Bertazi <gabriel@krisman.be>
* gdb.texinfo (Set Catchpoints): Add 'group' argument to catch
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
index ae74ed4..f5dde61 100644
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -6657,7 +6657,9 @@ Hardware-supported instruction recording. This method does not record
data. Further, the data is collected in a ring buffer so old data will
be overwritten when the buffer is full. It allows limited reverse
execution. Variables and registers are not available during reverse
-execution.
+execution. In remote debugging, recording continues on disconnect.
+Recorded data can be inspected after reconnecting. The recording may
+be stopped using @code{record stop}.
The recording format can be specified as parameter. Without a parameter
the command chooses the recording format. The following recording