2011-05-19 Hui Zhu <teawater@gmail.com>

* tracepoint.c (tfile_trace_find): Return directly when num is -1.
This commit is contained in:
Hui Zhu 2011-05-19 14:06:44 +00:00
parent fda544a25c
commit fb80a3c562
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,7 @@
2011-05-19 Hui Zhu <teawater@gmail.com>
* tracepoint.c (tfile_trace_find): Return directly when num is -1.
2011-05-19 Hui Zhu <teawater@gmail.com>
* xcoffread.c (read_xcoff_symtab): Initialize fcn_aux_saved.

View File

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