2003-07-10 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Fri, 11 Jul 2003 01:35:54 +0000 (01:35 +0000)
committerAndrew Cagney <cagney@redhat.com>
Fri, 11 Jul 2003 01:35:54 +0000 (01:35 +0000)
* gdbarch.sh: When a variable, but not a function, compare against
0.  Fix problem in previous patch.
* gdbarch.c: Re-generate.

gdb/ChangeLog
gdb/gdbarch.c
gdb/gdbarch.sh

index 9f84f717cd27b3c9e364f4e4b71058f0f7e5d74e..af1c34a7dbfa17cd70a1e326fa5ed768b4c30958 100644 (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
index 7333952893cacc4fcadc7d883bc1a9e02a6d8c12..8567c0555aec99549ebfe9ae5c02ebb123999bbd 100644 (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
index 06885598003f188cef334bef6900fc8940588b31..75687f6a6549742bfe3216ee41ee5d90926575cb 100755 (executable)
@@ -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"
This page took 0.030886 seconds and 4 git commands to generate.