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

2020-12-13 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Dec 14 02:05:08 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c

Log Message:
Add some precautions for platforms without PT_STEP support.

"nat/gdb_ptrace.h" defines PT_STEP as 9, if it is not defined. nat-ptrace.c
depends on this; inf_ptrace_target::resume() uses PT_STEP unconditionally
when its ``step'' argument is non-zero. Therefore,

- Add comment that nbsd-nat.c should include  directly,
  instead of "nat/gdb_ptrace.h".

- Add gdb_assert(step == 0) in nbsd_nat_target::resume() ifndef PT_STEP,
  before calling inf_ptrace_target::resume().


To generate a diff of this commit:
cvs rdiff -u -r1.21 -r1.22 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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



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

2020-12-13 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Dec 14 02:01:03 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: nbsd-nat.c

Log Message:
Revert previous as per request from kamil; now, arm/ptrace.h does not
expose unimplemented PT_STEP.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/external/gpl3/gdb/dist/gdb/nbsd-nat.c

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



CVS commit: src/sys/arch/arm/include

2020-12-13 Thread Rin Okuyama
Module Name:src
Committed By:   rin
Date:   Mon Dec 14 01:58:48 UTC 2020

Modified Files:
src/sys/arch/arm/include: ptrace.h

Log Message:
Obsolete PT_STEP and friends, that have never been implemented.

PT_STEP was exposed to userland for NetBSD 1.6 to 9, and
PT_SETSTEP and PT_CLEARSTEP was for 8 to 9. Therefore, they cannot be
reused for other purposes.

PT_STEP was introduced to arm/ptrace.h rev 1.2:

http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/arch/arm/include/ptrace.h#rev1.2

This was for workaround against GDB, which assumes PT_STEP is 9 (even
today!!), if it is undefined. But, this should have been dealt with
differently...


To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/sys/arch/arm/include/ptrace.h

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



CVS commit: src/sbin/gpt

2020-12-13 Thread John Nemeth
Module Name:src
Committed By:   jnemeth
Date:   Sun Dec 13 21:55:25 UTC 2020

Modified Files:
src/sbin/gpt: recover.c

Log Message:
PR/55875 - Valentin -- "gpt recover -r" does nothing

Delete do nothing undocumented option, that was there from initial
import.  No idea what it was intended to do and there is no longer
an "upstream".


To generate a diff of this commit:
cvs rdiff -u -r1.18 -r1.19 src/sbin/gpt/recover.c

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 21:27:46 UTC 2020

Modified Files:
src/usr.bin/make: for.c meta.c parse.c var.c

Log Message:
make(1): replace %zu with %u in printf calls

This is needed to compile bmake with GCC 2.8.1 on SunOS 5.9.

To support ancient systems like this, the whole code of usr.bin/make is
supposed to use only ISO C90 features, except for filemon, which is not
used on these systems.


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 src/usr.bin/make/for.c
cvs rdiff -u -r1.159 -r1.160 src/usr.bin/make/meta.c
cvs rdiff -u -r1.480 -r1.481 src/usr.bin/make/parse.c
cvs rdiff -u -r1.733 -r1.734 src/usr.bin/make/var.c

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 20:57:17 UTC 2020

Modified Files:
src/usr.bin/make: lst.c lst.h

Log Message:
make(1): rename Vector.priv_cap to cap

There is no use case for accessing or even modifying the capacity of a
vector, therefore there is no need to hide it using the prefix "priv_".
This way, the member names are aligned between Buffer and Vector.


To generate a diff of this commit:
cvs rdiff -u -r1.100 -r1.101 src/usr.bin/make/lst.c
cvs rdiff -u -r1.92 -r1.93 src/usr.bin/make/lst.h

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



CVS commit: src/sys/arch/evbarm/conf

2020-12-13 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Dec 13 20:40:38 UTC 2020

Modified Files:
src/sys/arch/evbarm/conf: GENERIC64

Log Message:
SBBR says that the CPPC interface should be used on AArch64 instead of
P-states and T-states. Enable acpipcc and acpicppc, and disable acpicpu.


To generate a diff of this commit:
cvs rdiff -u -r1.166 -r1.167 src/sys/arch/evbarm/conf/GENERIC64

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



CVS commit: src/sys/dev/acpi

2020-12-13 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Dec 13 20:39:20 UTC 2020

Modified Files:
src/sys/dev/acpi: files.acpi
Added Files:
src/sys/dev/acpi: acpi_cppc.c

Log Message:
acpi: Add support for Collaborative Processor Performance Control (CPPC).

CPPC is the modern replacement for processor performance controls (P-states
and T-states). The _CPC method on a processor device contains information
about supported performance levels of the device.

