aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2022-04-06 21:51:55 -0400
committerSimon Marchi <simon.marchi@polymtl.ca>2022-04-07 13:09:45 -0400
commitd4c4a2298cad06ca71cfef725f5248f68205f0be (patch)
tree73195da3d8eb856226a00c7689c152a8e272b4fc /gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp
parentae584138166aa9fd66af0493ffffd2642b5edfe9 (diff)
downloadgdb-d4c4a2298cad06ca71cfef725f5248f68205f0be.zip
gdb-d4c4a2298cad06ca71cfef725f5248f68205f0be.tar.gz
gdb-d4c4a2298cad06ca71cfef725f5248f68205f0be.tar.bz2
gdb/testsuite/dwarf: simplify line number program syntax
By calling `uplevel $body` in the program proc (a pattern we use at many places), we can get rid of curly braces around each line number program directive. That seems like a nice small improvement to me. Change-Id: Ib327edcbffbd4c23a08614adee56c12ea25ebc0b
Diffstat (limited to 'gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp156
1 files changed, 78 insertions, 78 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp b/gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp
index 3ec9f80..239f5f1 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-is-stmt-2.exp
@@ -68,84 +68,84 @@ Dwarf::assemble $asm_file {
file_name "$srcfile" 1
program {
- {DW_LNE_set_address main}
- {line [gdb_get_line_number "main prologue"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_0}
- {line [gdb_get_line_number "main start"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_1}
- {line [gdb_get_line_number "Line 1"]}
- {DW_LNS_negate_stmt}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_2}
- {DW_LNS_negate_stmt}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_3}
- {line [gdb_get_line_number "Line 2"]}
- {DW_LNS_negate_stmt}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_4}
- {line [gdb_get_line_number "Line 1"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_5}
- {line [gdb_get_line_number "Line 3"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_6}
- {line [gdb_get_line_number "Line 4"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_7}
- {DW_LNS_negate_stmt}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_8}
- {line [gdb_get_line_number "Line 2"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_9}
- {DW_LNS_negate_stmt}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_10}
- {line [gdb_get_line_number "Line 3"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_11}
- {line [gdb_get_line_number "Line 5"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_12}
- {DW_LNS_negate_stmt}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_13}
- {line [gdb_get_line_number "Line 3"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_14}
- {line [gdb_get_line_number "Line 4"]}
- {DW_LNS_negate_stmt}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_15}
- {line [gdb_get_line_number "Line 5"]}
- {DW_LNS_copy}
-
- {DW_LNE_set_address line_label_16}
- {line [gdb_get_line_number "main end"]}
- {DW_LNS_negate_stmt}
- {DW_LNS_copy}
-
- {DW_LNE_set_address ${main_end}}
- {DW_LNE_end_sequence}
+ DW_LNE_set_address main
+ line [gdb_get_line_number "main prologue"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_0
+ line [gdb_get_line_number "main start"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_1
+ line [gdb_get_line_number "Line 1"]
+ DW_LNS_negate_stmt
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_2
+ DW_LNS_negate_stmt
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_3
+ line [gdb_get_line_number "Line 2"]
+ DW_LNS_negate_stmt
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_4
+ line [gdb_get_line_number "Line 1"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_5
+ line [gdb_get_line_number "Line 3"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_6
+ line [gdb_get_line_number "Line 4"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_7
+ DW_LNS_negate_stmt
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_8
+ line [gdb_get_line_number "Line 2"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_9
+ DW_LNS_negate_stmt
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_10
+ line [gdb_get_line_number "Line 3"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_11
+ line [gdb_get_line_number "Line 5"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_12
+ DW_LNS_negate_stmt
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_13
+ line [gdb_get_line_number "Line 3"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_14
+ line [gdb_get_line_number "Line 4"]
+ DW_LNS_negate_stmt
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_15
+ line [gdb_get_line_number "Line 5"]
+ DW_LNS_copy
+
+ DW_LNE_set_address line_label_16
+ line [gdb_get_line_number "main end"]
+ DW_LNS_negate_stmt
+ DW_LNS_copy
+
+ DW_LNE_set_address ${main_end}
+ DW_LNE_end_sequence
}
}
}