diff options
author | Jakub Jelinek <jakub@redhat.com> | 2006-03-03 18:29:40 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2006-03-03 18:29:40 +0000 |
commit | 12eae2d34f7ae4315f788d90a288f6c2ac286279 (patch) | |
tree | 0d14447dd5ae396e786fbda642105984a6ffc40c /binutils/dwarf.c | |
parent | c7d41dc5a0b485f667749ea4f2285397b85273cf (diff) | |
download | gdb-12eae2d34f7ae4315f788d90a288f6c2ac286279.zip gdb-12eae2d34f7ae4315f788d90a288f6c2ac286279.tar.gz gdb-12eae2d34f7ae4315f788d90a288f6c2ac286279.tar.bz2 |
* dwarf.c (frame_display_row, display_debug_frames): Handle
DW_CFA_val_offset, DW_CFA_val_offset_sf and DW_CFA_val_expression.
Diffstat (limited to 'binutils/dwarf.c')
-rw-r--r-- | binutils/dwarf.c | 45 |
1 files changed, 44 insertions, 1 deletions
diff --git a/binutils/dwarf.c b/binutils/dwarf.c index b47a5bb..0042264 100644 --- a/binutils/dwarf.c +++ b/binutils/dwarf.c @@ -1,5 +1,5 @@ /* dwarf.c -- display DWARF contents of a BFD binary file - Copyright 2005 + Copyright 2005, 2006 Free Software Foundation, Inc. This file is part of GNU Binutils. @@ -2904,12 +2904,18 @@ frame_display_row (Frame_Chunk *fc, int *need_col_headers, int *max_regs) case DW_CFA_offset: sprintf (tmp, "c%+d", fc->col_offset[r]); break; + case DW_CFA_val_offset: + sprintf (tmp, "v%+d", fc->col_offset[r]); + break; case DW_CFA_register: sprintf (tmp, "r%d", fc->col_offset[r]); break; case DW_CFA_expression: strcpy (tmp, "exp"); break; + case DW_CFA_val_expression: + strcpy (tmp, "vexp"); + break; default: strcpy (tmp, "n/a"); break; @@ -3252,6 +3258,7 @@ display_debug_frames (struct dwarf_section *section, start += 4; break; case DW_CFA_offset_extended: + case DW_CFA_val_offset: reg = LEB (); LEB (); frame_need_space (fc, reg); fc->col_type[reg] = DW_CFA_undefined; @@ -3290,6 +3297,7 @@ display_debug_frames (struct dwarf_section *section, start += tmp; break; case DW_CFA_expression: + case DW_CFA_val_expression: reg = LEB (); tmp = LEB (); start += tmp; @@ -3297,6 +3305,7 @@ display_debug_frames (struct dwarf_section *section, fc->col_type[reg] = DW_CFA_undefined; break; case DW_CFA_offset_extended_sf: + case DW_CFA_val_offset_sf: reg = LEB (); SLEB (); frame_need_space (fc, reg); fc->col_type[reg] = DW_CFA_undefined; @@ -3426,6 +3435,16 @@ display_debug_frames (struct dwarf_section *section, fc->col_offset[reg] = roffs * fc->data_factor; break; + case DW_CFA_val_offset: + reg = LEB (); + roffs = LEB (); + if (! do_debug_frames_interp) + printf (" DW_CFA_val_offset: r%ld at cfa%+ld\n", + reg, roffs * fc->data_factor); + fc->col_type[reg] = DW_CFA_val_offset; + fc->col_offset[reg] = roffs * fc->data_factor; + break; + case DW_CFA_restore_extended: reg = LEB (); if (! do_debug_frames_interp) @@ -3543,6 +3562,19 @@ display_debug_frames (struct dwarf_section *section, start += ul; break; + case DW_CFA_val_expression: + reg = LEB (); + ul = LEB (); + if (! do_debug_frames_interp) + { + printf (" DW_CFA_val_expression: r%ld (", reg); + decode_location_expression (start, eh_addr_size, ul, 0); + printf (")\n"); + } + fc->col_type[reg] = DW_CFA_val_expression; + start += ul; + break; + case DW_CFA_offset_extended_sf: reg = LEB (); l = SLEB (); @@ -3554,6 +3586,17 @@ display_debug_frames (struct dwarf_section *section, fc->col_offset[reg] = l * fc->data_factor; break; + case DW_CFA_val_offset_sf: + reg = LEB (); + l = SLEB (); + frame_need_space (fc, reg); + if (! do_debug_frames_interp) + printf (" DW_CFA_val_offset_sf: r%ld at cfa%+ld\n", + reg, l * fc->data_factor); + fc->col_type[reg] = DW_CFA_val_offset; + fc->col_offset[reg] = l * fc->data_factor; + break; + case DW_CFA_def_cfa_sf: fc->cfa_reg = LEB (); fc->cfa_offset = SLEB (); |