diff options
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/testsuite/gdb.linespec/break-asm-file0.s | 14 | ||||
-rw-r--r-- | gdb/testsuite/gdb.linespec/break-asm-file1.s | 14 |
3 files changed, 36 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e9a53a6..2d902e3 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,13 @@ 2015-03-26 Yao Qi <yao.qi@linaro.org> + PR testsuite/18139 + * gdb.linespec/break-asm-file0.s (func): New label .Lfunc_2. + Add a line number entry for the same line. + * gdb.linespec/break-asm-file1.s (func): New label .Lfunc_2. + Add a line number entry for the same line. + +2015-03-26 Yao Qi <yao.qi@linaro.org> + * gdb.linespec/break-asm-file0.s (func2): Use nop instead of .int 0. (func): Likewise. Add .Lfunc_1 label. diff --git a/gdb/testsuite/gdb.linespec/break-asm-file0.s b/gdb/testsuite/gdb.linespec/break-asm-file0.s index 42c4213..dbc4398 100644 --- a/gdb/testsuite/gdb.linespec/break-asm-file0.s +++ b/gdb/testsuite/gdb.linespec/break-asm-file0.s @@ -38,6 +38,8 @@ func: nop .Lfunc_1: nop +.Lfunc_2: + nop .Lend_func: .size func, .-func .Lend_text1: @@ -202,6 +204,18 @@ func: .byte 2 .4byte .Lfunc_1 + /* A line number entry for the same line (7) denotes the end */ + /* of prologue. */ + .byte 3 /* DW_LNS_advance_line */ + .sleb128 0 /* ... to 7 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lfunc_2 + .byte 3 /* DW_LNS_advance_line */ .sleb128 1 /* ... to 8 */ diff --git a/gdb/testsuite/gdb.linespec/break-asm-file1.s b/gdb/testsuite/gdb.linespec/break-asm-file1.s index a1e7a42..4372626 100644 --- a/gdb/testsuite/gdb.linespec/break-asm-file1.s +++ b/gdb/testsuite/gdb.linespec/break-asm-file1.s @@ -34,6 +34,8 @@ func: nop .Lfunc_1: nop +.Lfunc_2: + nop .Lend_func: .size func, .-func .Lend_text1: @@ -228,6 +230,18 @@ func: .byte 2 .4byte .Lfunc_1 + /* A line number entry for the same line (7) denotes the end */ + /* of prologue. */ + .byte 3 /* DW_LNS_advance_line */ + .sleb128 0 /* ... to 7 */ + + .byte 1 /* DW_LNS_copy */ + + .byte 0 /* DW_LNE_set_address */ + .uleb128 5 + .byte 2 + .4byte .Lfunc_2 + .byte 3 /* DW_LNS_advance_line */ .sleb128 1 /* ... to 8 */ |