Commit Graph

302894 Commits

Author SHA1 Message Date
andvar c27785fcfe remove global sndebug definition. looks like historical leftover replaced
by SNDEBUG definition.
2023-08-22 08:33:50 +00:00
andvar ce23af690a newsmips: fix build with SNDEBUG option enabled.
It was broken since rev 1.21 24 years ago, and got more broken code later on:
remove leftover device_xname(sc->sc_dev) param from aprint_debug_dev in one block.
fix wrong method name devoce_xname to device_xname in second block.
rename et to eh for consistency, and define it (definition was removed in the past).
while here, improve the code with riastradh help to make it safer.

pullup to at least netbsd-10 is needed.
2023-08-22 07:13:33 +00:00
rin ee1dd380bf riscv/trap.c: Dump cause register for unhandled page fault 2023-08-22 07:11:15 +00:00
rin aedae9d693 riscv/trap.c: Handle userland breakpoint exception
Now, gdb 13 works for riscv64 to some extent :)
2023-08-22 07:10:39 +00:00
macallan 433d001a85 tsleep()/wakeup() -> cv_* 2023-08-22 06:43:34 +00:00
rin 142ea824f9 gdb/aarch64: Fix misplaced comment. No binary changes. 2023-08-22 06:22:36 +00:00
rin 26ff2d23d5 gdb/riscv: Specify lwpid for PT_[GS]ETREGS 2023-08-22 06:20:32 +00:00
rin e4d4de6a73 gdb/bfd: Add support to NetBSD-style core file for riscv 2023-08-22 06:16:50 +00:00
rin c6043cc0c0 gdb/bfd: mknative riscv{64,32} 2023-08-22 06:14:06 +00:00
rin 16019c8df2 gdb/bfd: Stop compiling in useless netbsd-core.c for riscv
netbsd-core.c is for the old-style core format, which has
never been used for riscv.

Note that:
- binutils/bfd does not use this file for riscv.
- Up-to-date core file format is supported by elf.c.
2023-08-22 06:12:10 +00:00
rin 9b45ffed94 t_ipsec_{gif,l2tp}: Adjust for tcpdump 4.99.4
It does not longer output redundant `` (ipip-proto-4)'':
cba9b77a98

Now, these tests become passing again.

Thanks mlelstv@ for finding out upstream commit.
OK ozaki-r@
2023-08-22 05:40:50 +00:00
christos a183ba5d34 add inotify tests, sort 2023-08-21 22:37:17 +00:00
christos ad38bef429 Add inotify (thanks Ryo) 2023-08-21 19:43:22 +00:00
palle d189132c86 PR57519: Fix awk script script (escape opening curly) so building with non-gnu versions of awk is possible (e.g. Solaris 11.4) 2023-08-21 18:46:57 +00:00
nia befa299d89 doc: ch-ch-changes 2023-08-21 10:10:39 +00:00
martin 9aeda966c7 Remove the compat linux (linux binaries) helpers *.debug files - they
are not installed (and probably would be useless if they were)
2023-08-21 09:54:07 +00:00
dholland 52043314dd paxctl(8): it is not a bug that paxctl settings are persistent.
Nor is it a bug that they're applied to the file rather than stored in
some magic secret database where they survive reinstalls, which the
prior wording seems to suggest was the eventual intention.

It is worth noting that they change the target file, so still say that.
2023-08-21 00:41:49 +00:00
rillig 0871f1c309 tests/make: show a difference between 'export' and '.export' 2023-08-20 20:48:32 +00:00
sjg 90280d3b93 make.1: note that %s should only be used with :localtime 2023-08-20 19:58:15 +00:00
riastradh 1b6a62ea92 distrib/sets/lists/tests: Correction: h_inotify_* are MI.
Debug lists are probably still wrong, though -- looks like there's no
rule to change h_inotify_*.out.debug to h_inotify_*.debug.  Out of
energy to look into this further, though; please fix me!
2023-08-20 19:36:56 +00:00
christos ed30ecde8c fix locking: eliminate using mutex_owned() (Theodore Preduta) 2023-08-20 18:09:25 +00:00
christos 812b354ccc add inotify (forgot to commit this) 2023-08-20 18:08:57 +00:00
riastradh 81ec9657b4 distrib/sets/lists: /usr/tests/compat/linux/h_* is amd64-only for now. 2023-08-20 12:29:16 +00:00
riastradh f34e29e918 distrib/sets/lists: compat/linux/h_*.debug is amd64-only for now. 2023-08-20 12:27:02 +00:00
riastradh 40998645f7 distrib/sets/lists: Add .debug files for new compat/linux tests. 2023-08-20 12:21:35 +00:00
riastradh 22a55953ad etc/mtree/NetBSD.dist.tests: Update for new compat linux tests. 2023-08-20 10:27:11 +00:00
rin f97ac75017 gdb/mknative: Preset yes to rename(2) checks
It must be better to have this workaround here, rather than in external.
(Thanks uwe@ for suggestion!)

