mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-15 23:18:03 +00:00
A single-file branch to help me keep things straight while adapting
GDB to the GNU V3 C++ ABI. * c-typeprint.c: Commit Dan Berlin's changes.
This commit is contained in:
parent
64c4637f92
commit
9e40428556
@ -35,6 +35,7 @@
|
||||
#include "demangle.h"
|
||||
#include "c-lang.h"
|
||||
#include "typeprint.h"
|
||||
#include "cp-abi.h"
|
||||
|
||||
#include "gdb_string.h"
|
||||
#include <errno.h>
|
||||
@ -902,11 +903,10 @@ c_type_print_base (struct type *type, struct ui_file *stream, int show,
|
||||
{
|
||||
char *physname = TYPE_FN_FIELD_PHYSNAME (f, j);
|
||||
int is_full_physname_constructor =
|
||||
((physname[0] == '_' && physname[1] == '_'
|
||||
&& strchr ("0123456789Qt", physname[2]))
|
||||
|| STREQN (physname, "__ct__", 6)
|
||||
|| DESTRUCTOR_PREFIX_P (physname)
|
||||
|| STREQN (physname, "__dt__", 6));
|
||||
is_constructor_name (physname)
|
||||
|| is_destructor_name (physname)
|
||||
|| method_name[0] == '~';
|
||||
|
||||
|
||||
QUIT;
|
||||
if (TYPE_FN_FIELD_PROTECTED (f, j))
|
||||
|
Loading…
x
Reference in New Issue
Block a user