This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
(gdb) help set enum-fmt Set enum display format. Allows a printf-style format string to be specified to control the display of enum values. The string will be printed verbatim when enum values are displayed except that: %v directives will be expanded to the numeric value of the enum, %s directives will be expanded to the symbolic value of the enum, and %t directives will be expanded to the enum tag. The default format is equivalent to "%s" and the default will be used if no argument is provided to the set operation. (gdb)
$1 = Val1 $2 = Val1=(enum E)56 $3 = Val2=(enum E)57 $4 = Val1 = (enum E)56 $5 = Val2 = (enum E)57 $6 = 56 "Val1" $7 = 57 "Val2"
Attachment:
pr11067.patch
Description: Text document
Attachment:
pr11067-check.diff
Description: Text document
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |