PR symtab/2161
[deliverable/binutils-gdb.git] / gdb / prologue-value.c
index 4ad4d6c828fb57760c413449d60fbbef582fc781..8576f38448525f9a75ed52a2771230ac7703b49d 100644 (file)
@@ -1,5 +1,5 @@
 /* Prologue value handling for GDB.
-   Copyright 2003, 2004, 2005 Free Software Foundation, Inc.
+   Copyright 2003, 2004, 2005, 2007 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -330,7 +330,8 @@ make_pv_area (int base_reg)
 
   /* Remember that shift amounts equal to the type's width are
      undefined.  */
-  a->addr_mask = ((((CORE_ADDR) 1 << (TARGET_ADDR_BIT - 1)) - 1) << 1) | 1;
+  a->addr_mask = ((((CORE_ADDR) 1
+                  << (gdbarch_addr_bit (current_gdbarch) - 1)) - 1) << 1) | 1;
 
   return a;
 }
@@ -351,6 +352,7 @@ clear_entries (struct pv_area *area)
         {
           struct area_entry *next = e->next;
           xfree (e);
+          e = next;
         }
       while (e != area->entry);
 
This page took 0.024119 seconds and 4 git commands to generate.