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.
This commit is contained in:
Felix Willgerodt
2022-05-09 10:12:39 +02:00
parent ed01945057
commit 49a73ab9d3

View File

@ -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.