re PR libstdc++/9076 (Call Frame Instructions are not handled correctly during unwind...
authorBenjamin Kosnik <bkoz@redhat.com>
Tue, 7 Jan 2003 20:20:53 +0000 (20:20 +0000)
committerBenjamin Kosnik <bkoz@gcc.gnu.org>
Tue, 7 Jan 2003 20:20:53 +0000 (20:20 +0000)
2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
    Sunil Davasam  <sunil.k.davasam@intel.com>

PR libstdc++/9076
* unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
DW_CFA_same_value, read next and ignore.

Co-Authored-By: Sunil Davasam <sunil.k.davasam@intel.com>
From-SVN: r61008

gcc/ChangeLog
gcc/unwind-dw2.c

index 8acd3995591530aa9d25c76e0872631120edb1d9..b6028c60da8ee5cd8220d3751eaf62062f838141 100644 (file)
@@ -1,3 +1,10 @@
+2003-01-07  Benjamin Kosnik  <bkoz@redhat.com>
+           Sunil Davasam  <sunil.k.davasam@intel.com>
+
+       PR libstdc++/9076 
+       * unwind-dw2.c (execute_cfa_program): DW_CFA_undefined,
+       DW_CFA_same_value, read next and ignore.
+
 2003-01-07  Richard Henderson  <rth@redhat.com>
 
        * cfganal.c (flow_call_edges_add): Don't crash on noreturn call.
index 4d127a8976354defbb1274210505269b215b1fa6..6a44865d7c35669c2a389ebde05855b5e4cb0253 100644 (file)
@@ -1,5 +1,5 @@
 /* DWARF2 exception handling and frame unwind runtime interface routines.
-   Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002
+   Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002, 2003
    Free Software Foundation, Inc.
 
    This file is part of GCC.
@@ -784,6 +784,9 @@ execute_cfa_program (const unsigned char *insn_ptr,
 
        case DW_CFA_undefined:
        case DW_CFA_same_value:
+         insn_ptr = read_uleb128 (insn_ptr, &reg);
+         break;
+
        case DW_CFA_nop:
          break;