diff options
author | Cary Coutant <ccoutant@google.com> | 2009-04-24 18:31:29 +0000 |
---|---|---|
committer | Cary Coutant <ccoutant@google.com> | 2009-04-24 18:31:29 +0000 |
commit | 92846e72ad2df2adc38e1e1db776576cf74db2df (patch) | |
tree | 53ac243cf1b6acb686048e2becb57aa5c1bd9db1 /gas/testsuite | |
parent | ed4a4bdfe47b205396b0e375dc9ddd560c8db00e (diff) | |
download | gdb-92846e72ad2df2adc38e1e1db776576cf74db2df.zip gdb-92846e72ad2df2adc38e1e1db776576cf74db2df.tar.gz gdb-92846e72ad2df2adc38e1e1db776576cf74db2df.tar.bz2 |
* NEWS: Add item about discriminator support.
* dwarf2dbg.h (struct dwarf2_line_info): Add discriminator field.
* dwarf2dbg.c (current): Add discriminator field.
(dwarf2_where): Copy discriminator value.
(dwarf2_consume_line_info): Set discriminator to 0.
(dwarf2_directive_loc): Process discriminator sub-op.
(out_leb128): New function.
(process_entries): Output DW_LNE_set_discriminator.
* doc/as.texinfo: Add discriminator operand to .loc directive.
* testsuite/gas/lns/lns-common-1.d: Add test for discriminator.
* testsuite/gas/lns/lns-common-1.s: Likewise.
Diffstat (limited to 'gas/testsuite')
-rw-r--r-- | gas/testsuite/gas/lns/lns-common-1.d | 2 | ||||
-rw-r--r-- | gas/testsuite/gas/lns/lns-common-1.s | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/gas/testsuite/gas/lns/lns-common-1.d b/gas/testsuite/gas/lns/lns-common-1.d index 81b4e9f..e28896f 100644 --- a/gas/testsuite/gas/lns/lns-common-1.d +++ b/gas/testsuite/gas/lns/lns-common-1.d @@ -21,6 +21,8 @@ Raw dump of debug contents of section \.debug_line: Special opcode .*: advance Address by .* to .* and Line by 1 to 6 Set is_stmt to 1 Special opcode .*: advance Address by .* to .* and Line by 1 to 7 + Extended opcode 4: set Discriminator to 1 + Special opcode .*: advance Address by .* to .* and Line by 0 to 7 Advance PC by .* to .* Extended opcode 1: End of Sequence #... diff --git a/gas/testsuite/gas/lns/lns-common-1.s b/gas/testsuite/gas/lns/lns-common-1.s index f1d590b..2fef2bd 100644 --- a/gas/testsuite/gas/lns/lns-common-1.s +++ b/gas/testsuite/gas/lns/lns-common-1.s @@ -13,3 +13,5 @@ nop .loc 1 7 is_stmt 1 nop + .loc 1 7 discriminator 1 + nop |