aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-18 19:13:38 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-18 19:13:38 +0000
commitdb4340a62593635502651eb33ceeacdac0bc2cb2 (patch)
tree10f56a6f55c725ac90009335ca3356276ed729fd /gdb
parent0c205af2c5f39a0cb37e9a9088bcb32bcb6caf66 (diff)
downloadgdb-db4340a62593635502651eb33ceeacdac0bc2cb2.zip
gdb-db4340a62593635502651eb33ceeacdac0bc2cb2.tar.gz
gdb-db4340a62593635502651eb33ceeacdac0bc2cb2.tar.bz2
* infrun.c (signals_info), target.c (target_signal_from_name):
Use ugly casts to avoid enumvar < enumvar or enumvar++.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/infrun.c5
2 files changed, 9 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 137fa16..048e83f 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+Tue Jan 18 14:09:25 1994 Peter Schauer (pes@regent.e-technik.tu-muenchen.de)
+
+ * infrun.c (signals_info), target.c (target_signal_from_name):
+ Use ugly casts to avoid enumvar < enumvar or enumvar++.
+
Mon Jan 17 22:00:15 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* ser-unix.c (hardwire_noflush_set_tty_state): Don't muck with ICANON.
diff --git a/gdb/infrun.c b/gdb/infrun.c
index 62d4333..f831f5a 100644
--- a/gdb/infrun.c
+++ b/gdb/infrun.c
@@ -1656,7 +1656,10 @@ signals_info (signum_exp, from_tty)
}
printf_filtered ("\n");
- for (oursig = 0; oursig < TARGET_SIGNAL_LAST; ++oursig)
+ /* These ugly casts brought to you by the native VAX compiler. */
+ for (oursig = 0;
+ (int)oursig < (int)TARGET_SIGNAL_LAST;
+ oursig = (enum target_signal)((int)oursig + 1))
{
QUIT;