• R/O
  • SSH
  • HTTPS

chibios: Commit


Commit MetaInfo

Revision14056 (tree)
Time2021-02-20 20:07:00
Authorgdisirio

Log Message

RT7 plugin updated.

Change Summary

Incremental Difference

--- branches/chibistudio_trunk/tools/chibios-rt7_debug_support/src/org/chibios/tools/eclipse/debug/utils/KernelObjects.java (revision 14055)
+++ branches/chibistudio_trunk/tools/chibios-rt7_debug_support/src/org/chibios/tools/eclipse/debug/utils/KernelObjects.java (revision 14056)
@@ -217,7 +217,7 @@
217217 n = evaluateExpressionNumber("(uint32_t)((struct ch_thread *)" + current + ")->flags");
218218 map.put("flags", Long.toString(n));
219219
220- n = evaluateExpressionNumber("(uint32_t)((struct ch_thread *)" + current + ")->prio");
220+ n = evaluateExpressionNumber("(uint32_t)((struct ch_thread *)" + current + ")->hdr.pqueue.prio");
221221 map.put("prio", Long.toString(n));
222222
223223 try {
@@ -315,7 +315,7 @@
315315 while (true) {
316316
317317 // Fetching next timer in the delta list (next link).
318- current = evaluateExpression("(uint32_t)((struct ch_virtual_timer *)" + current + ")->next");
318+ current = evaluateExpression("(uint32_t)((struct ch_virtual_timer *)" + current + ")->dlist.next");
319319
320320 // This can happen if the kernel is not initialized yet or if the
321321 // delta list is corrupted.
@@ -325,7 +325,7 @@
325325 // TODO: integrity check on the pointer value (alignment, range).
326326
327327 // The previous timer in the delta list is fetched as a integrity check.
328- String prev = evaluateExpression("(uint32_t)((struct ch_virtual_timer *)" + current + ")->prev");
328+ String prev = evaluateExpression("(uint32_t)((struct ch_virtual_timer *)" + current + ")->dlist.prev");
329329 if (prev.compareTo("0") == 0)
330330 throw new DebugProxyException("ChibiOS/RT delta list integrity check failed, NULL pointer");
331331 if (previous.compareTo(prev) != 0)
@@ -340,7 +340,7 @@
340340
341341 // Fetch of the various fields in the virtual_timer_t structure. Some fields
342342 // are optional so are placed within try-catch.
343- long n = evaluateExpressionNumber("(uint32_t)((struct ch_virtual_timer *)" + current + ")->delta");
343+ long n = evaluateExpressionNumber("(uint32_t)((struct ch_virtual_timer *)" + current + ")->dlist.delta");
344344 map.put("delta", Long.toString(n));
345345
346346 n = evaluateExpressionNumber("(uint32_t)((struct ch_virtual_timer *)" + current + ")->func");
@@ -505,7 +505,7 @@
505505 LinkedHashMap<String, String> map = new LinkedHashMap<String, String>(16);
506506
507507 try {
508- String vt_lasttime = evaluateExpression("(uint32_t)ch.vtlist.delta");
508+ String vt_lasttime = evaluateExpression("(uint32_t)ch.vtlist.dlist.delta");
509509 if (vt_lasttime == null)
510510 return null;
511511 map.put("vt_lasttime", vt_lasttime);
Show on old repository browser