aboutsummaryrefslogtreecommitdiff
path: root/gdb/symfile.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/symfile.c')
-rw-r--r--gdb/symfile.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/symfile.c b/gdb/symfile.c
index 8e204e1..fac4c87 100644
--- a/gdb/symfile.c
+++ b/gdb/symfile.c
@@ -3530,7 +3530,8 @@ enum ovly_index
{
VMA, SIZE, LMA, MAPPED
};
-#define TARGET_LONG_BYTES (TARGET_LONG_BIT / TARGET_CHAR_BIT)
+#define TARGET_LONG_BYTES (gdbarch_long_bit (current_gdbarch) \
+ / TARGET_CHAR_BIT)
/* Throw away the cached copy of _ovly_table */
static void