aboutsummaryrefslogtreecommitdiff
path: root/gdb/values.c
diff options
context:
space:
mode:
authorFred Fish <fnf@specifix.com>1998-01-23 15:44:12 +0000
committerFred Fish <fnf@specifix.com>1998-01-23 15:44:12 +0000
commit77636dea0a8b2f31d21b86b9013a123dcbb10e05 (patch)
tree2df5e68461c4f959679b155fe513f26cfef89d27 /gdb/values.c
parentb7c05d37e2b4416aa87080a91e0434f2eb194eda (diff)
downloadgdb-77636dea0a8b2f31d21b86b9013a123dcbb10e05.zip
gdb-77636dea0a8b2f31d21b86b9013a123dcbb10e05.tar.gz
gdb-77636dea0a8b2f31d21b86b9013a123dcbb10e05.tar.bz2
* config/d10v/tm-d10v.h (CALL_DUMMY): Define as "{ 0 }".
(TARGET_READ_FP): Define to d10v_read_fp rather than d10v_read_sp. (TARGET_WRITE_FP): Define to d10v_write_fp rather than d10v_write_sp. (d10v_write_fp, d10v_read_fp): Add prototypes. * symtab.c (decode_line_1): Remove assignment of sals[0].pc field. * symfile.c (simple_overlay_update, simple_overlay_update_1): Ignore the size of overlay sections. This check is redundant anyway. * printcmd.c (print_frame_args): Ditto. * valops.c (value_fetch_lazy): Ditto. * values.c (unpack_long): Ditto. * d10v-tdep.c (d10v_frame_chain, d10v_frame_find_saved_regs, d10v_init_extra_frame_info): Fix some minor bugs so the finish command works properly. (show_regs): Change num1 and num2 types from "long long" to "LONGEST". (d10v_read_fp, d10v_write_fp): New functions. (d10v_push_arguments): Remove unneeded assigns to "val" and "contents". (d10v_push_arguments): Fix for pointers and structs. (d10v_extract_return_value): Fix for pointers and chars.
Diffstat (limited to 'gdb/values.c')
-rw-r--r--gdb/values.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/values.c b/gdb/values.c
index 0ffd5a6..69c19a6 100644
--- a/gdb/values.c
+++ b/gdb/values.c
@@ -634,6 +634,10 @@ unpack_long (type, valaddr)
case TYPE_CODE_REF:
/* Assume a CORE_ADDR can fit in a LONGEST (for now). Not sure
whether we want this to be true eventually. */
+#ifdef GDB_TARGET_IS_D10V
+ if (len == 2)
+ return D10V_MAKE_DADDR(extract_address (valaddr, len));
+#endif
return extract_address (valaddr, len);
case TYPE_CODE_MEMBER: