summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorarcherypp <archerypp@hotmail.com>2019-04-24 23:36:53 +0800
committerDave Watson <davejwatson@fb.com>2019-04-24 08:36:53 -0700
commit861caf878215c4bda57f2780de862c6d1cb4e4c1 (patch)
treea57da96a78767c379a7b1f01deb1a0329addbcc8
parent20df928c1c4ad11bf9c9e0e4cba026afcb56fd79 (diff)
downloadlibunwind-861caf878215c4bda57f2780de862c6d1cb4e4c1.tar.gz
Delete hardcode of address size to support MIPS64. (#114)
Use the define for dwarf_addr_size in include/dwarf_i.h instead of hardcode(4) to support various MIPS architectures. Signed-off-by: Archer Yan <ayan@wavecomp.com>
-rw-r--r--include/tdep-mips/dwarf-config.h3
-rw-r--r--src/mips/Gcreate_addr_space.c1
2 files changed, 0 insertions, 4 deletions
diff --git a/include/tdep-mips/dwarf-config.h b/include/tdep-mips/dwarf-config.h
index 8006d0b8..74b821f5 100644
--- a/include/tdep-mips/dwarf-config.h
+++ b/include/tdep-mips/dwarf-config.h
@@ -35,9 +35,6 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
/* Return TRUE if the ADDR_SPACE uses big-endian byte-order. */
#define dwarf_is_big_endian(addr_space) ((addr_space)->big_endian)
-/* Return the size of an address, for DWARF purposes. */
-#define dwarf_addr_size(addr_space) ((addr_space)->addr_size)
-
/* Convert a pointer to a dwarf_cursor structure to a pointer to
unw_cursor_t. */
#define dwarf_to_cursor(c) ((unw_cursor_t *) (c))
diff --git a/src/mips/Gcreate_addr_space.c b/src/mips/Gcreate_addr_space.c
index c2408b95..24e0d3b1 100644
--- a/src/mips/Gcreate_addr_space.c
+++ b/src/mips/Gcreate_addr_space.c
@@ -67,7 +67,6 @@ unw_create_addr_space (unw_accessors_t *a, int byte_order)
#else
# error Unsupported ABI
#endif
- as->addr_size = 4;
return as;
#endif