aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-03-21 19:25:03 +0000
committerAndrew Cagney <cagney@redhat.com>2001-03-21 19:25:03 +0000
commitb77be6cfae4bcdf8ecf81cc6853f7d6b19da8a0f (patch)
tree8b08c8c0189c71d379924ea2cf0358c8f3e54c11 /gdb
parent379d08a1d41314fa7cc30ea75e0cb0937d3d77ee (diff)
downloadgdb-b77be6cfae4bcdf8ecf81cc6853f7d6b19da8a0f.zip
gdb-b77be6cfae4bcdf8ecf81cc6853f7d6b19da8a0f.tar.gz
gdb-b77be6cfae4bcdf8ecf81cc6853f7d6b19da8a0f.tar.bz2
Avoid use of ``if ! program''.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rwxr-xr-xgdb/gdbarch.sh55
2 files changed, 34 insertions, 25 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4737419..95567ed 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2001-03-21 Andrew Cagney <ac131313@redhat.com>
+
+ * gdbarch.sh: Avoid use of ``!''.
+
2001-03-20 Andrew Cagney <ac131313@redhat.com>
* target.h (enum target_signal): Move definition from here.
diff --git a/gdb/gdbarch.sh b/gdb/gdbarch.sh
index ee93750..6d89bd4 100755
--- a/gdb/gdbarch.sh
+++ b/gdb/gdbarch.sh
@@ -654,29 +654,33 @@ do
-e '3,$ s,#, ,' \
-e '$ s,$, */,'
fi
- if class_is_predicate_p && ! class_is_multiarch_p
- then
- printf "\n"
- printf "#if defined (${macro})\n"
- printf "/* Legacy for systems yet to multi-arch ${macro} */\n"
- #printf "#if (GDB_MULTI_ARCH <= GDB_MULTI_ARCH_PARTIAL) && defined (${macro})\n"
- printf "#define ${macro}_P() (1)\n"
- printf "#endif\n"
- printf "\n"
- printf "/* Default predicate for non- multi-arch targets. */\n"
- printf "#if (!GDB_MULTI_ARCH) && !defined (${macro}_P)\n"
- printf "#define ${macro}_P() (0)\n"
- printf "#endif\n"
- printf "\n"
- printf "extern int gdbarch_${function}_p (struct gdbarch *gdbarch);\n"
- printf "#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (${macro}_P)\n"
- printf "#define ${macro}_P() (gdbarch_${function}_p (current_gdbarch))\n"
- printf "#endif\n"
- fi
- if class_is_predicate_p && class_is_multiarch_p
+ if class_is_multiarch_p
then
- printf "\n"
- printf "extern int gdbarch_${function}_p (struct gdbarch *gdbarch);\n"
+ if class_is_predicate_p
+ then
+ printf "\n"
+ printf "extern int gdbarch_${function}_p (struct gdbarch *gdbarch);\n"
+ fi
+ else
+ if class_is_predicate_p
+ then
+ printf "\n"
+ printf "#if defined (${macro})\n"
+ printf "/* Legacy for systems yet to multi-arch ${macro} */\n"
+ #printf "#if (GDB_MULTI_ARCH <= GDB_MULTI_ARCH_PARTIAL) && defined (${macro})\n"
+ printf "#define ${macro}_P() (1)\n"
+ printf "#endif\n"
+ printf "\n"
+ printf "/* Default predicate for non- multi-arch targets. */\n"
+ printf "#if (!GDB_MULTI_ARCH) && !defined (${macro}_P)\n"
+ printf "#define ${macro}_P() (0)\n"
+ printf "#endif\n"
+ printf "\n"
+ printf "extern int gdbarch_${function}_p (struct gdbarch *gdbarch);\n"
+ printf "#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (${macro}_P)\n"
+ printf "#define ${macro}_P() (gdbarch_${function}_p (current_gdbarch))\n"
+ printf "#endif\n"
+ fi
fi
if class_is_variable_p
then
@@ -700,7 +704,8 @@ do
fi
if class_is_function_p
then
- if ( fallback_default_p || class_is_predicate_p ) && ! class_is_multiarch_p
+ if class_is_multiarch_p ; then :
+ elif fallback_default_p || class_is_predicate_p
then
printf "\n"
printf "/* Default (function) for non- multi-arch platforms. */\n"
@@ -732,8 +737,8 @@ do
printf "extern ${returntype} gdbarch_${function} (struct gdbarch *gdbarch, ${formal});\n"
fi
printf "extern void set_gdbarch_${function} (struct gdbarch *gdbarch, gdbarch_${function}_ftype *${function});\n"
- if ! class_is_multiarch_p
- then
+ if class_is_multiarch_p ; then :
+ else
printf "#if GDB_MULTI_ARCH\n"
printf "#if (GDB_MULTI_ARCH > GDB_MULTI_ARCH_PARTIAL) || !defined (${macro})\n"
if [ "${actual}" = "" ]