aboutsummaryrefslogtreecommitdiff
path: root/gdb/tracepoint.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r--gdb/tracepoint.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gdb/tracepoint.c b/gdb/tracepoint.c
index ab39015..4dae251 100644
--- a/gdb/tracepoint.c
+++ b/gdb/tracepoint.c
@@ -3815,6 +3815,12 @@ tfile_trace_find (enum trace_find_type type, int num,
first. */
if (type != tfind_number)
set_tfile_traceframe ();
+ else if (num == -1)
+ {
+ if (tpp)
+ *tpp = -1;
+ return -1;
+ }
lseek (trace_fd, trace_frames_offset, SEEK_SET);
offset = trace_frames_offset;