This driver reports the supported performance levels and allows for
setting the desired level using the machdep.cpufreq.cpuN.* sysctls. Note
that a "performance level" value is not guaranteed to represent a CPU
frequency, so treat the numbers reported as such.


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/dev/acpi/acpi_cppc.c
cvs rdiff -u -r1.118 -r1.119 src/sys/dev/acpi/files.acpi

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



CVS commit: src/sys/dev/acpi

2020-12-13 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Dec 13 20:27:53 UTC 2020

Modified Files:
src/sys/dev/acpi: files.acpi
Added Files:
src/sys/dev/acpi: acpi_pcc.c acpi_pcc.h

Log Message:
acpi: Add support for ACPI Platform Communications Channel (PCC).


To generate a diff of this commit:
cvs rdiff -u -r0 -r1.1 src/sys/dev/acpi/acpi_pcc.c \
src/sys/dev/acpi/acpi_pcc.h
cvs rdiff -u -r1.117 -r1.118 src/sys/dev/acpi/files.acpi

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



CVS commit: src/sys

2020-12-13 Thread Jared D. McNeill
Module Name:src
Committed By:   jmcneill
Date:   Sun Dec 13 20:24:26 UTC 2020

Modified Files:
src/sys/arch/arm/acpi: acpi_machdep.c
src/sys/dev/acpi: acpi.c

Log Message:
Add MI support for attaching drivers to arbitrary System Description
Tables.


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/arch/arm/acpi/acpi_machdep.c
cvs rdiff -u -r1.287 -r1.288 src/sys/dev/acpi/acpi.c

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 20:14:48 UTC 2020

Modified Files:
src/usr.bin/make: arch.c dir.c job.c main.c meta.c nonints.h parse.c
suff.c var.c

Log Message:
make(1): add str_basename to reduce duplicate code

The function basename from POSIX has a few unfortunate properties, it is
allowed to return a pointer to static memory.  This is too unreliable,
therefore this trivial own implementation.


To generate a diff of this commit:
cvs rdiff -u -r1.187 -r1.188 src/usr.bin/make/arch.c
cvs rdiff -u -r1.251 -r1.252 src/usr.bin/make/dir.c
cvs rdiff -u -r1.386 -r1.387 src/usr.bin/make/job.c
cvs rdiff -u -r1.497 -r1.498 src/usr.bin/make/main.c
cvs rdiff -u -r1.158 -r1.159 src/usr.bin/make/meta.c
cvs rdiff -u -r1.170 -r1.171 src/usr.bin/make/nonints.h
cvs rdiff -u -r1.479 -r1.480 src/usr.bin/make/parse.c
cvs rdiff -u -r1.329 -r1.330 src/usr.bin/make/suff.c
cvs rdiff -u -r1.732 -r1.733 src/usr.bin/make/var.c

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 20:09:02 UTC 2020

Modified Files:
src/usr.bin/make: main.c make.h

Log Message:
make(1): constify progname


To generate a diff of this commit:
cvs rdiff -u -r1.496 -r1.497 src/usr.bin/make/main.c
cvs rdiff -u -r1.233 -r1.234 src/usr.bin/make/make.h

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 19:33:54 UTC 2020

Modified Files:
src/usr.bin/make: compat.c
src/usr.bin/make/unit-tests: compat-error.exp compat-error.mk

Log Message:
make(1): fix .ERROR_TARGET in compat -k mode (since 2010-04-07)


To generate a diff of this commit:
cvs rdiff -u -r1.214 -r1.215 src/usr.bin/make/compat.c
cvs rdiff -u -r1.2 -r1.3 src/usr.bin/make/unit-tests/compat-error.exp \
src/usr.bin/make/unit-tests/compat-error.mk

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



CVS commit: src/sys/fs/tmpfs

2020-12-13 Thread Chuck Silvers
Module Name:src
Committed By:   chs
Date:   Sun Dec 13 19:22:02 UTC 2020

Modified Files:
src/sys/fs/tmpfs: tmpfs_vnops.c

Log Message:
Disable use of UBC_FAULTBUSY in tmpfs_write() for now,
which brings back zeroing of all new tmpfs data pages.
The existing code that enables this optimization skips the zeroing
in numerous cases where it is needed, resulting in corrupted files
and data leaks from the page's previous identity.


To generate a diff of this commit:
cvs rdiff -u -r1.144 -r1.145 src/sys/fs/tmpfs/tmpfs_vnops.c

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



CVS commit: src/usr.bin/make/unit-tests

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 19:08:20 UTC 2020

Modified Files:
src/usr.bin/make/unit-tests: compat-error.exp compat-error.mk
varname-make_print_var_on_error-jobs.exp
varname-make_print_var_on_error-jobs.mk
varname-make_print_var_on_error.exp
varname-make_print_var_on_error.mk

