CVS commit: src/sys/net

2016-10-23 Thread Ryota Ozaki
Module Name:src
Committed By:   ozaki-r
Date:   Mon Oct 24 03:19:07 UTC 2016

Modified Files:
src/sys/net: route.c

Log Message:
Revert v1.157

We need to hold the rtentry over rtrequest1 for info that dereferences
member variables of the rtentry after rtrequest1.


To generate a diff of this commit:
cvs rdiff -u -r1.179 -r1.180 src/sys/net/route.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/net/route.c
diff -u src/sys/net/route.c:1.179 src/sys/net/route.c:1.180
--- src/sys/net/route.c:1.179	Fri Oct 21 10:56:35 2016
+++ src/sys/net/route.c	Mon Oct 24 03:19:07 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: route.c,v 1.179 2016/10/21 10:56:35 ozaki-r Exp $	*/
+/*	$NetBSD: route.c,v 1.180 2016/10/24 03:19:07 ozaki-r Exp $	*/
 
 /*-
  * Copyright (c) 1998, 2008 The NetBSD Foundation, Inc.
@@ -97,7 +97,7 @@
 #endif
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.179 2016/10/21 10:56:35 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: route.c,v 1.180 2016/10/24 03:19:07 ozaki-r Exp $");
 
 #include 
 #ifdef RTFLUSH_DEBUG
@@ -605,6 +605,7 @@ rtdeletemsg(struct rtentry *rt)
 {
 	int error;
 	struct rt_addrinfo info;
+	struct rtentry *retrt;
 
 	/*
 	 * Request the new route so that the entry is not actually
@@ -616,10 +617,12 @@ rtdeletemsg(struct rtentry *rt)
 	info.rti_info[RTAX_NETMASK] = rt_mask(rt);
 	info.rti_info[RTAX_GATEWAY] = rt->rt_gateway;
 	info.rti_flags = rt->rt_flags;
-	error = rtrequest1(RTM_DELETE, , NULL);
+	error = rtrequest1(RTM_DELETE, , );
 
 	rt_missmsg(RTM_DELETE, , info.rti_flags, error);
 
+	if (error == 0)
+		rtfree(retrt);
 	return error;
 }
 



CVS commit: src/external/gpl3/gdb/lib/libbfd/arch

2016-10-23 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Mon Oct 24 03:02:49 UTC 2016

Modified Files:
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb: targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mips64el: targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mipseb: defs.mk targmatch.h
src/external/gpl3/gdb/lib/libbfd/arch/mipsel: defs.mk targmatch.h

Log Message:
regen.


To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/targmatch.h
cvs rdiff -u -r1.9 -r1.10 \
src/external/gpl3/gdb/lib/libbfd/arch/mips64el/targmatch.h
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/lib/libbfd/arch/mipseb/defs.mk
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libbfd/arch/mipseb/targmatch.h
cvs rdiff -u -r1.4 -r1.5 src/external/gpl3/gdb/lib/libbfd/arch/mipsel/defs.mk
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libbfd/arch/mipsel/targmatch.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/targmatch.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/targmatch.h:1.9 src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/targmatch.h:1.10
--- src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/targmatch.h:1.9	Mon Oct 17 04:15:35 2016
+++ src/external/gpl3/gdb/lib/libbfd/arch/mips64eb/targmatch.h	Mon Oct 24 03:02:48 2016
@@ -251,7 +251,7 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_arm_elf32_be_vec)
 
-{ "armeb-*-netbsdelf*",
+{ "arm*eb-*-netbsdelf*",
 _elf32_be_vec },
 #endif
 
@@ -259,7 +259,7 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_arm_elf32_le_vec)
 
-{ "arm-*-netbsdelf*",
+{ "arm*-*-netbsdelf*",
 _elf32_le_vec },
 #endif
 

Index: src/external/gpl3/gdb/lib/libbfd/arch/mips64el/targmatch.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/mips64el/targmatch.h:1.9 src/external/gpl3/gdb/lib/libbfd/arch/mips64el/targmatch.h:1.10
--- src/external/gpl3/gdb/lib/libbfd/arch/mips64el/targmatch.h:1.9	Mon Oct 17 04:15:36 2016
+++ src/external/gpl3/gdb/lib/libbfd/arch/mips64el/targmatch.h	Mon Oct 24 03:02:48 2016
@@ -251,7 +251,7 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_arm_elf32_be_vec)
 
-{ "armeb-*-netbsdelf*",
+{ "arm*eb-*-netbsdelf*",
 _elf32_be_vec },
 #endif
 
@@ -259,7 +259,7 @@
 
 #if !defined (SELECT_VECS) || defined (HAVE_arm_elf32_le_vec)
 
-{ "arm-*-netbsdelf*",
+{ "arm*-*-netbsdelf*",
 _elf32_le_vec },
 #endif
 

Index: src/external/gpl3/gdb/lib/libbfd/arch/mipseb/defs.mk
diff -u src/external/gpl3/gdb/lib/libbfd/arch/mipseb/defs.mk:1.4 src/external/gpl3/gdb/lib/libbfd/arch/mipseb/defs.mk:1.5
--- src/external/gpl3/gdb/lib/libbfd/arch/mipseb/defs.mk:1.4	Sun Oct 16 08:23:06 2016
+++ src/external/gpl3/gdb/lib/libbfd/arch/mipseb/defs.mk	Mon Oct 24 03:02:48 2016
@@ -2,8 +2,8 @@
 # Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp 
 # Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp 
 #
-G_libbfd_la_DEPENDENCIES=elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo dwarf2.lo ecofflink.lo coffgen.lo elf64-mips.lo elf64.lo coff-mips.lo ecoff.lo elf64-gen.lo elf32-gen.lo plugin.lo cpu-mips.lo cpu-plugin.lo  archive64.lo ofiles
+G_libbfd_la_DEPENDENCIES=elf32-mips.lo elfxx-mips.lo elf-vxworks.lo elf32.lo elf.lo elflink.lo elf-attrs.lo elf-strtab.lo elf-eh-frame.lo dwarf1.lo dwarf2.lo ecofflink.lo coffgen.lo elfn32-mips.lo elf64-mips.lo elf64.lo coff-mips.lo ecoff.lo elf64-gen.lo elf32-gen.lo plugin.lo cpu-mips.lo cpu-plugin.lo  archive64.lo ofiles
 G_libbfd_la_OBJECTS=archive.lo archures.lo bfd.lo bfdio.lo bfdwin.lo  cache.lo coff-bfd.lo compress.lo corefile.lo format.lo hash.lo  init.lo libbfd.lo linker.lo merge.lo opncls.lo reloc.lo  section.lo simple.lo stab-syms.lo stabs.lo syms.lo targets.lo  binary.lo ihex.lo srec.lo tekhex.lo verilog.lo
 G_DEFS=-DHAVE_CONFIG_H
-G_INCLUDES=-I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include   -DHAVE_mips_elf32_trad_be_vec -DHAVE_mips_elf32_trad_le_vec -DHAVE_mips_elf64_trad_be_vec -DHAVE_mips_elf64_trad_le_vec -DHAVE_mips_ecoff_be_vec -DHAVE_mips_ecoff_le_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec -DHAVE_elf32_le_vec -DHAVE_elf32_be_vec -DHAVE_plugin_vec -I./../intl
-G_TDEFAULTS=-DDEFAULT_VECTOR=mips_elf32_trad_be_vec -DSELECT_VECS='_elf32_trad_be_vec,_elf32_trad_le_vec,_elf64_trad_be_vec,_elf64_trad_le_vec,_ecoff_be_vec,_ecoff_le_vec,_le_vec,_be_vec,_le_vec,_be_vec,_vec' -DSELECT_ARCHITECTURES='_mips_arch,_plugin_arch'
+G_INCLUDES=-I. -I${GNUHOSTDIST}/bfd -I${GNUHOSTDIST}/bfd/../include   -DHAVE_mips_elf32_trad_be_vec -DHAVE_mips_elf32_trad_le_vec -DHAVE_mips_elf32_ntrad_be_vec -DHAVE_mips_elf32_ntrad_le_vec -DHAVE_mips_elf64_trad_le_vec -DHAVE_mips_elf64_trad_be_vec -DHAVE_mips_ecoff_be_vec -DHAVE_mips_ecoff_le_vec -DHAVE_elf64_le_vec -DHAVE_elf64_be_vec -DHAVE_elf32_le_vec 

CVS commit: src/usr.bin/systat

2016-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Mon Oct 24 00:40:17 UTC 2016

Modified Files:
src/usr.bin/systat: bufcache.c

Log Message:
sysctlbyname is convenient, but ain't cheap. Cache it.


To generate a diff of this commit:
cvs rdiff -u -r1.26 -r1.27 src/usr.bin/systat/bufcache.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.bin/systat/bufcache.c
diff -u src/usr.bin/systat/bufcache.c:1.26 src/usr.bin/systat/bufcache.c:1.27
--- src/usr.bin/systat/bufcache.c:1.26	Fri Oct 18 16:47:07 2013
+++ src/usr.bin/systat/bufcache.c	Sun Oct 23 20:40:17 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: bufcache.c,v 1.26 2013/10/18 20:47:07 christos Exp $	*/
+/*	$NetBSD: bufcache.c,v 1.27 2016/10/24 00:40:17 christos Exp $	*/
 
 /*-
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -31,7 +31,7 @@
 
 #include 
 #ifndef lint
-__RCSID("$NetBSD: bufcache.c,v 1.26 2013/10/18 20:47:07 christos Exp $");
+__RCSID("$NetBSD: bufcache.c,v 1.27 2016/10/24 00:40:17 christos Exp $");
 #endif /* not lint */
 
 #include 
@@ -128,10 +128,17 @@ showbufcache(void)
 	double tvalid, tsize;
 	struct ml_entry *ml;
 	size_t len;
+	static int mib[] = { -1, 0 };
 
+	if (mib[0] == -1) {
+		len = __arraycount(mib);
+		if (sysctlnametomib("vm.bufmem", mib, ) == -1)
+			error("can't get \"vm.bufmem\" mib: %s",
+			strerror(errno));
+	}
 	len = sizeof(bufmem);
-	if (sysctlbyname("vm.bufmem", , , NULL, 0))
-		error("can't get \"vm.bufmmem\": %s", strerror(errno));
+	if (sysctl(mib, 2, , , NULL, 0) == -1)
+		error("can't get \"vm.bufmem\": %s", strerror(errno));
 
 	mvwprintw(wnd, 0, 0,
 	"   %*d metadata buffers using %*"PRIu64" kBytes of "



CVS commit: src/lib/libcurses

2016-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 23 21:20:56 UTC 2016

Modified Files:
src/lib/libcurses: curses_private.h delwin.c newwin.c printw.c

Log Message:
It is expensive to open and close files for every printf, keep it around.


To generate a diff of this commit:
cvs rdiff -u -r1.50 -r1.51 src/lib/libcurses/curses_private.h
cvs rdiff -u -r1.18 -r1.19 src/lib/libcurses/delwin.c
cvs rdiff -u -r1.47 -r1.48 src/lib/libcurses/newwin.c
cvs rdiff -u -r1.22 -r1.23 src/lib/libcurses/printw.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libcurses/curses_private.h
diff -u src/lib/libcurses/curses_private.h:1.50 src/lib/libcurses/curses_private.h:1.51
--- src/lib/libcurses/curses_private.h:1.50	Thu Feb 20 04:42:42 2014
+++ src/lib/libcurses/curses_private.h	Sun Oct 23 17:20:56 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: curses_private.h,v 1.50 2014/02/20 09:42:42 blymn Exp $	*/
+/*	$NetBSD: curses_private.h,v 1.51 2016/10/23 21:20:56 christos Exp $	*/
 
 /*-
  * Copyright (c) 1998-2000 Brett Lymn
@@ -147,6 +147,7 @@ struct __window {		/* Window structure. 
 #ifdef HAVE_WCHAR
 	nschar_t *bnsp;			/* Background non-spacing char list */
 #endif /* HAVE_WCHAR */
+	FILE	*fp;			/* for window formatted printf */
 };
 
 /* Set of attributes unset by 'me' - 'mb', 'md', 'mh', 'mk', 'mp' and 'mr'. */

