use macro to simply the gdbscript