From 55f960e1d2e58215a0c274e8d30e6036c96a2959 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 17 Jun 2009 18:39:13 +0000 Subject: * prologue-value.c (make_pv_area): Add ADDR_BIT argument. Use it instead of address bits of current_gdbarch. * prologue-value.c (make_pv_area): Add ADDR_BIT argument. * arm-tdep.c (thumb_analyze_prologue): Pass address bits to make_pv_area. (arm_scan_prologue): Likewise. * m32c-tdep.c (m32c_analyze_prologue): Likewise. * mep-tdep.c (mep_analyze_prologue): Likewise. * mn10300-tdep.c (mn10300_analyze_prologue): Likewise. * s390-tdep.c (s390_analyze_prologue): Likewise. --- gdb/prologue-value.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/prologue-value.c') diff --git a/gdb/prologue-value.c b/gdb/prologue-value.c index 25884cb..e4282e6 100644 --- a/gdb/prologue-value.c +++ b/gdb/prologue-value.c @@ -314,7 +314,7 @@ struct pv_area struct pv_area * -make_pv_area (int base_reg) +make_pv_area (int base_reg, int addr_bit) { struct pv_area *a = (struct pv_area *) xmalloc (sizeof (*a)); @@ -325,8 +325,7 @@ make_pv_area (int base_reg) /* Remember that shift amounts equal to the type's width are undefined. */ - a->addr_mask = ((((CORE_ADDR) 1 - << (gdbarch_addr_bit (current_gdbarch) - 1)) - 1) << 1) | 1; + a->addr_mask = ((((CORE_ADDR) 1 << (addr_bit - 1)) - 1) << 1) | 1; return a; } -- cgit v1.1