2011-05-19 Hui Zhu <teawater@gmail.com>
* tracepoint.c (tfile_trace_find): Return directly when num is -1.
This commit is contained in:
parent
fda544a25c
commit
fb80a3c562
@ -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.
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user