[3/3] RFC: tag name completion

Tom Tromey tromey@redhat.com
Mon Dec 10 15:08:00 GMT 2012


>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:

Pedro> I'm not that much familiar with this part of the code.  I'm just
Pedro> wondering about struct vs class.  GDB treats both mostly
Pedro> interchangeably, e.g., with "struct ABC {};", ptype "class ABC"
Pedro> will find and print the struct.  Would "class A<tab>" still
Pedro> complete to "class ABC" with this patch?

It will work because:

#define TYPE_CODE_CLASS TYPE_CODE_STRUCT

I think we should probably just drop this and always use TYPE_CODE_STRUCT.

Tom



More information about the Gdb-patches mailing list