diff options
author | Hui Zhu <teawater@gmail.com> | 2011-05-19 14:06:44 +0000 |
---|---|---|
committer | Hui Zhu <teawater@gmail.com> | 2011-05-19 14:06:44 +0000 |
commit | fb80a3c562f75676ff2eadcaedd77f09960bd674 (patch) | |
tree | 251842c82df9fc58a8b418e95457eb620ed324a3 /gdb/tracepoint.c | |
parent | fda544a25cc0bc04691f5f97dc27d66eb5bb5212 (diff) | |
download | gdb-fb80a3c562f75676ff2eadcaedd77f09960bd674.zip gdb-fb80a3c562f75676ff2eadcaedd77f09960bd674.tar.gz gdb-fb80a3c562f75676ff2eadcaedd77f09960bd674.tar.bz2 |
2011-05-19 Hui Zhu <teawater@gmail.com>
* tracepoint.c (tfile_trace_find): Return directly when num is -1.
Diffstat (limited to 'gdb/tracepoint.c')
-rw-r--r-- | gdb/tracepoint.c | 6 |
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; |