Index: src/lib/libcurses/delwin.c
diff -u src/lib/libcurses/delwin.c:1.18 src/lib/libcurses/delwin.c:1.19
--- src/lib/libcurses/delwin.c:1.18	Tue Oct 15 18:15:17 2013
+++ src/lib/libcurses/delwin.c	Sun Oct 23 17:20:56 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: delwin.c,v 1.18 2013/10/15 22:15:17 roy Exp $	*/
+/*	$NetBSD: delwin.c,v 1.19 2016/10/23 21:20:56 christos Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)delwin.c	8.2 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: delwin.c,v 1.18 2013/10/15 22:15:17 roy Exp $");
+__RCSID("$NetBSD: delwin.c,v 1.19 2016/10/23 21:20:56 christos Exp $");
 #endif
 #endif/* not lint */
 
@@ -112,6 +112,8 @@ delwin(WINDOW *win)
 		_cursesi_screen->stdscr = NULL;
 	if (win == _cursesi_screen->__virtscr)
 		_cursesi_screen->__virtscr = NULL;
+	if (win->fp)
+		fclose(win->fp);
 	free(win);
 	return (OK);
 }

Index: src/lib/libcurses/newwin.c
diff -u src/lib/libcurses/newwin.c:1.47 src/lib/libcurses/newwin.c:1.48
--- src/lib/libcurses/newwin.c:1.47	Wed Jul 22 12:57:15 2009
+++ src/lib/libcurses/newwin.c	Sun Oct 23 17:20:56 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: newwin.c,v 1.47 2009/07/22 16:57:15 roy Exp $	*/
+/*	$NetBSD: newwin.c,v 1.48 2016/10/23 21:20:56 christos Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)newwin.c	8.3 (Berkeley) 7/27/94";
 #else
-__RCSID("$NetBSD: newwin.c,v 1.47 2009/07/22 16:57:15 roy Exp $");
+__RCSID("$NetBSD: newwin.c,v 1.48 2016/10/23 21:20:56 christos Exp $");
 #endif
 #endif/* not lint */
 
