[PATCH 1/2] gdb: add type::code / type::set_code

Tom Tromey tom@tromey.com
Tue May 12 20:35:25 GMT 2020


>>>>> "Simon" == Simon Marchi via Gdb-patches <gdb-patches@sourceware.org> writes:

Simon> Add the code and set_code methods on code, in order to remove the
Simon> TYPE_CODE macro.  In this patch, the TYPE_CODE macro is changed to use
Simon> type::code, so all the call sites that are used to set the type code are
Simon> changed to use type::set_code.  The next patch will remove TYPE_CODE
Simon> completely.

Looks good.  I wonder if a future patch could set the code at
construction and get rid of set_code.

Tom


More information about the Gdb-patches mailing list