diff options
author | Richard Henderson <rth@redhat.com> | 2011-07-25 15:35:13 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2011-07-25 15:35:13 -0700 |
commit | a5d0ce8935bdfa87037b3cbe72e74ab6a96e8109 (patch) | |
tree | ec2ce07bfeadc70b3443c41f8c272027155111cb /gcc/dwarf2cfi.c | |
parent | c344a8663701f069dd5406d0b65c0de4c589ff69 (diff) | |
download | gcc-a5d0ce8935bdfa87037b3cbe72e74ab6a96e8109.tar.gz |
dwarf2cfi: Add debug_cfi_row.
From-SVN: r176771
Diffstat (limited to 'gcc/dwarf2cfi.c')
-rw-r--r-- | gcc/dwarf2cfi.c | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/gcc/dwarf2cfi.c b/gcc/dwarf2cfi.c index 57fe566baf9..1b542780504 100644 --- a/gcc/dwarf2cfi.c +++ b/gcc/dwarf2cfi.c @@ -3314,6 +3314,38 @@ dwarf2out_emit_cfi (dw_cfi_ref cfi) if (dwarf2out_do_cfi_asm ()) output_cfi_directive (asm_out_file, cfi); } + +static void +dump_cfi_row (FILE *f, dw_cfi_row *row) +{ + dw_cfi_ref cfi; + unsigned i; + + cfi = row->cfa_cfi; + if (!cfi) + { + dw_cfa_location dummy; + memset(&dummy, 0, sizeof(dummy)); + dummy.reg = INVALID_REGNUM; + cfi = def_cfa_0 (&dummy, &row->cfa); + } + output_cfi_directive (f, cfi); + + FOR_EACH_VEC_ELT (dw_cfi_ref, row->reg_save, i, cfi) + if (cfi) + output_cfi_directive (f, cfi); + + fprintf (f, "\t.cfi_GNU_args_size "HOST_WIDE_INT_PRINT_DEC "\n", + row->args_size); +} + +void debug_cfi_row (dw_cfi_row *row); + +void +debug_cfi_row (dw_cfi_row *row) +{ + dump_cfi_row (stderr, row); +} /* Save the result of dwarf2out_do_frame across PCH. |