I'm running openocd on EP9307(arm920t) CPU, as a HOST.

"trace history" get "Floating point exception" and die,
when trace_history_size is 0.

Attached patch fix it.
--------
Hiroshi Ito
Media Lab. Inc.,
URL http://www.mlb.co.jp ( Sorry, Japanese only. )
TEL +81-3-5294-7255  FAX +81-3-5294-7256
Index: src/target/trace.c
===================================================================
--- src/target/trace.c  (revision 1415)
+++ src/target/trace.c  (working copy)
@@ -128,7 +128,11 @@
                int i;
                int first = 0;
                int last = trace->trace_history_pos;
-               
+
+               if ( !trace->trace_history_size ) {
+                       command_print(cmd_ctx, "trace history buffer is not 
allocated");
+                       return ERROR_OK;
+               }
                if (trace->trace_history_overflowed)
                {
                        first = trace->trace_history_pos;
_______________________________________________
Openocd-development mailing list
Openocd-development@lists.berlios.de
https://lists.berlios.de/mailman/listinfo/openocd-development

Reply via email to