Add maxstacksize command for GDB.
authorAdam Green <adamgr@foo.bar>
Wed, 13 Feb 2013 04:45:42 +0000 (20:45 -0800)
committerAdam Green <adamgr@foo.bar>
Wed, 13 Feb 2013 04:45:42 +0000 (20:45 -0800)
commitcdefb14d4f530462c03526b2c65f3ff78330dbf1
treeca8e1f765cb11e46070cc199c7ca87a37b887c66
parentef8a6735e95e365c7a32b074c9b0f94d1b8cfedf
Add maxstacksize command for GDB.

Fills the area of SRAM between the top of the .bss section and the
top of the stack.  Can be used later with the maxstacksize command that
I added to .gdbinit.  This command searches the area between the
heap and stack to find where the fill has been overwritten and assumes
that the stack has grown into that area at some point in time.  This is
used to calculate the maximum stack size used.
NOTE: If your heap does ever shrink, then the maxstacksize command will
      be confused.  However, this has been a pretty rare case for
      Smoothie recently.

Also added these other commands:
heapsize - Displays the current heap size.
stacksize - Displays the current stack size.
.gdbinit
gcc4mbed/build/mbed.ld
gcc4mbed/src/gcc4mbed.cpp