Expose symbol for current marker of heap to inspect use of it from
debugger.


Project: http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/repo
Commit: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/commit/7674b1bf
Tree: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/tree/7674b1bf
Diff: 
http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/diff/7674b1bf

Branch: refs/heads/master
Commit: 7674b1bf89396025022c0a893232d5c0651fd71c
Parents: f8cd414
Author: Marko Kiiskila <ma...@runtime.io>
Authored: Mon Feb 1 18:25:23 2016 -0800
Committer: Marko Kiiskila <ma...@runtime.io>
Committed: Mon Feb 1 18:25:23 2016 -0800

----------------------------------------------------------------------
 hw/bsp/nrf52pdk/src/sbrk.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-mynewt-larva/blob/7674b1bf/hw/bsp/nrf52pdk/src/sbrk.c
----------------------------------------------------------------------
diff --git a/hw/bsp/nrf52pdk/src/sbrk.c b/hw/bsp/nrf52pdk/src/sbrk.c
index 828cad1..5b47de6 100644
--- a/hw/bsp/nrf52pdk/src/sbrk.c
+++ b/hw/bsp/nrf52pdk/src/sbrk.c
@@ -19,11 +19,11 @@
 extern char __HeapBase;
 extern char __HeapLimit;
 
+static char *brk = &__HeapBase;
+
 void *
 _sbrk(int incr)
 {
-    static char *brk = &__HeapBase;
-
     void *prev_brk;
 
     if (incr < 0) {

Reply via email to