debuginfo: Add GDB pretty printers for structs and enums.

Also extends the autotest framework to let a test case choose if pretty printing should be enabled.