diff options
author | Keith Seitz <keiths@redhat.com> | 2012-08-19 19:37:49 +0000 |
---|---|---|
committer | Keith Seitz <keiths@redhat.com> | 2012-08-19 19:37:49 +0000 |
commit | 66ac5d0d1d3d21be2443a6b161af69e76971b926 (patch) | |
tree | 9c179485e7c16300764ca7326464685035b6e006 /gdb/c-typeprint.c | |
parent | 79853a679f4784db99d3528fbf98886da4073b86 (diff) | |
download | gdb-66ac5d0d1d3d21be2443a6b161af69e76971b926.tar.gz |
PR c++/14365
* c-typeprint.c (c_type_print_varspec_prefix): Pass
-1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
* gdb.dwarf2/dw2-anon-mptr.exp: New file.
* gdb.dwarf2/dw2-anon-mptr.S: New file.
Diffstat (limited to 'gdb/c-typeprint.c')
-rw-r--r-- | gdb/c-typeprint.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/c-typeprint.c b/gdb/c-typeprint.c index 29b27e9a880..c2a775ac73f 100644 --- a/gdb/c-typeprint.c +++ b/gdb/c-typeprint.c @@ -265,7 +265,7 @@ c_type_print_varspec_prefix (struct type *type, fputs_filtered (name, stream); else c_type_print_base (TYPE_DOMAIN_TYPE (type), - stream, 0, passed_a_ptr); + stream, -1, passed_a_ptr); fprintf_filtered (stream, "::*"); break; @@ -278,7 +278,7 @@ c_type_print_varspec_prefix (struct type *type, fputs_filtered (name, stream); else c_type_print_base (TYPE_DOMAIN_TYPE (type), - stream, 0, passed_a_ptr); + stream, -1, passed_a_ptr); fprintf_filtered (stream, "::*"); break; |