]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2011-05-20 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Fri, 20 May 2011 05:12:11 +0000 (05:12 +0000)
committerHui Zhu <teawater@gmail.com>
Fri, 20 May 2011 05:12:11 +0000 (05:12 +0000)
* tracepoint.c (tfile_trace_find): Return directly when num is -1.

gdb/ChangeLog
gdb/tracepoint.c

index c3ff16622d3867bf757599705348dfc362f506e5..8284ec2e6faec14d0303b868b53e2645abdc4422 100644 (file)
@@ -1,3 +1,7 @@
+2011-05-20  Hui Zhu  <teawater@gmail.com>
+
+       * tracepoint.c (tfile_trace_find): Return directly when num is -1.
+
 2011-05-19  Tom Tromey  <tromey@redhat.com>
 
        * python/py-inferior.c (python_inferior_exit): Use
index 3ae35d0769257912cceb00b27bd44a7014582a45..c4a4367b61f73e686fe66d4b713671e7ebcf9592 100644 (file)
@@ -3809,6 +3809,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;