diff options
author | Andrew Cagney <cagney@redhat.com> | 2000-11-27 02:18:44 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2000-11-27 02:18:44 +0000 |
commit | 7f7e9482db3f4c15bcc4f2b341b6fc7244a418aa (patch) | |
tree | a3b59713b48e507858ed0ddad37982636d16b617 /gdb/remote.c | |
parent | dc10500f221947ef215230e76b8829a0bd9628a8 (diff) | |
download | gdb-7f7e9482db3f4c15bcc4f2b341b6fc7244a418aa.zip gdb-7f7e9482db3f4c15bcc4f2b341b6fc7244a418aa.tar.gz gdb-7f7e9482db3f4c15bcc4f2b341b6fc7244a418aa.tar.bz2 |
* remote.c (remote_write_bytes): Add default case to switch
initializing ``todo''. Ditto for ``nr_bytes''.
* top.c (catch_errors): Always initialize ``val''.
* solib.c (info_sharedlibrary_command): Handle bfd_get_arch_size
returning an unknown size.
* gdbtypes.c (count_virtual_fns): Always initialize ``vfuncs''.
* breakpoint.c (break_at_finish_at_depth_command_1): Initialise
extra_args to NULL.
(break_at_finish_command_1): Ditto.
Diffstat (limited to 'gdb/remote.c')
-rw-r--r-- | gdb/remote.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gdb/remote.c b/gdb/remote.c index 2b8279c..9b49b97 100644 --- a/gdb/remote.c +++ b/gdb/remote.c @@ -3363,7 +3363,10 @@ remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len) todo = min (len, max_buf_size / 2); break; case PACKET_SUPPORT_UNKNOWN: - internal_error ("remote_write_bytes: bad switch"); + internal_error ("%s:%d: remote_write_bytes: bad internal state", + __FILE__, __LINE__); + default: + internal_error ("%s:%d: bad switch", __FILE__, __LINE__); } /* Append <memaddr> */ @@ -3427,7 +3430,10 @@ remote_write_bytes (CORE_ADDR memaddr, char *myaddr, int len) *p = '\0'; break; case PACKET_SUPPORT_UNKNOWN: - internal_error ("remote_write_bytes: bad switch"); + internal_error ("%s:%d: remote_write_bytes: bad internal state", + __FILE__, __LINE__); + default: + internal_error ("%s:%d: bad switch", __FILE__, __LINE__); } putpkt_binary (buf, (int) (p - buf)); |