Date: Sat, 19 Aug 2006 23:45:49 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 104570 for review Message-ID: <200608192345.k7JNjnpO028925@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=104570 Change 104570 by jb@jb_zoo on 2006/08/19 23:45:05 Add the puts method. Affected files ... .. //depot/projects/dtrace/src/sys/gdb/gdb_cons.c#3 edit Differences ... ==== //depot/projects/dtrace/src/sys/gdb/gdb_cons.c#3 (text) ==== @@ -159,6 +159,18 @@ } } +static void +gdb_cnputs(struct consdev *cp, char *p, int num) +{ + int i; + + for (i = 0; i < num; i++) { + if (p[i] == '\n') + gdb_cnputc(cp, '\r'); + gdb_cnputc(cp, p[i] & 0xff); + } +} + CONSOLE_DRIVER(gdb); /*
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200608192345.k7JNjnpO028925>