X-Git-Url: http://git.hcoop.net/clinton/Smoothieware.git/blobdiff_plain/9ce4fc208cbcd2b4ca8ea81c77ef2d9662df4c13..6e9763ea204c1b24f9daa0922a7c93cbe8aa5898:/.gdbinit diff --git a/.gdbinit b/.gdbinit index 12bb52df..913e782e 100644 --- a/.gdbinit +++ b/.gdbinit @@ -57,6 +57,19 @@ end +define freespace + printf "free space: %d bytes\n", (unsigned int)$sp - '_sbrk::heap' +end + +document freespace +Displays the free space. + +This is the amount of space between the heap and stack that is currently +unused. +end + + + define maxstacksize set var $fill_curr=(unsigned int*)'_sbrk::heap' while ($fill_curr < $sp && *$fill_curr == 0xdeadbeef)