X-Git-Url: http://git.hcoop.net/clinton/Smoothieware.git/blobdiff_plain/3808eb19dd5e99590f5de0448717e53f5691c4e2..276e7c00a440dab56d3b81428b38a5e072d896bd:/.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)