libkvm: fix kvm_getargv/kvm_getenvv
these functions always fail because of a regression in 2022.
("read the ps arguments from the correct place.")
this commit restores them by adding a missing p_psstrp initialization.
sysctl_doeproc: fix an argument check
this commit fixes a regression in 2015, which made
kvm_getprocs(KERN_PROC_ALL) always fail.
("implementation of KERN_PROC_PATHNAME, some refactoring for KERN_PROC.")
Clean-up / consolidation of m68k bus error / address error handling
code. This is not a very radical change for most m68k platforms,
since they were using a version of this re-factored code already via
an #include directive in locore.s. Now, however, the bus error handlers
are split into CPU "generation"-specific files, and brought into the
kernel via the CPU options in the kernel config file (the goal being
to reduce boilerplate in each locore.s).
The more notable changes:
- amiga and atari no longer have their own copy of each handler, and
some of their local tweaks have been folded into the shared code.
- sun2's bus error handling code has been re-factored into a shared
buserr_10.s to facilitate support for other 68010-based systems (all
of which have their own custom MMU).
- sun3's bus error handling code has been re-refactored into the
shared buserr_2030.s. The Sun3-specific MMU handling is treated
just like the HP-specific MMU handling that was already there.
This additional #ifdef is a small price to pay for more code sharing.
- sun3x now also uses the shared buserr_2030.s rather than an identical
[12 lines not shown]
Import gdb-17.1, previous was 16.3
This version of GDB includes the following changes and enhancements:
* x86-64 CET shadow stack support
* Debugging Linux programs that use AArch64 Guarded Control Stacks
* GDB record feature now supports rv64gc architectures
* 'info threads' command support for two new options '-stopped' and
'-running' to limit the list of displayed threads.
* On Linux and FreeBSD, the addresses shown by the 'info
sharedlibrary' command are now for the full memory range
allocated to the shared library.
* Linux checkpoints now work with multiple inferiors
* Improved linker namespace support
* Warnings and error messages now start with an emoji (warning
sign, or cross mark) if supported by the host charset.
Configurable.
* Built-in support for TLS on Linux as backup when libthread_db is
not available. Supported on the x86_64, aarch64, ppc64, s390x,
[72 lines not shown]
gpt: fix compile-time integer overflow for terabytes and petabytes
Previously, overly large values for mediasize in TB and PB were accepted
and processed modulo 1<<64.
lint complained: main.c(223): warning:
'18446744073708503040 * 1024' overflows 'unsigned long'
Improve the type builtin command slightly.
Get rid of the "is a tracked alias for" nonsense response, which
adds no useful information (just confusion) - if "type foo" said
foo is /usr/bin/foo, the next time it would say foo is a tracked
alias for /usr/bin/foo (with nothing else changing or happening
at all). I had intended to remove that attribution years ago,
and I was actually sure that I had done so, but it turns out, that
somehow it got forgotten. Now the result for "type foo" (assuming
that foo isn't changing externally, by being renamed, or created,
or something similar, or PATH changing) will be the same each time
the command is run.
While doing that, also improve the output should someone request
the type of '' (probably as a result of type "${foo}" where foo
is empty, or a name typo, or similar).
lint: do not warn about snprintb mixing 'f' with ':'
Most often, 'f' is used with '=', but in cases where the description
does not start with an identifier, there is no risk of pasting the
number and the value description together without a separator.
snprintb: allow 'F' and 'f' to be freely mixed with '=' and ':'
This restores the behavior from NetBSD 10.
While in most cases, 'f' is used with '=' and 'F' is used with ':',
there are useful cases for the other combinations as well, so allow
them.
Planned for pull-up to NetBSD 11.
tests/snprintb: ensure that the value has power-of-two digits
In direct calls to h_snprintb_m_len, several arguments are integers, so
provide a way to distinguish them visually by forcing the value to be
given in hexadecimal. The buffer sizes are typically given in decimal.
Prevent excess or forgotten digits by requiring the number of digits in
the value to be a power of two.
make: ensure .MAKE.SAVE_DOLLARS is set.
This makes it possible for macros to be set so as to work correctly
whether .MAKE.SAVE_DOLLARS is "yes" (NetBSD) or "no" (bmake).
- Simplify processing by centralizing: no need to prefix all errors with
"%lu: %s: " and pass fname, lineno to each; do it in one place.
- Use emalloc and friends instead of homegrown xmalloc and friends.