aboutsummaryrefslogtreecommitdiff
path: root/gas/dw2gencfi.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2004-05-13 14:41:18 +0000
committerNick Clifton <nickc@redhat.com>2004-05-13 14:41:18 +0000
commit0da76f83eb29135ae1bd52ba5962721fb1d0c6fc (patch)
tree216775d9b34d02cfc91fa714163ab9703a49577f /gas/dw2gencfi.c
parent4b363073298671c9a2a096d2ba70dd7586315c4c (diff)
downloadgdb-0da76f83eb29135ae1bd52ba5962721fb1d0c6fc.zip
gdb-0da76f83eb29135ae1bd52ba5962721fb1d0c6fc.tar.gz
gdb-0da76f83eb29135ae1bd52ba5962721fb1d0c6fc.tar.bz2
Handle dwarf3 format CIE entries.
Diffstat (limited to 'gas/dw2gencfi.c')
-rw-r--r--gas/dw2gencfi.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gas/dw2gencfi.c b/gas/dw2gencfi.c
index ff0aa35..05d7e3d 100644
--- a/gas/dw2gencfi.c
+++ b/gas/dw2gencfi.c
@@ -845,7 +845,10 @@ output_cie (struct cie_entry *cie)
out_one (0);
out_uleb128 (DWARF2_LINE_MIN_INSN_LENGTH); /* Code alignment */
out_sleb128 (DWARF2_CIE_DATA_ALIGNMENT); /* Data alignment */
- out_one (cie->return_column); /* Return column */
+ if (DW_CIE_VERSION == 1) /* Return column. */
+ out_one (cie->return_column);
+ else
+ out_uleb128 (cie->return_column);
out_uleb128 (1); /* Augmentation size */
#if defined DIFF_EXPR_OK || defined tc_cfi_emit_pcrel_expr
out_one (DW_EH_PE_pcrel | DW_EH_PE_sdata4);