Browse Source
* dwarf2dbg.h (dwarf2_move_insn): Declare. * dwarf2dbg.c (line_subseg): Add pmove_tail. (get_line_subseg): Add create_p argument. Initialize pmove_tail. (dwarf2_gen_line_info_1): Update call accordingly. (dwarf2_move_insn): New function. * config/tc-mips.c (append_insn): Use dwarf2_move_insn. gas/testsuite/ * gas/mips/loc-swap-3.d, gas/mips/loc-swap-3.s: New test. * gas/mips/mips.exp: Run it.binutils-2_24-branch
8 changed files with 87 additions and 19 deletions
@ -0,0 +1,16 @@ |
|||
#PROG: readelf |
|||
#readelf: -wl |
|||
#name: MIPS DWARF-2 location information with branch swapping (3) |
|||
#... |
|||
Line Number Statements: |
|||
.* Set prologue_end to true |
|||
.* Extended opcode 2: set Address to 0x[01] |
|||
.* Copy |
|||
#------------------------------------------------------------------------ |
|||
# There used to be a bogus: |
|||
# Set prologue_end to true |
|||
# here |
|||
#------------------------------------------------------------------------ |
|||
.* Special opcode 6: advance Address by 0 to 0x[01] and Line by 1 to 2 |
|||
.* Advance PC by .* |
|||
.* Extended opcode 1: End of Sequence |
|||
@ -0,0 +1,6 @@ |
|||
.file 1 "test.cpp" |
|||
|
|||
.text |
|||
.loc 1 1 0 prologue_end |
|||
.loc 1 2 0 |
|||
nop |
|||
Loading…
Reference in new issue