aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-07-11 01:35:54 +0000
committerAndrew Cagney <cagney@redhat.com>2003-07-11 01:35:54 +0000
commitae99b39843aa37ee127e04f4d98343c52349d49f (patch)
tree21a02e9d17c569d99f8f6f5d9c5622ced00e50cd /gdb/gdbarch.c
parent82599cce24ca939fa3c3797c6d63891fa8f5c79b (diff)
downloadgdb-ae99b39843aa37ee127e04f4d98343c52349d49f.zip
gdb-ae99b39843aa37ee127e04f4d98343c52349d49f.tar.gz
gdb-ae99b39843aa37ee127e04f4d98343c52349d49f.tar.bz2
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.
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index 7333952..8567c05 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -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