[PATCH 2/2] gdb: fix debug dump of OP_BOOL expressions

Tom Tromey tom@tromey.com
Mon Jan 11 21:13:56 GMT 2021


>>>>> "Andrew" == Andrew Burgess <andrew.burgess@embecosm.com> writes:

Andrew> gdb/ChangeLog:

Andrew> 	* expprint.c (dump_subexp_body_standard): Handle OP_BOOL.

Thanks.

Of course I am hoping to delete all of this :)
FWIW the rewrite handles this dumping already:

    (gdb) print .TRUE.
    Operation: OP_BOOL
     Address: 0x0000000000000001
    $1 = .TRUE.

Though it does print "Address" where maybe it should just say "Integer"
or something along those lines.

Andrew> +gdb_test_debug_expr "print .TRUE."  [ multi_line \
Andrew> +					  "" \
Andrew> +					  "\\s+0\\s+OP_BOOL\\s+TRUE" \
Andrew> +					  "\\\$$decimal = \.TRUE\." ]

Classic Tcl style doesn't put a space after '[' or before ']'

Tom


More information about the Gdb-patches mailing list