This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [3/3] RFC: tag name completion
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 10 Dec 2012 08:08:31 -0700
- Subject: Re: [3/3] RFC: tag name completion
- References: <87obiqlrv7.fsf@fleche.redhat.com> <50C269D3.10306@redhat.com>
>>>>> "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