2010-03-01 13:22:30 +01:00
|
|
|
|
|
|
|
|
NOTE: Apply to --target=arm-none-symbianelf builds only.
|
|
|
|
|
|
|
|
|
|
This works around the problem of TRK overshooting line-wise stepping by a few
|
|
|
|
|
instructions. This is not a gdb problem, but a TRK problem, but currently
|
2010-03-23 14:24:35 +01:00
|
|
|
easier to workaround on the gdb side. It's sufficient to apply for the
|
2010-03-01 13:22:30 +01:00
|
|
|
arm-none-symbianelf targeted gdbs only as TRK is the only probe known to have
|
|
|
|
|
this problem.
|
|
|
|
|
|
|
|
|
|
--- a/gdb/infrun.c
|
|
|
|
|
+++ b/gdb/infrun.c
|
2011-06-23 12:36:25 +02:00
|
|
|
@@ -5061,9 +5061,9 @@ process_event_stop_test:
|
2010-03-01 13:22:30 +01:00
|
|
|
return;
|
|
|
|
|
}
|
2010-03-23 14:24:35 +01:00
|
|
|
|
2010-03-01 13:22:30 +01:00
|
|
|
- if ((stop_pc == stop_pc_sal.pc)
|
|
|
|
|
+ if (1 /* (stop_pc == stop_pc_sal.pc)
|
|
|
|
|
&& (ecs->event_thread->current_line != stop_pc_sal.line
|
|
|
|
|
- || ecs->event_thread->current_symtab != stop_pc_sal.symtab))
|
|
|
|
|
+ || ecs->event_thread->current_symtab != stop_pc_sal.symtab) */)
|
|
|
|
|
{
|
|
|
|
|
/* We are at the start of a different line. So stop. Note that
|
|
|
|
|
we don't stop if we step into the middle of a different line.
|