aboutsummaryrefslogtreecommitdiff
path: root/gas/testsuite
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2008-01-09 17:30:59 +0000
committerBob Wilson <bob.wilson@acm.org>2008-01-09 17:30:59 +0000
commit7ddd14deffa8d2579c691bb8f19585fb2e7b5de3 (patch)
treef69cd2e1c9990d8a85958bd82e6a13169f66e9d6 /gas/testsuite
parent39d5313e31d72b291493315a2b7b0d98341cf14b (diff)
downloadgdb-7ddd14deffa8d2579c691bb8f19585fb2e7b5de3.zip
gdb-7ddd14deffa8d2579c691bb8f19585fb2e7b5de3.tar.gz
gdb-7ddd14deffa8d2579c691bb8f19585fb2e7b5de3.tar.bz2
gas/
* dwarf2dbg.c (out_sleb128): Delete. (size_fixed_inc_line_addr, emit_fixed_inc_line_addr): New. (out_fixed_inc_line_addr): Delete. (relax_inc_line_addr, dwarf2dbg_estimate_size_before_relax): Call new size_fixed_inc_line_addr if DWARF2_USE_FIXED_ADVANCE_PC is set. (dwarf2dbg_convert_frag): Likewise for emit_fixed_inc_line_addr. (process_entries): Remove calls to out_fixed_inc_line_addr. When DWARF2_USE_FIXED_ADVANCE_PC is set, call relax_inc_line_addr. * read.h (emit_expr_fix): New prototype. * read.c (emit_expr): Move code to emit_expr_fix and use it here. (emit_expr_fix): New. testsuite/ * gas/lns/lns.exp: Run new lns-big-delta test for targets that set DWARF2_USE_FIXED_ADVANCE_PC. * gas/lns/lns-big-delta.s: New. * gas/lns/lns-big-delta.d: New.
Diffstat (limited to 'gas/testsuite')
-rw-r--r--gas/testsuite/ChangeLog7
-rw-r--r--gas/testsuite/gas/lns/lns-big-delta.d14
-rw-r--r--gas/testsuite/gas/lns/lns-big-delta.s5
-rw-r--r--gas/testsuite/gas/lns/lns.exp1
4 files changed, 27 insertions, 0 deletions
diff --git a/gas/testsuite/ChangeLog b/gas/testsuite/ChangeLog
index cedaa25..fb0aa85 100644
--- a/gas/testsuite/ChangeLog
+++ b/gas/testsuite/ChangeLog
@@ -1,3 +1,10 @@
+2008-01-09 Bob Wilson <bob.wilson@acm.org>
+
+ * gas/lns/lns.exp: Run new lns-big-delta test for targets that set
+ DWARF2_USE_FIXED_ADVANCE_PC.
+ * gas/lns/lns-big-delta.s: New.
+ * gas/lns/lns-big-delta.d: New.
+
2008-01-08 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
PR gas/5322
diff --git a/gas/testsuite/gas/lns/lns-big-delta.d b/gas/testsuite/gas/lns/lns-big-delta.d
new file mode 100644
index 0000000..6190138
--- /dev/null
+++ b/gas/testsuite/gas/lns/lns-big-delta.d
@@ -0,0 +1,14 @@
+#source: lns-big-delta.s
+#readelf: -wl
+#name: lns-big-delta
+Dump of debug contents of section \.debug_line:
+#...
+ Line Number Statements:
+ Extended opcode 2: set Address to .*
+ Copy
+ Advance Line by 1 to 2
+ Extended opcode 2: set Address to .*
+ Copy
+ Advance PC by fixed size amount 0 to .*
+ Extended opcode 1: End of Sequence
+#pass
diff --git a/gas/testsuite/gas/lns/lns-big-delta.s b/gas/testsuite/gas/lns/lns-big-delta.s
new file mode 100644
index 0000000..a959748
--- /dev/null
+++ b/gas/testsuite/gas/lns/lns-big-delta.s
@@ -0,0 +1,5 @@
+ .file 1 "foo.c"
+ .loc 1 1 0
+ .loc 1 2 0
+ .space 75000
+ .loc 1 3 0
diff --git a/gas/testsuite/gas/lns/lns.exp b/gas/testsuite/gas/lns/lns.exp
index b292f2e..e3f176f 100644
--- a/gas/testsuite/gas/lns/lns.exp
+++ b/gas/testsuite/gas/lns/lns.exp
@@ -22,6 +22,7 @@ if {
# Use alternate file for targets using DW_LNS_fixed_advance_pc opcodes.
if { [istarget xtensa-*-*] } {
run_dump_test "lns-common-1-alt"
+ run_dump_test "lns-big-delta"
} elseif { [istarget ia64*-*-*] } {
run_dump_test "lns-common-1" { { source "lns-common-1-ia64.s" } }
} else {