Simplify gdbmi_parser further by adding callbacks.