[RFC][gdb] Add debug_{exp,val}

Tom Tromey tom@tromey.com
Thu Aug 4 17:55:41 GMT 2022


>>>>> "Tom" == Tom de Vries via Gdb-patches <gdb-patches@sourceware.org> writes:

Tom> Hi,
Tom> When debugging cc1 I heavily rely on simple one-parameter debug functions
Tom> that allow me to inspect a variable of a common type, like:
Tom> - debug_generic_expr
Tom> - debug_gimple_stmt
Tom> - debug_rtx
Tom> and I miss similar function in gdb.

Tom> Add functions to dump variables of types 'value' and 'expression':
Tom> - debug_exp, and
Tom> - debug_val.

Seems fine to me.
Thanks.

Tom


More information about the Gdb-patches mailing list