diff options
author | Felix Willgerodt <felix.willgerodt@intel.com> | 2022-05-09 10:12:39 +0200 |
---|---|---|
committer | Felix Willgerodt <felix.willgerodt@intel.com> | 2022-05-17 12:41:13 +0200 |
commit | 49a73ab9d345e1cd412a93b34a0b8c166603d80e (patch) | |
tree | 136a0b5295febfdfe57059a019c4977b0f84f267 /gdb/record-btrace.c | |
parent | ed01945057cfdf048bc025f15b410492e12283f6 (diff) | |
download | gdb-49a73ab9d345e1cd412a93b34a0b8c166603d80e.zip gdb-49a73ab9d345e1cd412a93b34a0b8c166603d80e.tar.gz gdb-49a73ab9d345e1cd412a93b34a0b8c166603d80e.tar.bz2 |
gdb, btrace: Throw an error for empty recordings when replaying starts.
This makes record_btrace_start_replaying() more consistent, as it already
errors out e.g. on a recording with only gaps.
Diffstat (limited to 'gdb/record-btrace.c')
-rw-r--r-- | gdb/record-btrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/record-btrace.c b/gdb/record-btrace.c index 373d82b..3f8a69d 100644 --- a/gdb/record-btrace.c +++ b/gdb/record-btrace.c @@ -2017,7 +2017,7 @@ record_btrace_start_replaying (struct thread_info *tp) /* We can't start replaying without trace. */ if (btinfo->functions.empty ()) - return NULL; + error (_("No trace.")); /* GDB stores the current frame_id when stepping in order to detects steps into subroutines. |