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.
This commit is contained in:
Andrew Cagney 2003-07-11 01:35:54 +00:00
parent 82599cce24
commit ae99b39843
3 changed files with 14 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -3422,7 +3422,7 @@ int
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
@ -3445,7 +3445,7 @@ 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
@ -3802,7 +3802,7 @@ 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

View File

@ -1732,7 +1732,11 @@ do
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"