aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2016-01-12 10:44:37 +0100
committerMarkus Metzger <markus.t.metzger@intel.com>2016-10-28 10:49:27 +0200
commit63ab433e29b2715f429551cdbec72dab0d752c20 (patch)
treea654babd2cb72b8f699f194bfdd323c162292ae5 /gdb/ChangeLog
parent2fc9bcf136a72ecc56a333cb658a8eaac8c9fec7 (diff)
downloadfsf-binutils-gdb-63ab433e29b2715f429551cdbec72dab0d752c20.zip
fsf-binutils-gdb-63ab433e29b2715f429551cdbec72dab0d752c20.tar.gz
fsf-binutils-gdb-63ab433e29b2715f429551cdbec72dab0d752c20.tar.bz2
btrace: fix gap indication
Trace gaps due to overflows or non-contiguous trace are ignored in the 'info record' command. Fix that. Also add a warning when decoding the trace and print the instruction number preceding the trace gap in that warning message. It looks like this: (gdb) info record Active record target: record-btrace Recording format: Intel Processor Trace. Buffer size: 16kB. warning: Decode error (-13) at instruction 101044 (offset = 0x29f0, pc = 0x7ffff728a642): no memory mapped at this address. Recorded 101044 instructions in 2093 functions (1 gaps) for thread 1 (process 5360). (gdb) record instruction-history 101044 101044 0x00007ffff728a640: pop %r13 [decode error (-13): no memory mapped at this address] Remove the dead code that was supposed to print a gaps warning at the end of trace decode. This isn't really needed since we now print a warning for each gap. gdb/ * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non- contiguous trace and overflow. Rephrase trace decode warning and print instruction number. Remove dead gaps warning. (btrace_compute_ftrace_bts): Rephrase warnings and print instruction number.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog8
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 768d166..988a50a 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,11 @@
+2016-10-28 Markus Metzger <markus.t.metzger@intel.com>
+
+ * btrace.c (ftrace_add_pt): Fix gap indication. Add warning for non-
+ contiguous trace and overflow. Rephrase trace decode warning and print
+ instruction number. Remove dead gaps warning.
+ (btrace_compute_ftrace_bts): Rephrase warnings and print instruction
+ number.
+
2016-10-25 Sandra Loosemore <sandra@codesourcery.com>
Luis Machado <lgustavo@codesourcery.com>
Pedro Alves <palves@redhat.com>