aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-01-05 23:09:45 +0000
committerAndrew Cagney <cagney@redhat.com>2004-01-05 23:09:45 +0000
commit54f1137d66be5ee162692309ef76ec749a2cb8ca (patch)
treee97c4d49b0a8d8686a28c156c0043cf12ac4f41b /gdb
parent295320329c94706744dba657b53a45693150ccf1 (diff)
downloadgdb-54f1137d66be5ee162692309ef76ec749a2cb8ca.zip
gdb-54f1137d66be5ee162692309ef76ec749a2cb8ca.tar.gz
gdb-54f1137d66be5ee162692309ef76ec749a2cb8ca.tar.bz2
2004-01-05 Andrew Cagney <cagney@redhat.com>
* ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED" should be a switch case and not a label. * mips-tdep.c (mips32_next_pc): Delete unused labels "greater_equal_branch" and "less_zero_branch". * jv-valprint.c (java_print_value_fields): Delete unused label "flush_it".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog7
-rw-r--r--gdb/jv-valprint.c3
-rw-r--r--gdb/mips-tdep.c2
-rw-r--r--gdb/ser-unix.c2
4 files changed, 8 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 4a0ba8b..2152f27 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,12 @@
2004-01-05 Andrew Cagney <cagney@redhat.com>
+ * ser-unix.c (ser_unix_async): Fix tipo, "NOTHING_SECHEDULED"
+ should be a switch case and not a label.
+ * mips-tdep.c (mips32_next_pc): Delete unused labels
+ "greater_equal_branch" and "less_zero_branch".
+ * jv-valprint.c (java_print_value_fields): Delete unused label
+ "flush_it".
+
* target.c (unpush_target): Only close a target that is in the
target stack.
diff --git a/gdb/jv-valprint.c b/gdb/jv-valprint.c
index 1875eef..9756004 100644
--- a/gdb/jv-valprint.c
+++ b/gdb/jv-valprint.c
@@ -298,9 +298,6 @@ java_print_value_fields (struct type *type, char *valaddr, CORE_ADDR address,
java_print_value_fields (baseclass, base_valaddr, address + boffset,
stream, format, recurse + 1, pretty);
fputs_filtered (", ", stream);
-
- flush_it:
- ;
}
}
diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c
index 2c3e8c2..406467a 100644
--- a/gdb/mips-tdep.c
+++ b/gdb/mips-tdep.c
@@ -1083,7 +1083,6 @@ mips32_next_pc (CORE_ADDR pc)
case 3: /* BGEZL */
case 17: /* BGEZAL */
case 19: /* BGEZALL */
- greater_equal_branch:
if (read_signed_register (itype_rs (inst)) >= 0)
pc += mips32_relative_offset (inst) + 4;
else
@@ -1129,7 +1128,6 @@ mips32_next_pc (CORE_ADDR pc)
pc += 8;
break;
case 6: /* BLEZ, BLEZL */
- less_zero_branch:
if (read_signed_register (itype_rs (inst) <= 0))
pc += mips32_relative_offset (inst) + 4;
else
diff --git a/gdb/ser-unix.c b/gdb/ser-unix.c
index e7a5d93..0b73958 100644
--- a/gdb/ser-unix.c
+++ b/gdb/ser-unix.c
@@ -1324,7 +1324,7 @@ ser_unix_async (struct serial *scb,
case FD_SCHEDULED:
delete_file_handler (scb->fd);
break;
- NOTHING_SCHEDULED:
+ case NOTHING_SCHEDULED:
break;
default: /* TIMER SCHEDULED */
delete_timer (scb->async_state);