aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-canonicalize-type.S3
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-case-insensitive.c9
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-empty-pc-range.S2
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-stack-boundary.exp2
-rw-r--r--gdb/testsuite/gdb.dwarf2/pr11465.S8
5 files changed, 18 insertions, 6 deletions
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 */