Allow G92 A0 to change A axis, ditto for B C
[clinton/Smoothieware.git] / .gdbinit
index 12bb52d..913e782 100644 (file)
--- 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)