This is the mail archive of the gdb-patches@sourceware.cygnus.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RFC: Serial port messages


The following patch prevents that we give the user misleading
information.

I rather do this than conditionalize the code for the OS.  By being
presented with a list the user will become aware that he must know the
right way to specify a port in his/her system.


-- 
Fernando Nasser
Cygnus Solutions - Toronto Office       E-Mail:  fnasser@cygnus.com



Index: remote.c
===================================================================
RCS file: /cvs/cvsfiles/devo/gdb/remote.c,v
retrieving revision 1.264
diff -c -r1.264 remote.c
*** remote.c    1999/12/16 00:47:28     1.264
--- remote.c    2000/01/06 00:39:47
***************
*** 1921,1927 ****
  {
    if (name == 0)
      error ("To open a remote debug connection, you need to specify
what\n\
! serial device is attached to the remote system (e.g. /dev/ttya).");
  
    /* See FIXME above */
    wait_forever_enabled_p = 1;
--- 1921,1928 ----
  {
    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/ttya, /dev/ttyS0, COM1, etc.).");
  
    /* See FIXME above */
    wait_forever_enabled_p = 1;
***************
*** 2007,2013 ****
  {
    if (name == 0)
      error ("To open a remote debug connection, you need to specify
what\n\
! serial device is attached to the remote system (e.g. /dev/ttya).");
  
    target_preopen (from_tty);
  
--- 2008,2015 ----
  {
    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/ttya, /dev/ttyS0, COM1, etc.).");
  
    target_preopen (from_tty);
  
***************
*** 4855,4861 ****
    remote_ops.to_longname = "Remote serial target in gdb-specific
protocol";
    remote_ops.to_doc =
      "Use a remote computer via a serial line, using a gdb-specific
protocol.\n\
! Specify the serial device it is connected to (e.g. /dev/ttya).";
    remote_ops.to_open = remote_open;
    remote_ops.to_close = remote_close;
    remote_ops.to_detach = remote_detach;
--- 4857,4864 ----
    remote_ops.to_longname = "Remote serial target in gdb-specific
protocol";
    remote_ops.to_doc =
      "Use a remote computer via a serial line, using a gdb-specific
protocol.\n\
! Specify the serial device it is connected to\n\
! (e.g. /dev/ttya, /dev/ttyS0, COM1, etc.).";
    remote_ops.to_open = remote_open;
    remote_ops.to_close = remote_close;
    remote_ops.to_detach = remote_detach;

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]