* dwarf.c (display_debug_frames): If do_debug_frames_interp,
authorIan Lance Taylor <ian@airs.com>
Fri, 28 Oct 2011 18:27:46 +0000 (18:27 +0000)
committerIan Lance Taylor <ian@airs.com>
Fri, 28 Oct 2011 18:27:46 +0000 (18:27 +0000)
DW_CFA_restore goes to DW_CFA_undefined, not DW_CFA_unreferenced.

binutils/ChangeLog
binutils/dwarf.c

index 61707e842929e1f9a7d0a3834a5dae88a7056f80..1e3d1962ee83575818d63157dfe15076e95ecbf7 100644 (file)
@@ -1,3 +1,8 @@
+2011-10-28  Ian Lance Taylor  <iant@google.com>
+
+       * dwarf.c (display_debug_frames): If do_debug_frames_interp,
+       DW_CFA_restore goes to DW_CFA_undefined, not DW_CFA_unreferenced.
+
 2011-10-28  Walter Lee  <walt@tilera.com>
 
        * NEWS: Mention addition of TILEPro and TILE-Gx support.
index d89a861b55651b9304c9e72cf7551130604f5f91..1196246194244dfba8191675401a9aa90138bac0 100644 (file)
@@ -5110,6 +5110,9 @@ display_debug_frames (struct dwarf_section *section,
                {
                  fc->col_type[opa] = cie->col_type[opa];
                  fc->col_offset[opa] = cie->col_offset[opa];
+                 if (do_debug_frames_interp
+                     && fc->col_type[opa] == DW_CFA_unreferenced)
+                   fc->col_type[opa] = DW_CFA_undefined;
                }
              break;