Log Message:
make(1): add tests for variable expansion in .ERROR handling


To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/usr.bin/make/unit-tests/compat-error.exp \
src/usr.bin/make/unit-tests/compat-error.mk \
src/usr.bin/make/unit-tests/varname-make_print_var_on_error-jobs.exp \
src/usr.bin/make/unit-tests/varname-make_print_var_on_error-jobs.mk
cvs rdiff -u -r1.2 -r1.3 \
src/usr.bin/make/unit-tests/varname-make_print_var_on_error.exp
cvs rdiff -u -r1.4 -r1.5 \
src/usr.bin/make/unit-tests/varname-make_print_var_on_error.mk

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 18:57:44 UTC 2020

Modified Files:
src/usr.bin/make: compat.c

Log Message:
make(1): document variable expansion in the .END node


To generate a diff of this commit:
cvs rdiff -u -r1.213 -r1.214 src/usr.bin/make/compat.c

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 13 18:12:29 UTC 2020

Modified Files:
src/usr.bin/make: compat.c

Log Message:
fix comment


To generate a diff of this commit:
cvs rdiff -u -r1.212 -r1.213 src/usr.bin/make/compat.c

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



CVS commit: src

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 17:44:31 UTC 2020

Modified Files:
src/distrib/sets/lists/tests: mi
src/usr.bin/make/unit-tests: Makefile
Added Files:
src/usr.bin/make/unit-tests: compat-error.exp compat-error.mk

Log Message:
make(1): demonstrate wrong error handling in compat mode


To generate a diff of this commit:
cvs rdiff -u -r1.992 -r1.993 src/distrib/sets/lists/tests/mi
cvs rdiff -u -r1.248 -r1.249 src/usr.bin/make/unit-tests/Makefile
cvs rdiff -u -r0 -r1.1 src/usr.bin/make/unit-tests/compat-error.exp \
src/usr.bin/make/unit-tests/compat-error.mk

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



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

2020-12-13 Thread Christos Zoulas
Module Name:src
Committed By:   christos
Date:   Sun Dec 13 16:50:47 UTC 2020

Modified Files:
src/external/gpl3/gdb/dist/gdb: c-exp.y

Log Message:
Improve previous: generated names end with .[[:digits:]] so look for that
instead.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/external/gpl3/gdb/dist/gdb/c-exp.y

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 16:47:19 UTC 2020

Modified Files:
src/usr.bin/make: compat.c

Log Message:
make(1): add comments for strange error handling in Compat_Run


To generate a diff of this commit:
cvs rdiff -u -r1.211 -r1.212 src/usr.bin/make/compat.c

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 16:32:57 UTC 2020

Modified Files:
src/usr.bin/make: compat.c

Log Message:
make(1): extract InitSignals from Compat_Run


To generate a diff of this commit:
cvs rdiff -u -r1.210 -r1.211 src/usr.bin/make/compat.c

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 16:30:08 UTC 2020

Modified Files:
src/usr.bin/make: compat.c

Log Message:
make(1): extract MakeBeginNode from Compat_Run

The comment "execute the commands" had once been correct but not
anymore.  Since a few years, not only the commands of the .BEGIN and
.END nodes are executed, instead the nodes are made as usual, including
their dependencies.


To generate a diff of this commit:
cvs rdiff -u -r1.209 -r1.210 src/usr.bin/make/compat.c

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



CVS commit: src/usr.bin/make

2020-12-13 Thread Roland Illig
Module Name:src
Committed By:   rillig
Date:   Sun Dec 13 16:14:40 UTC 2020

Modified Files:
src/usr.bin/make: compat.c

Log Message:
make(1): extract UseShell from Compat_RunCommand


To generate a diff of this commit:
cvs rdiff -u -r1.208 -r1.209 src/usr.bin/make/compat.c

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



CVS commit: src/sys/arch/amd64/conf

2020-12-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Dec 13 08:23:52 UTC 2020

Modified Files:
src/sys/arch/amd64/conf: ALL

Log Message:
Add atppc* at acpi?


To generate a diff of this commit:
cvs rdiff -u -r1.164 -r1.165 src/sys/arch/amd64/conf/ALL

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



CVS commit: src/sys/dev/acpi

2020-12-13 Thread Martin Husemann
Module Name:src
Committed By:   martin
Date:   Sun Dec 13 08:20:56 UTC 2020

Modified Files:
src/sys/dev/acpi: atppc_acpi.c

Log Message:
Add missing include


To generate a diff of this commit:
cvs rdiff -u -r1.20 -r1.21 src/sys/dev/acpi/atppc_acpi.c

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