You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mynewt.apache.org by cc...@apache.org on 2019/10/11 00:58:21 UTC

[mynewt-core] 03/04: mbuf.gdb: mn_msys1_dump

This is an automated email from the ASF dual-hosted git repository.

ccollins pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/mynewt-core.git

commit 51ca86bfd1d1a4c2cf25f0ed1cb4494e72a0ae86
Author: Christopher Collins <cc...@apache.org>
AuthorDate: Thu Oct 10 12:19:21 2019 -0700

    mbuf.gdb: mn_msys1_dump
    
    Dumps all mbufs in the first msys pool.  Both allocated and unallocated
    mbufs are dumped.
---
 compiler/gdbmacros/mbuf.gdb | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/compiler/gdbmacros/mbuf.gdb b/compiler/gdbmacros/mbuf.gdb
index 688825e..c8c8e32 100644
--- a/compiler/gdbmacros/mbuf.gdb
+++ b/compiler/gdbmacros/mbuf.gdb
@@ -216,6 +216,17 @@ Prints all mbufs in the first msys pool.  Both allocated and unallocated mbufs
 are printed.
 end
 
+define mn_msys1_dump
+    mn_mbuf_pool_dump &os_msys_1_mbuf_pool
+end
+
+document mn_msys1_dump
+usage: mn_msys1_dump
+
+Dumps all mbufs in the first msys pool.  Both allocated and unallocated mbufs
+are dumped.
+end
+
 define mn_msys1_free_list
     set $om = os_msys_1_mempool.slh_first