summaryrefslogtreecommitdiff
path: root/gdb/gdbarch.sh
diff options
context:
space:
mode:
authorJoel Brobecker <brobecker@gnat.com>2008-04-29 16:06:07 +0000
committerJoel Brobecker <brobecker@gnat.com>2008-04-29 16:06:07 +0000
commitea42b34a37453fb7cf3a4ac7a5a6d0d456623fd9 (patch)
tree10fe8c5556df19395b5fdebfa134f6e953fea93e /gdb/gdbarch.sh
parent266b05cf7629d7cefecd2b31542a2332e3d5e385 (diff)
downloadbinutils-gdb-ea42b34a37453fb7cf3a4ac7a5a6d0d456623fd9.tar.gz
* gdbarch.sh: Document the return_value method. Explain that
the FUNCTYPE parameter might be NULL. * gdbarch.h: Regenerated. * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function type when calling using_struct_return, as this is unnecessary on this target.
Diffstat (limited to 'gdb/gdbarch.sh')
-rwxr-xr-xgdb/gdbarch.sh14
1 files changed, 10 insertions, 4 deletions
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index f9fee170b52..91d970e95c7 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -470,10 +470,16 @@ f:CORE_ADDR:pointer_to_address:struct type *type, const gdb_byte *buf:type, buf:
f:void:address_to_pointer:struct type *type, gdb_byte *buf, CORE_ADDR addr:type, buf, addr::unsigned_address_to_pointer::0
M:CORE_ADDR:integer_to_address:struct type *type, const gdb_byte *buf:type, buf
-# It has been suggested that this, well actually its predecessor,
-# should take the type/value of the function to be called and not the
-# return type. This is left as an exercise for the reader.
-
+# Return the return-value convention that will be used by FUNCTYPE
+# to return a value of type VALTYPE. FUNCTYPE may be NULL in which
+# case the return convention is computed based only on VALTYPE.
+#
+# If READBUF is not NULL, extract the return value and save it in this buffer.
+#
+# If WRITEBUF is not NULL, it contains a return value which will be
+# stored into the appropriate register. This can be used when we want
+# to force the value returned by a function (see the "return" command
+# for instance).
M:enum return_value_convention:return_value:struct type *functype, struct type *valtype, struct regcache *regcache, gdb_byte *readbuf, const gdb_byte *writebuf:functype, valtype, regcache, readbuf, writebuf
m:CORE_ADDR:skip_prologue:CORE_ADDR ip:ip:0:0