2003-07-10 Andrew Cagney <cagney@redhat.com>
+ * gdbarch.sh: When a variable, but not a function, compare against
+ 0. Fix problem in previous patch.
+ * gdbarch.c: Re-generate.
+
+2003-07-10 Andrew Cagney <cagney@redhat.com>
+
* gdbarch.sh: Use gdb_assert instead of internal_error. Compare
functions against NULL, not 0.
* gdbarch.c: Re-generate.
gdbarch_deprecated_max_register_raw_size_p (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
- return gdbarch->deprecated_max_register_raw_size != NULL;
+ return gdbarch->deprecated_max_register_raw_size != 0;
}
int
gdbarch_deprecated_max_register_virtual_size_p (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
- return gdbarch->deprecated_max_register_virtual_size != NULL;
+ return gdbarch->deprecated_max_register_virtual_size != 0;
}
int
gdbarch_deprecated_call_dummy_stack_adjust_p (struct gdbarch *gdbarch)
{
gdb_assert (gdbarch != NULL);
- return gdbarch->deprecated_call_dummy_stack_adjust != NULL;
+ return gdbarch->deprecated_call_dummy_stack_adjust != 0;
}
int
if [ -n "${predicate}" ]
then
printf " return ${predicate};\n"
- else
+ elif class_is_variable_p
+ then
+ printf " return gdbarch->${function} != 0;\n"
+ elif class_is_function_p
+ then
printf " return gdbarch->${function} != NULL;\n"
fi
printf "}\n"