@@ -292,6 +292,7 @@ __makenew(SCREEN *screen, int nlines, in
 #ifdef DEBUG
 	__CTRACE(__CTRACE_WINDOW, "makenew: win = %p\n", win);
 #endif
+	win->fp = NULL;
 
 	/* Set up line pointer array and line space. */
 	if ((win->alines = malloc(nlines * sizeof(__LINE *))) == NULL) {

Index: src/lib/libcurses/printw.c
diff -u src/lib/libcurses/printw.c:1.22 src/lib/libcurses/printw.c:1.23
--- src/lib/libcurses/printw.c:1.22	Sun Jul 17 16:54:34 2011
+++ src/lib/libcurses/printw.c	Sun Oct 23 17:20:56 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: printw.c,v 1.22 2011/07/17 20:54:34 joerg Exp $	*/
+/*	$NetBSD: printw.c,v 1.23 2016/10/23 21:20:56 christos Exp $	*/
 
 /*
  * Copyright (c) 1981, 1993, 1994
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "@(#)printw.c	8.3 (Berkeley) 5/4/94";
 #else
-__RCSID("$NetBSD: printw.c,v 1.22 2011/07/17 20:54:34 joerg Exp $");
+__RCSID("$NetBSD: printw.c,v 1.23 2016/10/23 21:20:56 christos Exp $");
 #endif
 #endif/* not lint */
 
@@ -47,8 +47,6 @@ __RCSID("$NetBSD: printw.c,v 1.22 2011/0
  * printw and friends.
  */
 
-static int __winwrite __P((void *, const char *, int));
-
 /*
  * printw --
  *	Printf on the standard screen.
@@ -115,24 +113,21 @@ mvwprintw(WINDOW * win, int y, int x, co
 /*
  * Internal write-buffer-to-window function.
  */
-static int
-__winwrite(cookie, buf, n)
-	void   *cookie;
-	const char *buf;
-	int n;
+static ssize_t
+winwrite(void   *cookie, const void *vbuf, size_t n)
 {
 	WINDOW *win;
-	int c;
+	size_t c;
+	const char *buf = vbuf;
 
-	for (c = n, win = cookie; --c >= 0;)
-	{
+	for (c = 0, win = cookie; c < n; c++) {
 #ifdef DEBUG
 		__CTRACE(__CTRACE_MISC, "__winwrite: %c\n", *buf);
 #endif
 		if (waddch(win, (chtype) (*buf++ & __CHARTEXT)) == ERR)
 			return (-1);
 	}
-	return (n);
+	return (ssize_t)n;
 }
 /*
  * vw_printw --
@@ -141,12 +136,14 @@ __winwrite(cookie, buf, n)
 int
 vw_printw(WINDOW *win, const char *fmt, va_list ap)
 {
-	FILE   *f;
-
-	if ((f = funopen(win, NULL, __winwrite, 

CVS commit: src/lib/libc/stdio

2016-10-23 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Oct 23 21:01:52 UTC 2016

Modified Files:
src/lib/libc/stdio: funopen.c

Log Message:
PR/51572: calling funopen on each printw call is a tad excessive, but this
is not a reason for funopen to leak. Always call the close function since we
are indirecting through our cookie and we need to free it.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/lib/libc/stdio/funopen.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/lib/libc/stdio/funopen.c
diff -u src/lib/libc/stdio/funopen.c:1.14 src/lib/libc/stdio/funopen.c:1.15
--- src/lib/libc/stdio/funopen.c:1.14	Wed Mar 28 11:21:11 2012
+++ src/lib/libc/stdio/funopen.c	Sun Oct 23 17:01:52 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: funopen.c,v 1.14 2012/03/28 15:21:11 christos Exp $	*/
+/*	$NetBSD: funopen.c,v 1.15 2016/10/23 21:01:52 christos Exp $	*/
 
 /*-
  * Copyright (c) 1990, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)funopen.c	8.1 (Berkeley) 6/4/93";
 #else
-__RCSID("$NetBSD: funopen.c,v 1.14 2012/03/28 15:21:11 christos Exp $");
+__RCSID("$NetBSD: funopen.c,v 1.15 2016/10/23 21:01:52 christos Exp $");
 #endif
 #endif /* LIBC_SCCS and not lint */
 
@@ -138,6 +138,8 @@ cclosefn(void *dookie)
 	void *c = d->cookie;
 	int (*cf)(void *) = d->closefn;
 	free(dookie);
+	if (cf == NULL)
+		return 0;
 	return (*cf)(c);
 }
 
@@ -163,8 +165,7 @@ funopen(const void *cookie,
 	d->readfn ? creadfn : NULL,
 	d->writefn ? cwritefn : NULL,
 	d->seekfn ? cseekfn : NULL,
-	NULL,
-	d->closefn ? cclosefn : NULL);
+	NULL, cclosefn);
 	if (fp != NULL)
 		return fp;
 	free(d);



CVS commit: src/external/gpl3/gdb/lib

2016-10-23 Thread matthew green
Module Name:src
Committed By:   mrg
Date:   Sun Oct 23 18:51:56 UTC 2016

Modified Files:
src/external/gpl3/gdb/lib/libbfd/arch/arm: bfd_stdint.h
src/external/gpl3/gdb/lib/libbfd/arch/armeb: bfd_stdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/arm: gstdint.h
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb: gstdint.h
src/external/gpl3/gdb/lib/libgdb/arch/arm: defs.mk init.c version.c
src/external/gpl3/gdb/lib/libgdb/arch/armeb: defs.mk init.c version.c

Log Message:
regen after config.bfd fix.


To generate a diff of this commit:
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h
cvs rdiff -u -r1.8 -r1.9 \
src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h
cvs rdiff -u -r1.7 -r1.8 \
src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/gstdint.h
cvs rdiff -u -r1.9 -r1.10 src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/arm/init.c
cvs rdiff -u -r1.7 -r1.8 src/external/gpl3/gdb/lib/libgdb/arch/arm/version.c
cvs rdiff -u -r1.8 -r1.9 src/external/gpl3/gdb/lib/libgdb/arch/armeb/defs.mk \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/init.c
cvs rdiff -u -r1.6 -r1.7 \
src/external/gpl3/gdb/lib/libgdb/arch/armeb/version.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h:1.8 src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h:1.9
--- src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h:1.8	Sun Oct 16 04:30:04 2016
+++ src/external/gpl3/gdb/lib/libbfd/arch/arm/bfd_stdint.h	Sun Oct 23 18:51:55 2016
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gdb,v 1.6 2013/10/03 18:58:37 christos Exp  */
+/* Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
 
 /* generated for  arm--netbsdelf-eabi-gcc (NetBSD nb1 20160606) 5.4.0 */

Index: src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h
diff -u src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h:1.7 src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h:1.8
--- src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h:1.7	Sun Oct 16 04:30:04 2016
+++ src/external/gpl3/gdb/lib/libbfd/arch/armeb/bfd_stdint.h	Sun Oct 23 18:51:55 2016
@@ -1,8 +1,8 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gdb,v 1.6 2013/10/03 18:58:37 christos Exp  */
+/* Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
 
-/* generated for  armeb--netbsdelf-gcc (NetBSD nb1 20160606) 5.4.0 */
+/* generated for  armeb--netbsdelf-eabi-gcc (NetBSD nb1 20160606) 5.4.0 */
 
 #ifndef GCC_GENERATED_STDINT_H
 #define GCC_GENERATED_STDINT_H 1

Index: src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h
diff -u src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h:1.8 src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h:1.9
--- src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h:1.8	Sun Oct 16 04:30:04 2016
+++ src/external/gpl3/gdb/lib/libdecnumber/arch/arm/gstdint.h	Sun Oct 23 18:51:55 2016
@@ -1,5 +1,5 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gdb,v 1.6 2013/10/03 18:58:37 christos Exp  */
+/* Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
 
 /* generated for  arm--netbsdelf-eabi-gcc (NetBSD nb1 20160606) 5.4.0 */

Index: src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/gstdint.h
diff -u src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/gstdint.h:1.7 src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/gstdint.h:1.8
--- src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/gstdint.h:1.7	Sun Oct 16 04:30:04 2016
+++ src/external/gpl3/gdb/lib/libdecnumber/arch/armeb/gstdint.h	Sun Oct 23 18:51:55 2016
@@ -1,8 +1,8 @@
 /* This file is automatically generated.  DO NOT EDIT! */
-/* Generated from: NetBSD: mknative-gdb,v 1.6 2013/10/03 18:58:37 christos Exp  */
+/* Generated from: NetBSD: mknative-gdb,v 1.7 2016/10/16 04:37:42 mrg Exp  */
 /* Generated from: NetBSD: mknative.common,v 1.11 2014/02/17 21:39:43 christos Exp  */
 
-/* generated for  armeb--netbsdelf-gcc (NetBSD nb1 20160606) 5.4.0 */
+/* generated for  armeb--netbsdelf-eabi-gcc (NetBSD nb1 20160606) 5.4.0 */
 
 #ifndef GCC_GENERATED_STDINT_H
 #define GCC_GENERATED_STDINT_H 1

Index: src/external/gpl3/gdb/lib/libgdb/arch/arm/defs.mk
diff -u 

CVS commit: src/sys/arch/amiga/dev

2016-10-23 Thread Frank Wille
Module Name:src
Committed By:   phx
Date:   Sun Oct 23 18:40:52 UTC 2016

Modified Files:
src/sys/arch/amiga/dev: mntva.c

Log Message:
Fixed WSCONS kernels. The cnprobe function must only be called when
MNTVA_CONSOLE is defined.


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/arch/amiga/dev/mntva.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/amiga/dev/mntva.c
diff -u src/sys/arch/amiga/dev/mntva.c:1.1 src/sys/arch/amiga/dev/mntva.c:1.2
--- src/sys/arch/amiga/dev/mntva.c:1.1	Mon Oct  3 14:26:02 2016
+++ src/sys/arch/amiga/dev/mntva.c	Sun Oct 23 18:40:52 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: mntva.c,v 1.1 2016/10/03 14:26:02 rkujawa Exp $	*/
+/*	$NetBSD: mntva.c,v 1.2 2016/10/23 18:40:52 phx Exp $	*/
 
 /*
  * Copyright (c) 2012, 2016 The NetBSD Foundation, Inc.		
@@ -31,7 +31,7 @@
  */
 
 #include 
-__KERNEL_RCSID(0, "$NetBSD: mntva.c,v 1.1 2016/10/03 14:26:02 rkujawa Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mntva.c,v 1.2 2016/10/23 18:40:52 phx Exp $");
 
 #include 
 #include 
@@ -593,6 +593,7 @@ mntvacninit(struct consdev *cd) 
 void 
 mntvacnprobe(struct consdev *cd)
 {
+#ifdef MNTVA_CONSOLE
 	/* 
 	 * This isn't exactly true, but cons.h does not define anything
 	 * that would fit our case exactly.
@@ -600,6 +601,7 @@ mntvacnprobe(struct consdev *cd)
 	cd->cn_pri = CN_INTERNAL;
 
 	cd->cn_dev = NODEV; /* Filled later by wscons. */
+#endif /* MNTVA_CONSOLE */
 }
 
 /* ARGSUSED */



CVS commit: src/external/gpl3/gdb/dist/bfd

2016-10-23 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Oct 23 12:46:57 UTC 2016

Modified Files:
src/external/gpl3/gdb/dist/bfd: config.bfd

Log Message:
Sync with external/gpl3/binutils/dist/bfd/config.bfd for mips so we build
in the right vector set


To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/external/gpl3/gdb/dist/bfd/config.bfd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/bfd/config.bfd
diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.15 src/external/gpl3/gdb/dist/bfd/config.bfd:1.16
--- src/external/gpl3/gdb/dist/bfd/config.bfd:1.15	Sun Oct 23 12:43:01 2016
+++ src/external/gpl3/gdb/dist/bfd/config.bfd	Sun Oct 23 12:46:57 2016
@@ -1105,11 +1105,11 @@ case "${targ}" in
 ;;
   mips*el-*-netbsd*)
 targ_defvec=mips_elf32_trad_le_vec
-targ_selvecs="mips_elf32_trad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
+targ_selvecs="mips_elf32_trad_be_vec mips_elf32_ntrad_le_vec mips_elf32_ntrad_be_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_le_vec mips_ecoff_be_vec"
 ;;
   mips*-*-netbsd*)
 targ_defvec=mips_elf32_trad_be_vec
