aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorMarkus Metzger <markus.t.metzger@intel.com>2014-06-24 14:25:50 +0200
committerMarkus Metzger <markus.t.metzger@intel.com>2015-03-03 09:50:06 +0100
commitce0dfbeaadee82ffae390e4515433d3b6b1e0084 (patch)
tree9cd485c69792eda14951b6986180d75cb78c0752 /gdb/ChangeLog
parent95e50b2723eba05ca34e9ea69c1de63e65ce9578 (diff)
downloadgdb-ce0dfbeaadee82ffae390e4515433d3b6b1e0084.zip
gdb-ce0dfbeaadee82ffae390e4515433d3b6b1e0084.tar.gz
gdb-ce0dfbeaadee82ffae390e4515433d3b6b1e0084.tar.bz2
btrace: compute line range when printing
The "record function-call-history" command prints the range of source lines for a function segment when given the /l modifier. This information is computed for the entire execution history when processing the recorded branch trace. To speed up the initial trace processing, we compute the information when we print a function segment and only if requested. The computation is fast enough (due to the limited scope) that it is not worth storing the data in struct btrace_function, anymore. gdb/ * btrace.h (btrace_function) <lbegin, lend>: Remove. * btrace.c (ftrace_debug): Do not print the line range. (ftrace_skip_file, ftrace_update_lines): Remove. (ftrace_new_function): Remove lbegin and lend initialization. (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines. * record-btrace.c (btrace_compute_src_line_range): New. (btrace_call_history_src_line): Call btrace_compute_src_line_range.
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog10
1 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 68c55c1..09a675f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,13 @@
+2015-03-03 Markus Metzger <markus.t.metzger@intel.com>
+
+ * btrace.h (btrace_function) <lbegin, lend>: Remove.
+ * btrace.c (ftrace_debug): Do not print the line range.
+ (ftrace_skip_file, ftrace_update_lines): Remove.
+ (ftrace_new_function): Remove lbegin and lend initialization.
+ (btrace_compute_ftrace_bts): Remove call to ftrace_update_lines.
+ * record-btrace.c (btrace_compute_src_line_range): New.
+ (btrace_call_history_src_line): Call btrace_compute_src_line_range.
+
2015-03-02 Pedro Alves <palves@redhat.com>
* infrun.c (follow_exec): Delete all threads of the process except