diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-18 19:13:38 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-01-18 19:13:38 +0000 |
commit | db4340a62593635502651eb33ceeacdac0bc2cb2 (patch) | |
tree | 10f56a6f55c725ac90009335ca3356276ed729fd /gdb/infrun.c | |
parent | 0c205af2c5f39a0cb37e9a9088bcb32bcb6caf66 (diff) | |
download | gdb-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/infrun.c')
-rw-r--r-- | gdb/infrun.c | 5 |
1 files changed, 4 insertions, 1 deletions
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; |