This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[patch] Use ISO C string concat for some long strings
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Mon, 19 Nov 2001 15:16:56 -0500
- Subject: [patch] Use ISO C string concat for some long strings
Just FYI, strictly sugar,
The old way was messing up my EMACS's indent.
Andrew
Mon Nov 19 14:58:52 2001 Andrew Cagney <cagney@redhat.com>
* remote.c (remote_open_1, remote_async_open_1): Use ISO C string
concatenation for error parameter.
(remote_cisco_open): Ditto.
Index: remote.c
===================================================================
RCS file: /cvs/src/src/gdb/remote.c,v
retrieving revision 1.69
diff -p -r1.69 remote.c
*** remote.c 2001/11/15 20:58:38 1.69
--- remote.c 2001/11/19 20:02:13
*************** remote_open_1 (char *name, int from_tty,
*** 2227,2235 ****
{
struct remote_state *rs = get_remote_state ();
if (name == 0)
! error ("To open a remote debug connection, you need to specify what\n\
! serial device is attached to the remote system\n\
! (e.g. /dev/ttyS0, /dev/ttya, COM1, etc.).");
/* See FIXME above */
wait_forever_enabled_p = 1;
--- 2227,2235 ----
{
struct remote_state *rs = get_remote_state ();
if (name == 0)
! error ("To open a remote debug connection, you need to specify what\n"
! "serial device is attached to the remote system\n"
! "(e.g. /dev/ttyS0, /dev/ttya, COM1, etc.).");
/* See FIXME above */
wait_forever_enabled_p = 1;
*************** remote_async_open_1 (char *name, int fro
*** 2328,2336 ****
{
struct remote_state *rs = get_remote_state ();
if (name == 0)
! error ("To open a remote debug connection, you need to specify what\n\
! serial device is attached to the remote system\n\
! (e.g. /dev/ttyS0, /dev/ttya, COM1, etc.).");
target_preopen (from_tty);
--- 2328,2336 ----
{
struct remote_state *rs = get_remote_state ();
if (name == 0)
! error ("To open a remote debug connection, you need to specify what\n"
! "serial device is attached to the remote system\n"
! "(e.g. /dev/ttyS0, /dev/ttya, COM1, etc.).");
target_preopen (from_tty);
*************** static void
*** 5437,5445 ****
remote_cisco_open (char *name, int from_tty)
{
if (name == 0)
! error (
! "To open a remote debug connection, you need to specify what \n\
! device is attached to the remote system (e.g. host:port).");
/* See FIXME above */
wait_forever_enabled_p = 1;
--- 5437,5444 ----
remote_cisco_open (char *name, int from_tty)
{
if (name == 0)
! error ("To open a remote debug connection, you need to specify what \n"
! "device is attached to the remote system (e.g. host:port).");
/* See FIXME above */
wait_forever_enabled_p = 1;