openocd-0002-fix-xscale-uninitialise-breakpoint_pc.patch 725 B

1234567891011121314151617181920
  1. xscale: fix uninitialise breakpoint_pc
  2. Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
  3. ---
  4. src/target/xscale.c | 2 +-
  5. 1 file changed, 1 insertion(+), 1 deletion(-)
  6. Index: b/src/target/xscale.c
  7. ===================================================================
  8. --- a/src/target/xscale.c
  9. +++ b/src/target/xscale.c
  10. @@ -2811,7 +2811,7 @@ static int xscale_analyze_trace(struct t
  11. struct xscale_common *xscale = target_to_xscale(target);
  12. struct xscale_trace_data *trace_data = xscale->trace.data;
  13. int i, retval;
  14. - uint32_t breakpoint_pc;
  15. + uint32_t breakpoint_pc = 0;
  16. struct arm_instruction instruction;
  17. uint32_t current_pc = 0; /* initialized when address determined */