aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.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-inline-small-func.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-inline-small-func.exp')
-rw-r--r--gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp34
1 files changed, 17 insertions, 17 deletions
diff --git a/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp b/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp
index c480422..05286ad 100644
--- a/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp
+++ b/gdb/testsuite/gdb.dwarf2/dw2-inline-small-func.exp
@@ -94,28 +94,28 @@ Dwarf::assemble $asm_file {
set f2_l1 [gdb_get_line_number "callee: body" $srcfile4]
program {
- {DW_LNE_set_address line_label_1}
- {line $f1_l1}
- {DW_LNS_copy}
+ DW_LNE_set_address line_label_1
+ line $f1_l1
+ DW_LNS_copy
- {line ${f1_l2}}
- {DW_LNS_copy}
+ line ${f1_l2}
+ DW_LNS_copy
- {DW_LNS_set_file 2}
- {line ${f2_l1}}
- {DW_LNS_copy}
+ DW_LNS_set_file 2
+ line ${f2_l1}
+ DW_LNS_copy
- {DW_LNS_negate_stmt}
- {DW_LNS_copy}
+ DW_LNS_negate_stmt
+ DW_LNS_copy
- {DW_LNS_set_file 1}
- {DW_LNE_set_address line_label_2}
- {line ${f1_l3}}
- {DW_LNS_copy}
+ DW_LNS_set_file 1
+ DW_LNE_set_address line_label_2
+ line ${f1_l3}
+ DW_LNS_copy
- {DW_LNE_set_address line_label_3}
- {DW_LNS_copy}
- {DW_LNE_end_sequence}
+ DW_LNE_set_address line_label_3
+ DW_LNS_copy
+ DW_LNE_end_sequence
}
}
}