Debug: fixes for Nuttx.py debug gdb add-ons

also fixed preceding mask calculation in show heaps
Debug: fixes for gdb extension macros