-targ_selvecs="mips_elf32_trad_le_vec mips_elf64_trad_be_vec mips_elf64_trad_le_vec mips_ecoff_be_vec mips_ecoff_le_vec"
+targ_selvecs="mips_elf32_trad_le_vec mips_elf32_ntrad_be_vec mips_elf32_ntrad_le_vec mips_elf64_trad_le_vec mips_elf64_trad_be_vec mips_ecoff_be_vec mips_ecoff_le_vec"
 ;;
   mips64*-*-openbsd*)
 targ_defvec=mips_elf64_trad_be_vec



CVS commit: src/external/gpl3/gdb/dist/bfd

2016-10-23 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Oct 23 12:43:02 UTC 2016

Modified Files:
src/external/gpl3/gdb/dist/bfd: config.bfd

Log Message:
Sync with external/gpl3/binutils/dist/bfd/config.bfd for arm so we build
in the right vector set


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/external/gpl3/gdb/dist/bfd/config.bfd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/bfd/config.bfd
diff -u src/external/gpl3/gdb/dist/bfd/config.bfd:1.14 src/external/gpl3/gdb/dist/bfd/config.bfd:1.15
--- src/external/gpl3/gdb/dist/bfd/config.bfd:1.14	Fri Oct 14 14:41:32 2016
+++ src/external/gpl3/gdb/dist/bfd/config.bfd	Sun Oct 23 12:43:01 2016
@@ -314,11 +314,11 @@ case "${targ}" in
 targ64_selvecs="x86_64_elf32_nacl_vec x86_64_elf64_nacl_vec"
 targ_archs="$targ_archs bfd_i386_arch"
 ;;
