You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by GitBox <gi...@apache.org> on 2018/09/07 16:12:09 UTC

[GitHub] mkiiskila closed pull request #1381: compiler/gdbmacros; mbuf_pool struct was updated. Reflect it here.

mkiiskila closed pull request #1381: compiler/gdbmacros; mbuf_pool struct was updated. Reflect it here.
URL: https://github.com/apache/mynewt-core/pull/1381
 
 
   

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/compiler/gdbmacros/mbuf.gdb b/compiler/gdbmacros/mbuf.gdb
index 738f4aecbb..38dce0de28 100644
--- a/compiler/gdbmacros/mbuf.gdb
+++ b/compiler/gdbmacros/mbuf.gdb
@@ -163,7 +163,7 @@ define mn_mbuf_pool_print
     set $pool = ($arg0)
     set $om = (struct os_mbuf *)$pool->omp_pool.mp_membuf_addr
     set $elem_size = $pool->omp_databuf_len + sizeof (struct os_mbuf)
-    set $end = (uint8_t *)$om + $pool->omp_mbuf_count * $elem_size
+    set $end = (uint8_t *)$om + $pool->omp_pool.mp_num_blocks * $elem_size
 
     while $om < $end
         printf "Mbuf addr: %p\n", $om
diff --git a/compiler/gdbmacros/os.gdb b/compiler/gdbmacros/os.gdb
index d761c65459..e834d46add 100644
--- a/compiler/gdbmacros/os.gdb
+++ b/compiler/gdbmacros/os.gdb
@@ -38,6 +38,7 @@ Displays os tasks
 end
 
 define os_callouts
+	set $c = g_callout_list.tqh_first
 	printf "Callouts:\n"
 	printf " %8s %10s %10s\n", "tick", "callout", "func"
 	while $c != 0
@@ -61,7 +62,6 @@ define os_sleep_list
 end
 
 define os_wakeups
-	set $c = g_callout_list.tqh_first
 	printf " Now is %d\n", g_os_time
 	os_callouts
 	os_sleep_list


 

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services