aboutsummaryrefslogtreecommitdiff
path: root/gas/dw2gencfi.c
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-06-09 15:12:45 +0000
committerJakub Jelinek <jakub@redhat.com>2009-06-09 15:12:45 +0000
commit1fbfe7852a66c02f029e9020a962ba65edb4c59a (patch)
tree5f3c5b0a2042f21560611983aebef8b6c2c845f9 /gas/dw2gencfi.c
parentc2f09c751bc27ae3c27cbb19ed65678c39b0c565 (diff)
downloadgdb-1fbfe7852a66c02f029e9020a962ba65edb4c59a.zip
gdb-1fbfe7852a66c02f029e9020a962ba65edb4c59a.tar.gz
gdb-1fbfe7852a66c02f029e9020a962ba65edb4c59a.tar.bz2
* dw2gencfi.c (output_cfi_insn): Initialize fragment before rs_cfa
to DW_CFA_advance_loc4. * gas/cfi/cfi-common-7.d: New test. * gas/cfi/cfi-common-7.s: New. * gas/cfi/cfi.exp: Add cfi-common-7 test.
Diffstat (limited to 'gas/dw2gencfi.c')
-rw-r--r--gas/dw2gencfi.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c
index a9b58d4..639362f 100644
--- a/gas/dw2gencfi.c
+++ b/gas/dw2gencfi.c
@@ -1,5 +1,6 @@
/* dw2gencfi.c - Support for generating Dwarf2 CFI information.
- Copyright 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
+ Copyright 2003, 2004, 2005, 2006, 2007, 2008, 2009
+ Free Software Foundation, Inc.
Contributed by Michal Ludvig <mludvig@suse.cz>
This file is part of GAS, the GNU Assembler.
@@ -1001,7 +1002,7 @@ output_cfi_insn (struct cfi_insn_data *insn)
is already allocated to the frag. This comes from the way
that it scans the .eh_frame section looking first for the
.byte DW_CFA_advance_loc4. */
- frag_more (1);
+ *frag_more (1) = DW_CFA_advance_loc4;
frag_var (rs_cfa, 4, 0, DWARF2_LINE_MIN_INSN_LENGTH << 3,
make_expr_symbol (&exp), frag_now_fix () - 1,