-  armeb-*-netbsdelf*)
+  arm*eb-*-netbsdelf*)
 targ_defvec=arm_elf32_be_vec
 targ_selvecs="arm_elf32_le_vec arm_aout_nbsd_vec"
 ;;
-  arm-*-netbsdelf*)
+  arm*-*-netbsdelf*)
 targ_defvec=arm_elf32_le_vec
 targ_selvecs="arm_elf32_be_vec arm_aout_nbsd_vec"
 ;;



CVS commit: src/bin/sh

2016-10-23 Thread Abhinav Upadhyay
Module Name:src
Committed By:   abhinav
Date:   Sun Oct 23 08:24:28 UTC 2016

Modified Files:
src/bin/sh: show.c

Log Message:
Remove unused variables.
Fixes the sh(1) build when DEBUG is enabled.


To generate a diff of this commit:
cvs rdiff -u -r1.33 -r1.34 src/bin/sh/show.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/bin/sh/show.c
diff -u src/bin/sh/show.c:1.33 src/bin/sh/show.c:1.34
--- src/bin/sh/show.c:1.33	Wed May 11 17:28:30 2016
+++ src/bin/sh/show.c	Sun Oct 23 08:24:27 2016
@@ -1,4 +1,4 @@
-/*	$NetBSD: show.c,v 1.33 2016/05/11 17:28:30 kre Exp $	*/
+/*	$NetBSD: show.c,v 1.34 2016/10/23 08:24:27 abhinav Exp $	*/
 
 /*-
  * Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
 #if 0
 static char sccsid[] = "@(#)show.c	8.3 (Berkeley) 5/4/95";
 #else
-__RCSID("$NetBSD: show.c,v 1.33 2016/05/11 17:28:30 kre Exp $");
+__RCSID("$NetBSD: show.c,v 1.34 2016/10/23 08:24:27 abhinav Exp $");
 #endif
 #endif /* not lint */
 
