gdb/
2013-02-27 Yao Qi <yao@codesourcery.com> Pedro Alves <palves@redhat.com> * tracepoint.c (tfile_trace_find): For tfind pc/tp/range/outside, look for the next trace frame instead of always starting from frame 0.
This commit is contained in:
parent
32cc08a209
commit
6c8e944d79
|
@ -1,3 +1,10 @@
|
|||
2013-02-27 Yao Qi <yao@codesourcery.com>
|
||||
Pedro Alves <palves@redhat.com>
|
||||
|
||||
* tracepoint.c (tfile_trace_find): For tfind
|
||||
pc/tp/range/outside, look for the next trace frame instead of
|
||||
always starting from frame 0.
|
||||
|
||||
2013-02-26 Anthony Green <green@moxielogic.com>
|
||||
|
||||
* configure.tgt: Add support for moxie-*-rtems* target.
|
||||
|
|
|
@ -4316,12 +4316,20 @@ tfile_trace_find (enum trace_find_type type, int num,
|
|||
((gdb_byte *) &data_size, 4,
|
||||
gdbarch_byte_order (target_gdbarch ()));
|
||||
offset += 4;
|
||||
switch (type)
|
||||
|
||||
if (type == tfind_number)
|
||||
{
|
||||
case tfind_number:
|
||||
/* Looking for a specific trace frame. */
|
||||
if (tfnum == num)
|
||||
found = 1;
|
||||
break;
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Start from the _next_ trace frame. */
|
||||
if (tfnum > traceframe_number)
|
||||
{
|
||||
switch (type)
|
||||
{
|
||||
case tfind_pc:
|
||||
tfaddr = tfile_get_traceframe_address (tframe_offset);
|
||||
if (tfaddr == addr1)
|
||||
|
@ -4345,6 +4353,9 @@ tfile_trace_find (enum trace_find_type type, int num,
|
|||
default:
|
||||
internal_error (__FILE__, __LINE__, _("unknown tfind type"));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (found)
|
||||
{
|
||||
if (tpp)
|
||||
|
|
Loading…
Reference in New Issue