This is the mail archive of the gdb-patches@sources.redhat.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]

[patch] to gdb: obviously correct fix for some #ifdef HAVE_SGTTY code


Hi there,

The patch below is an obviously correct fix to a line of obviously broken non-
compilable code. (The line in question is in #ifdef HAVE_SGTTY, though, which
is why you spoiled children not using 4.3BSD have never noticed it. :-) OK to
commit?

-- 
Michael Sokolov
Public Service Agent
International Engineering and Science Task Force

1351 VINE AVE APT 27		Phone: +1-714-738-5409
FULLERTON CA 92833-4291 USA	(home office)

E-mail: msokolov@ivan.Harhan.ORG (ARPA TCP/SMTP)

2001-02-06  Michael Sokolov  <msokolov@ivan.Harhan.ORG>

	* ser-unix.c (hardware_print_tty_state) [HAVE_SGTTY]: Call
	fprintf_filtered with correct arguments.

Index: ser-unix.c
===================================================================
RCS file: /cvs/src/src/gdb/ser-unix.c,v
retrieving revision 1.10
diff -p -r1.10 ser-unix.c
*** ser-unix.c	2001/02/02 19:14:33	1.10
--- ser-unix.c	2001/02/06 20:27:06
*************** hardwire_print_tty_state (serial_t scb,
*** 267,273 ****
    fprintf_filtered (stream, "tchars: ");
    for (i = 0; i < (int) sizeof (struct tchars); i++)
      fprintf_filtered (stream, "0x%x ", ((unsigned char *) &state->tc)[i]);
!   fprintf_filtered ("\n");
  
    fprintf_filtered (stream, "ltchars: ");
    for (i = 0; i < (int) sizeof (struct ltchars); i++)
--- 267,273 ----
    fprintf_filtered (stream, "tchars: ");
    for (i = 0; i < (int) sizeof (struct tchars); i++)
      fprintf_filtered (stream, "0x%x ", ((unsigned char *) &state->tc)[i]);
!   fprintf_filtered (stream, "\n");
  
    fprintf_filtered (stream, "ltchars: ");
    for (i = 0; i < (int) sizeof (struct ltchars); i++)

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