@@ -170,8 +170,6 @@ shcmd(union node *cmd, FILE *fp)
 {
 	union node *np;
 	int first;
-	const char *s;
-	int dftfd;
 	int len = 0;
 
 	first = 1;



CVS commit: src/external/gpl3/gdb/dist/gdb

2016-10-23 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Oct 23 07:40:09 UTC 2016

Modified Files:
src/external/gpl3/gdb/dist/gdb: armnbsd-tdep.c

Log Message:
Trailing whitespace


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c:1.6 src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c:1.7
--- src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c:1.6	Sun Oct 23 07:33:15 2016
+++ src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c	Sun Oct 23 07:40:08 2016
@@ -87,9 +87,9 @@ arm_netbsd_init_abi_common (struct gdbar
 (gdbarch, armbsd_iterate_over_regset_sections);
 
 }
-  
+
 static void
-arm_netbsd_aout_init_abi (struct gdbarch_info info, 
+arm_netbsd_aout_init_abi (struct gdbarch_info info,
 			  struct gdbarch *gdbarch)
 {
   struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);



CVS commit: src/external/gpl3/gdb/dist/gdb

2016-10-23 Thread Nick Hudson
Module Name:src
Committed By:   skrll
Date:   Sun Oct 23 07:33:15 UTC 2016

Modified Files:
src/external/gpl3/gdb/dist/gdb: armnbsd-tdep.c configure.tgt

Log Message:
PR toolchain/51557: gdb can't read core files

Register an iterate_over_regset_sections methods for armnbsd


To generate a diff of this commit:
cvs rdiff -u -r1.5 -r1.6 src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c
cvs rdiff -u -r1.12 -r1.13 src/external/gpl3/gdb/dist/gdb/configure.tgt

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c
diff -u src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c:1.5 src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c:1.6
--- src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c:1.5	Wed Oct 12 20:20:33 2016
+++ src/external/gpl3/gdb/dist/gdb/armnbsd-tdep.c	Sun Oct 23 07:33:15 2016
@@ -82,6 +82,10 @@ arm_netbsd_init_abi_common (struct gdbar
 
   /* Single stepping.  */
   set_gdbarch_software_single_step (gdbarch, arm_software_single_step);
+  /* Core support */
+  set_gdbarch_iterate_over_regset_sections
+(gdbarch, armbsd_iterate_over_regset_sections);
+
 }
   
 static void

Index: src/external/gpl3/gdb/dist/gdb/configure.tgt
diff -u src/external/gpl3/gdb/dist/gdb/configure.tgt:1.12 src/external/gpl3/gdb/dist/gdb/configure.tgt:1.13
--- src/external/gpl3/gdb/dist/gdb/configure.tgt:1.12	Fri Oct 14 14:41:32 2016
+++ src/external/gpl3/gdb/dist/gdb/configure.tgt	Sun Oct 23 07:33:15 2016
@@ -108,8 +108,8 @@ arm*-*-linux*)
 	;;
 arm*-*-netbsd* | arm*-*-knetbsd*-gnu)
 	# Target: NetBSD/arm
-	gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o armnbsd-tdep.o \
-			solib-svr4.o"
+	gdb_target_obs="arm.o arm-get-next-pcs.o arm-tdep.o armbsd-tdep.o \
+			armnbsd-tdep.o solib-svr4.o"
 	;;
 arm*-*-openbsd*)
 	# Target: OpenBSD/arm