diff options
author | Ken Werner <ken.werner@de.ibm.com> | 2010-10-06 16:13:35 +0000 |
---|---|---|
committer | Ken Werner <ken.werner@de.ibm.com> | 2010-10-06 16:13:35 +0000 |
commit | 2f608a3a9752190066db4996ab855b423033b580 (patch) | |
tree | 40188e72ff610f9cc5a1eeb167481b0eb2ab4309 /gdb/testsuite/gdb.dwarf2 | |
parent | aa2e2d8d772c0ece5b6c4685228c159979841a5d (diff) | |
download | gdb-2f608a3a9752190066db4996ab855b423033b580.zip gdb-2f608a3a9752190066db4996ab855b423033b580.tar.gz gdb-2f608a3a9752190066db4996ab855b423033b580.tar.bz2 |
gdb:
* dwarf2read.c (read_tag_const_type): Handle const arrays.
gdb/testsuite:
* gdb.base/constvars.c (logical, lugged, luck, lunar, lumen, lurk,
lush, lynx) New constant.
* gdb.base/constvars.exp: Test const array types.
* gdb.dwarf2/dw2-strp.exp: Add const qualifier for ptype tests.
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-strp.exp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-strp.exp b/gdb/testsuite/gdb.dwarf2/dw2-strp.exp index 3895204..536f773 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-strp.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-strp.exp @@ -49,7 +49,7 @@ gdb_reinitialize_dir $srcdir/$subdir gdb_load ${binfile} gdb_test "p a_string" " = \"hello world!\\\\n\"" -gdb_test "ptype a_string" "type = char \\\[14\\\]" +gdb_test "ptype a_string" "type = const char \\\[14\\\]" gdb_test "p a_string2" " = \"hello world2\\\\n\"" -gdb_test "ptype a_string2" "type = char \\\[14\\\]" +gdb_test "ptype a_string2" "type = const char \\\[14\\\]" |