aboutsummaryrefslogtreecommitdiff
path: root/gdb/config/i386
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2000-12-21 20:52:59 +0000
committerMark Kettenis <kettenis@gnu.org>2000-12-21 20:52:59 +0000
commitef9dff19c46d6269eb1faed4d8903710f2c91f2d (patch)
treea17a033f5637650e2436d93951b5b51ef44b5c4b /gdb/config/i386
parent2866d3057449bb4fe35784fb86accf03863ed87b (diff)
downloadgdb-ef9dff19c46d6269eb1faed4d8903710f2c91f2d.zip
gdb-ef9dff19c46d6269eb1faed4d8903710f2c91f2d.tar.gz
gdb-ef9dff19c46d6269eb1faed4d8903710f2c91f2d.tar.bz2
* i386-tdep.c: Add missing ')' in comment.
(i386_extract_return_value): Return directly after issuing the warning and filling *VALBUF with zeroes if we cannot get at the floating-point registers. (i386_store_return_value): New function. * config/i386/tm-i386.h (STORE_RETURN_VALUE): Simply call i386_store_return_value. Add prototype for i386_store_return_value.
Diffstat (limited to 'gdb/config/i386')
-rw-r--r--gdb/config/i386/tm-i386.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/gdb/config/i386/tm-i386.h b/gdb/config/i386/tm-i386.h
index 2f18086..fc89c3a 100644
--- a/gdb/config/i386/tm-i386.h
+++ b/gdb/config/i386/tm-i386.h
@@ -296,17 +296,11 @@ extern void i387_float_info (void);
extern void i386_extract_return_value (struct type *type, char *regbuf,
char *valbuf);
-/* Write into appropriate registers a function return value of type TYPE, given
- in virtual format. */
-
-#define STORE_RETURN_VALUE(TYPE,VALBUF) \
- { \
- if (TYPE_CODE (TYPE) == TYPE_CODE_FLT) \
- write_register_bytes (REGISTER_BYTE (FP0_REGNUM), (VALBUF), \
- TYPE_LENGTH (TYPE)); \
- else \
- write_register_bytes (0, (VALBUF), TYPE_LENGTH (TYPE)); \
- }
+/* Write into the appropriate registers a function return value stored
+ in VALBUF of type TYPE, given in virtual format. */
+#define STORE_RETURN_VALUE(type, valbuf) \
+ i386_store_return_value ((type), (valbuf))
+extern void i386_store_return_value (struct type *type, char *valbuf);
/* Extract from an array REGBUF containing the (raw) register state the address
in which a function should return its structure value, as a CORE_ADDR (or an