Confirmed that the same files generated as before.
2023-08-20 02:30:58 +00:00
rin e4f05813c1 gdb/gnulib: Revert rename(2) workaround for now 2023-08-20 02:28:22 +00:00
rin b7377c06a9 bsd.own.mk: Put gdb back for m68000
However, unfortunately, it does not work even if MAXTSIZ is bumped.
It seems to be too large for 24-bit address space.

This is not a regression; gdb.old does not work also.
2023-08-20 02:11:21 +00:00
rin 6cfa3b0f83 gdb: mknative m68000 2023-08-20 02:08:44 +00:00
rin c0141d3aff lib/Makefile: Hook libgmp also for MKGDB=yes build
Now, gdb 13 can be built by clang, at least on amd64.
2023-08-20 02:07:54 +00:00
rin 800f65cfd0 gdb: mknative again everyone except for m68000 2023-08-20 02:04:12 +00:00
rin fd14c86fce gdb/gnulib: ``guess yes'' to rename(2) checks for NetBSD
Otherwise, rename(2) gets replaced by gnulib version for mknative
(i.e., cross compile), which results build failure for clang.

Confirmed that all rename(2) tests successfully passed at least on
amd64. Even if they will fail, it is our responsibility to fix them,
not gdb, anyway.

XXX
Edit configure by hand, rather than regen it, in order to avoid
subtle huge diffs from upstream, which come from autoconf version
mismatch.

XXX XXX
For gcc, replacement for rename(2) lost by cstdio, which forcibly
undefs all stdio functions. This should be an unintended behavior.

One of cstdio comes from our local change for c++locale.h, but
even if it is dropped, cstdio is included from elsewhere.
2023-08-20 02:02:40 +00:00
christos 8f452ed84f Add elfedit (needed to tag binaries as linux) from GSoC 2023 (Theodore Preduta) 2023-08-19 22:58:15 +00:00
christos d3de1600b5 Add inotify tests 2023-08-19 22:57:09 +00:00
christos b7a2c5757f Tests for the compat_linux inotify framework from GSoC 2023 (Theodore Preduta) 2023-08-19 22:56:43 +00:00
rillig 862b599eaa make: only work around wrong strftime if actually necessary
The workaround is only needed if the time format contains '%s', in all
other cases there is no need to preserve, set and restore the TZ
environment variable.  Suggested by sjg@.

Only check for 's' in the format string, not for '%s', to allow for
optional modifiers of the conversion specifier.
2023-08-19 19:59:17 +00:00
andvar 828b49ebb8 remove likely accidental part of the comment. 2023-08-19 19:21:34 +00:00
christos 8575c986c4 new inotify support GSoC 2023 (Theodore Preduta) 2023-08-19 17:57:54 +00:00
andvar b5ec4b2860 s/devicdes/devices/.
The question if those links should stay at all in see also section
(some irrelevant today).
2023-08-19 17:55:42 +00:00
christos 40dae343c0 regen 2023-08-19 17:50:24 +00:00
christos 90efcc86b8 Add inotify* syscalls GSoC 2023 (Theodore Preduta) 2023-08-19 17:49:49 +00:00
andvar 52d90fb889 fix typos in documented error codes. 2023-08-19 17:32:02 +00:00
christos e55a414b3e Don't write random data to the header. 2023-08-19 14:56:22 +00:00
rjs d7061538b0 More libpcap changes.
There were two entries for /usr/lib/libpcap.so.
2023-08-19 14:22:41 +00:00
rillig 0d4b11a49d make: clean up comments regarding gmtime/strftime
These two functions are not supposed to be used together, thus it is not
a bug if combining them produces unexpected results.
2023-08-19 11:53:10 +00:00
rillig 99f1a845d3 make: work around bugs in gmtime on several platforms 2023-08-19 11:13:35 +00:00
rillig 2c49585ea5 make: show realistic invalid line in error message
Previously, the error message 'Invalid line' showed only the expanded
line, which might or might not show the actual problem.  To be more
helpful, add the unexpanded line to the error message in case they
differ.

Remove the special handling of invalid lines that result from merge
conflicts.  RCS is not commonly used anymore, and mentioning CVS was too
specific.  By echoing the whole line, the patterns '<<<<<<' and '>>>>>>'
are clear enough to hint at the problem.
2023-08-19 11:09:02 +00:00
rillig 64c6dcb455 make: add more details to error message about invalid lines 2023-08-19 10:52:13 +00:00
rillig b23bb1a017 tests/make: provide instructions for reproducing bug in gmtime
The test is not enabled because its results differ too much between the
platforms.
2023-08-19 10:33:32 +00:00