diff options
-rw-r--r-- | gdb/testsuite/ChangeLog | 12 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp | 6 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/nsalias.exp | 12 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S | 3 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c | 9 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp | 2 | ||||
-rw-r--r-- | gdb/testsuite/gdb.dwarf2/pr11465.S | 8 |
8 files changed, 39 insertions, 15 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 17b0146..f1584e0 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,15 @@ +2014-12-04 Maciej W. Rozycki <macro@codesourcery.com> + + * gdb.cp/expand-psymtabs-cxx.exp: Accept any address of + `method(long)', not just 0x0. + * gdb.cp/nsalias.exp: Align code labels to 4. + * gdb.dwarf2/dw2-canonicalize-type.S (main): Expand to 4-bytes. + * gdb.dwarf2/dw2-empty-pc-range.S (main): Likewise. + * gdb.dwarf2/pr11465.S (_ZN1N1cE): Likewise. + * gdb.dwarf2/dw2-case-insensitive.c (START_INSNS): New macro. + (cu_text_start, FUNC_lang_start): Use `START_INSNS'. + * gdb.dwarf2/dw2-stack-boundary.exp: Accept noise in complaints. + 2014-12-02 Doug Evans <dje@google.com> PR symtab/17602 diff --git a/gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp b/gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp index d85b4de..6b52a00 100644 --- a/gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp +++ b/gdb/testsuite/gdb.cp/expand-psymtabs-cxx.exp @@ -30,9 +30,9 @@ gdb_test_no_output "set language c++" # FAIL was: # $1 = {<text variable, no debug info>} 0 -gdb_test "p 'method(long)'" { = {void \(long\)} 0x0 <method.long.>} \ +gdb_test "p 'method(long)'" " = {void \\(long\\)} $hex <method.long.>" \ "before expand" -gdb_test "p method" { = {void \(long\)} 0x0 <method.long.>} \ +gdb_test "p method" " = {void \\(long\\)} $hex <method.long.>" \ "force expand" -gdb_test "p 'method(long)'" { = {void \(long\)} 0x0 <method.long.>} \ +gdb_test "p 'method(long)'" " = {void \\(long\\)} $hex <method.long.>" \ "after expand" diff --git a/gdb/testsuite/gdb.cp/nsalias.exp b/gdb/testsuite/gdb.cp/nsalias.exp index d46c302..bd7f8ed 100644 --- a/gdb/testsuite/gdb.cp/nsalias.exp +++ b/gdb/testsuite/gdb.cp/nsalias.exp @@ -153,20 +153,20 @@ Dwarf::assemble $asm_file { subprogram { {specification :$im_foo_label} - {low_pc 0x1 DW_FORM_addr} - {high_pc 0x2 DW_FORM_addr} + {low_pc 0x4 DW_FORM_addr} + {high_pc 0x7 DW_FORM_addr} } subprogram { {specification :$i_foo_label} - {low_pc 0x3 DW_FORM_addr} - {high_pc 0x4 DW_FORM_addr} + {low_pc 0x8 DW_FORM_addr} + {high_pc 0xb DW_FORM_addr} } subprogram { {specification :$o_foo_label} - {low_pc 0x5 DW_FORM_addr} - {high_pc 0x6 DW_FORM_addr} + {low_pc 0xc DW_FORM_addr} + {high_pc 0xf DW_FORM_addr} } } } diff --git a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S index 302ef20..14c1034 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S @@ -15,7 +15,8 @@ .text .globl main -main: .byte 0 +main: + .4byte 0 .Lmain_end: .section .debug_info debug_start: diff --git a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c index 9ec7b25..009f60b 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c +++ b/gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c @@ -15,13 +15,22 @@ You should have received a copy of the GNU General Public License along with this program. If not, see <http://www.gnu.org/licenses/>. */ +/* Target-specific way of forcing an instruction label. */ +#ifdef __mips__ +#define START_INSNS asm (".insn"); +#else +#define START_INSNS +#endif + /* Use DW_LANG_Fortran90 for case insensitive DWARF. */ asm (".globl cu_text_start"); asm ("cu_text_start:"); +START_INSNS asm (".globl FUNC_lang_start"); asm (".p2align 4"); asm ("FUNC_lang_start:"); +START_INSNS void FUNC_lang (void) diff --git a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S index 7409893..08987ac 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S +++ b/gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S @@ -15,7 +15,7 @@ .text pc_start: - .byte 0 + .4byte 0 pc_end: .section .debug_info diff --git a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp index ac8cbab..12c6691 100644 --- a/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp +++ b/gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp @@ -38,7 +38,7 @@ if [is_remote host] { } } gdb_test_no_output "set complaints 100" -gdb_test "file $binfile" {Reading symbols from .*\.\.\.location description stack underflow\.\.\.location description stack overflow\.\.\.done\.} "check partial symtab errors" +gdb_test "file $binfile" {Reading symbols from .*\.\.\.location description stack underflow\.\.\.location description stack overflow\.\.\..*done\.} "check partial symtab errors" gdb_test "p underflow" {Asked for position 0 of stack, stack only has 0 elements on it\.} gdb_test "p overflow" " = 2" diff --git a/gdb/testsuite/gdb.dwarf2/pr11465.S b/gdb/testsuite/gdb.dwarf2/pr11465.S index 45a0a71..72cebb0 100644 --- a/gdb/testsuite/gdb.dwarf2/pr11465.S +++ b/gdb/testsuite/gdb.dwarf2/pr11465.S @@ -39,7 +39,7 @@ text_start: _ZN1N1cE: /* Valid function must have non-empty PC range. */ - .byte 0 + .4byte 0 text_end: .section .debug_info @@ -117,7 +117,8 @@ dieaf: .uleb128 0xe /* DW_TAG_const_type */ dieb4: .uleb128 0xf /* DW_TAG_subprogram */ .4byte die95-d /* DW_AT_abstract_origin */ .4byte _ZN1N1cE /* DW_AT_low_pc */ - .4byte _ZN1N1cE + 1 /* DW_AT_high_pc */ + .4byte _ZN1N1cE + (text_end - text_start) + /* DW_AT_high_pc */ diec9: .uleb128 0x10 /* DW_TAG_subprogram */ .4byte die9f-d /* DW_AT_abstract_origin */ .byte 2f-1f /* DW_AT_location */ @@ -136,7 +137,8 @@ dieda: .uleb128 0x11 /* DW_TAG_subprogram */ .4byte .LASF8 /* DW_AT_name */ .4byte dief2-d /* DW_AT_type */ .4byte _ZN1N1cE /* DW_AT_low_pc */ - .4byte _ZN1N1cE + 1 /* DW_AT_high_pc */ + .4byte _ZN1N1cE + (text_end - text_start) + /* DW_AT_high_pc */ dief2: .uleb128 0x12 /* DW_TAG_base_type */ .byte 0x4 /* DW_AT_byte_size */ .byte 0x5 /* DW_AT_encoding */ |