aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-15 19:19:23 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-15 19:19:23 +0000
commitd6dd581ead67d3fb2a0563e40604e59d6f193c26 (patch)
tree6b2831618d0c78f00f28d55ecaecb2b3e0379318 /gdb/gdbarch.c
parent09843d7f0ce3c75d003ee92203afe86ee34128aa (diff)
downloadgdb-d6dd581ead67d3fb2a0563e40604e59d6f193c26.zip
gdb-d6dd581ead67d3fb2a0563e40604e59d6f193c26.tar.gz
gdb-d6dd581ead67d3fb2a0563e40604e59d6f193c26.tar.bz2
* gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
(EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with predicate. * gdbarch.h, gdbarch.c: Regenerate. * values.c (value_being_returned): Change the reference to EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 95e9044..435b36c 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -690,10 +690,7 @@ verify_gdbarch (struct gdbarch *gdbarch)
&& (gdbarch->store_return_value == 0))
internal_error (__FILE__, __LINE__,
"gdbarch: verify_gdbarch: store_return_value invalid");
- if ((GDB_MULTI_ARCH >= 2)
- && (gdbarch->extract_struct_value_address == 0))
- internal_error (__FILE__, __LINE__,
- "gdbarch: verify_gdbarch: extract_struct_value_address invalid");
+ /* Skip verify of extract_struct_value_address, has predicate */
if ((GDB_MULTI_ARCH >= 2)
&& (gdbarch->use_struct_convention == 0))
internal_error (__FILE__, __LINE__,
@@ -3696,6 +3693,12 @@ set_gdbarch_store_return_value (struct gdbarch *gdbarch,
gdbarch->store_return_value = store_return_value;
}
+int
+gdbarch_extract_struct_value_address_p (struct gdbarch *gdbarch)
+{
+ return gdbarch->extract_struct_value_address != 0;
+}
+
CORE_ADDR
gdbarch_extract_struct_value_address (struct gdbarch *gdbarch, char *regbuf)
{