diff options
author | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:39:13 +0000 |
---|---|---|
committer | Ulrich Weigand <uweigand@de.ibm.com> | 2009-06-17 18:39:13 +0000 |
commit | 55f960e1d2e58215a0c274e8d30e6036c96a2959 (patch) | |
tree | bfba868ab5c23c63103b59225fabbf9c06df9c2e /gdb/prologue-value.c | |
parent | 7ccb0be9545330795513b699b8ec1d6770c0e755 (diff) | |
download | gdb-55f960e1d2e58215a0c274e8d30e6036c96a2959.zip gdb-55f960e1d2e58215a0c274e8d30e6036c96a2959.tar.gz gdb-55f960e1d2e58215a0c274e8d30e6036c96a2959.tar.bz2 |
* 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.
Diffstat (limited to 'gdb/prologue-value.c')
-rw-r--r-- | gdb/prologue-value.c | 5 |
1 files changed, 2 insertions, 3 deletions
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; } |