diff options
author | Tom Tromey <tromey@redhat.com> | 2012-11-12 17:37:38 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2012-11-12 17:37:38 +0000 |
commit | bd69fc683f383772bb8fab43c5d4af8d0cd4a8b4 (patch) | |
tree | 9749d8fbee083798c2657964bd816fd1795a6300 /gdb/testsuite/gdb.mi/mi-var-display.exp | |
parent | 2621e0fd5c40e316dfac2a492972a1344c6a0583 (diff) | |
download | gdb-bd69fc683f383772bb8fab43c5d4af8d0cd4a8b4.zip gdb-bd69fc683f383772bb8fab43c5d4af8d0cd4a8b4.tar.gz gdb-bd69fc683f383772bb8fab43c5d4af8d0cd4a8b4.tar.bz2 |
* c-typeprint.c (find_typedef_for_canonicalize,
print_name_maybe_canonical): New functions.
(c_print_type): Look up type name.
(cp_type_print_derivation_info): Add flags argument. Use
print_name_maybe_canonical.
(cp_type_print_method_args): Add wrapping.
(c_type_print_varspec_prefix): Use print_name_maybe_canonical.
(c_type_print_template_args): New function.
(c_type_print_base): Change wrapping. Use
print_name_maybe_canonical.
<TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
type name lookups.
* gdbtypes.c (types_equal): No longer static.
* gdbtypes.h (types_equal): Declare.
* typeprint.c (type_print_raw_options, default_ptype_flags):
Update.
(struct typedef_hash_table): New.
(hash_typedef_field, eq_typedef_field,
recursively_update_typedef_hash, add_template_parameters,
create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
make_cleanup_free_typedef_hash, copy_typedef_hash_element,
copy_typedef_hash, find_typedef_in_hash): New functions.
* typeprint.h (struct type_print_options) <local_typedefs>:
New field.
(recursively_update_typedef_hash, add_template_parameters,
create_typedef_hash, free_typedef_hash,
make_cleanup_free_typedef_hash, copy_typedef_hash,
find_typedef_in_hash): Declare.
testsuite
* gdb.base/call-sc.exp: Use "ptype/r".
* gdb.base/volatile.exp: Don't expect "int".
* gdb.cp/ptype-flags.cc: New file.
* gdb.cp/ptype-flags.exp: New file.
* gdb.cp/templates.exp: Use ptype/r.
(test_ptype_of_templates, test_template_typedef): Likewise.
* lib/cp-support.exp (cp_test_ptype_class): Add in_ptype_arg
argument. Handle template names and template parameters.
* gdb.mi/mi-var-cmd.exp: Accept "long".
* gdb.mi/mi-var-child.exp: Accept "long".
* gdb.mi/mi-var-display.exp: Accept "long".
* gdb.mi/mi2-var-child.exp: Accept "long".
Diffstat (limited to 'gdb/testsuite/gdb.mi/mi-var-display.exp')
-rw-r--r-- | gdb/testsuite/gdb.mi/mi-var-display.exp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.mi/mi-var-display.exp b/gdb/testsuite/gdb.mi/mi-var-display.exp index 5cb5f26..251f948 100644 --- a/gdb/testsuite/gdb.mi/mi-var-display.exp +++ b/gdb/testsuite/gdb.mi/mi-var-display.exp @@ -215,14 +215,14 @@ mi_list_varobj_children weird { {weird.integer integer 0 int} {weird.character character 0 char} {weird.char_ptr char_ptr 1 "char \\*"} - {weird.long_int long_int 0 "long int"} + {weird.long_int long_int 0 "long"} {weird.int_ptr_ptr int_ptr_ptr 1 "int \\*\\*"} - {weird.long_array long_array 10 "long int \\[10\\]"} + {weird.long_array long_array 10 "long \\[10\\]"} {weird.func_ptr func_ptr 0 "void \\(\\*\\)\\((void)?\\)"} {weird.func_ptr_struct func_ptr_struct 0 \ - "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long int\\))?"} + "struct _struct_decl \\(\\*\\)(\\(int, char \\*, long\\))?"} {weird.func_ptr_ptr func_ptr_ptr 0 \ - "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long int)?\\)"} + "struct _struct_decl \\*\\(\\*\\)\\((int, char \\*, long)?\\)"} {weird.u1 u1 4 "union \\{\\.\\.\\.\\}"} {weird.s2 s2 4 "struct \\{\\.\\.\\.\\}"} } "get children local variable weird" @@ -443,7 +443,7 @@ mi_gdb_test "-var-info-num-children anonu" \ mi_list_varobj_children "anonu" { {anonu.a a 0 int} {anonu.b b 0 char} - {anonu.c c 0 "long int"} + {anonu.c c 0 "long"} } "get children of anonu" # Test: c_variable-7.30 @@ -520,7 +520,7 @@ mi_gdb_test "-var-info-num-children anons" \ mi_list_varobj_children anons { {anons.a a 0 int} {anons.b b 0 char} - {anons.c c 0 "long int"} + {anons.c c 0 "long"} } "get children of anons" # Test: c_variable-7.50 |