GDB monitor: test the 'set var' and 'call' commands

Fixes #930.