History log of /netbsd-current/usr.sbin/crash/Makefile
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.51 26-Apr-2024 christos

Add ${TOOL_DATE} (Jan-Benedict Glaw)


# 1.50 22-Nov-2023 thorpej

Add Alpha glue for crash(8).


# 1.49 09-Jul-2023 riastradh

ddb: New `show all tstiles' command.

Shows who's waiting for which locks and what the owner is up to.

XXX pullup-10


# 1.48 03-Jun-2023 lukem

bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.


# 1.47 12-Apr-2023 riastradh

crash(8): Add powerpc support.

XXX pullup-8
XXX pullup-9
XXX pullup-10


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.46 13-Apr-2021 mrg

branches: 1.46.6;
more -fcommon for sources not ready yet


# 1.45 17-Aug-2020 mrg

mostly complete basic port of crash(8) to mips.

tested on mipsel and mips64eb. basic functionality works
on the running kernel, not yet tested on crash dumps.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.44 09-Mar-2020 rin

Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.


# 1.43 09-Mar-2020 christos

Add primitive LOCKDEBUG support.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.42 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


Revision tags: netbsd-9-4-RELEASE netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

branches: 1.40.2;
Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.50 22-Nov-2023 thorpej

Add Alpha glue for crash(8).


# 1.49 09-Jul-2023 riastradh

ddb: New `show all tstiles' command.

Shows who's waiting for which locks and what the owner is up to.

XXX pullup-10


# 1.48 03-Jun-2023 lukem

bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.


# 1.47 12-Apr-2023 riastradh

crash(8): Add powerpc support.

XXX pullup-8
XXX pullup-9
XXX pullup-10


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.46 13-Apr-2021 mrg

branches: 1.46.6;
more -fcommon for sources not ready yet


# 1.45 17-Aug-2020 mrg

mostly complete basic port of crash(8) to mips.

tested on mipsel and mips64eb. basic functionality works
on the running kernel, not yet tested on crash dumps.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.44 09-Mar-2020 rin

Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.


# 1.43 09-Mar-2020 christos

Add primitive LOCKDEBUG support.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.42 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

branches: 1.40.2;
Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.49 09-Jul-2023 riastradh

ddb: New `show all tstiles' command.

Shows who's waiting for which locks and what the owner is up to.

XXX pullup-10


# 1.48 03-Jun-2023 lukem

bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.


# 1.47 12-Apr-2023 riastradh

crash(8): Add powerpc support.

XXX pullup-8
XXX pullup-9
XXX pullup-10


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.46 13-Apr-2021 mrg

more -fcommon for sources not ready yet


# 1.45 17-Aug-2020 mrg

mostly complete basic port of crash(8) to mips.

tested on mipsel and mips64eb. basic functionality works
on the running kernel, not yet tested on crash dumps.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.44 09-Mar-2020 rin

Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.


# 1.43 09-Mar-2020 christos

Add primitive LOCKDEBUG support.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.42 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

branches: 1.40.2;
Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.48 03-Jun-2023 lukem

bsd.own.mk: rename GCC_NO_* to CC_WNO_*

Rename compiler-warning-disable variables from
GCC_NO_warning
to
CC_WNO_warning
where warning is the full warning name as used by the compiler.

GCC_NO_IMPLICIT_FALLTHRU is CC_WNO_IMPLICIT_FALLTHROUGH

Using the convention CC_compilerflag, where compilerflag
is based on the full compiler flag name.


# 1.47 12-Apr-2023 riastradh

crash(8): Add powerpc support.

XXX pullup-8
XXX pullup-9
XXX pullup-10


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.46 13-Apr-2021 mrg

more -fcommon for sources not ready yet


# 1.45 17-Aug-2020 mrg

mostly complete basic port of crash(8) to mips.

tested on mipsel and mips64eb. basic functionality works
on the running kernel, not yet tested on crash dumps.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.44 09-Mar-2020 rin

Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.


# 1.43 09-Mar-2020 christos

Add primitive LOCKDEBUG support.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.42 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

branches: 1.40.2;
Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.47 12-Apr-2023 riastradh

crash(8): Add powerpc support.

XXX pullup-8
XXX pullup-9
XXX pullup-10


Revision tags: netbsd-10-base cjep_sun2x-base1 cjep_sun2x-base cjep_staticlib_x-base1 cjep_staticlib_x-base
# 1.46 13-Apr-2021 mrg

more -fcommon for sources not ready yet


# 1.45 17-Aug-2020 mrg

mostly complete basic port of crash(8) to mips.

tested on mipsel and mips64eb. basic functionality works
on the running kernel, not yet tested on crash dumps.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.44 09-Mar-2020 rin

Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.


# 1.43 09-Mar-2020 christos

Add primitive LOCKDEBUG support.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.42 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


Revision tags: netbsd-9-3-RELEASE netbsd-9-2-RELEASE netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

branches: 1.40.2;
Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.46 13-Apr-2021 mrg

more -fcommon for sources not ready yet


# 1.45 17-Aug-2020 mrg

mostly complete basic port of crash(8) to mips.

tested on mipsel and mips64eb. basic functionality works
on the running kernel, not yet tested on crash dumps.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.44 09-Mar-2020 rin

Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.


# 1.43 09-Mar-2020 christos

Add primitive LOCKDEBUG support.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.42 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


Revision tags: netbsd-9-1-RELEASE netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

branches: 1.40.2;
Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.45 17-Aug-2020 mrg

mostly complete basic port of crash(8) to mips.

tested on mipsel and mips64eb. basic functionality works
on the running kernel, not yet tested on crash dumps.


Revision tags: phil-wifi-20200421 phil-wifi-20200411 phil-wifi-20200406
# 1.44 09-Mar-2020 rin

Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.


# 1.43 09-Mar-2020 christos

Add primitive LOCKDEBUG support.


Revision tags: is-mlppp-base phil-wifi-20191119
# 1.42 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

branches: 1.40.2;
Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.44 09-Mar-2020 rin

Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.


# 1.43 09-Mar-2020 christos

Add primitive LOCKDEBUG support.


Revision tags: phil-wifi-20191119
# 1.42 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


Revision tags: netbsd-9-0-RELEASE netbsd-9-0-RC2 netbsd-9-0-RC1 netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

branches: 1.40.2;
Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.42 13-Oct-2019 mrg

introduce some common variables for use in GCC warning disables:

GCC_NO_FORMAT_TRUNCATION -Wno-format-truncation (GCC 7/8)
GCC_NO_STRINGOP_TRUNCATION -Wno-stringop-truncation (GCC 8)
GCC_NO_STRINGOP_OVERFLOW -Wno-stringop-overflow (GCC 8)
GCC_NO_CAST_FUNCTION_TYPE -Wno-cast-function-type (GCC 8)

use these to turn off warnings for most GCC-8 complaints. many
of these are false positives, most of the real bugs are already
commited, or are yet to come.


we plan to introduce versions of (some?) of these that use the
"-Wno-error=" form, which still displays the warnings but does
not make it an error, and all of the above will be re-considered
as either being "fix me" (warning still displayed) or "warning
is wrong."


Revision tags: netbsd-9-base phil-wifi-20190609 pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

branches: 1.40.2;
Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


Revision tags: pgoyette-compat-20190127 pgoyette-compat-20190118 pgoyette-compat-1226 pgoyette-compat-1126 pgoyette-compat-1020 pgoyette-compat-0930
# 1.41 15-Sep-2018 jakllsch

make kernel-groveling crash(8) work on aarch64


Revision tags: pgoyette-compat-0906 pgoyette-compat-0728 phil-wifi-base pgoyette-compat-0625 pgoyette-compat-0521
# 1.40 20-May-2018 christos

Fix reproducible builds
XXX: pullup-8


Revision tags: pgoyette-compat-0502 pgoyette-compat-0422 pgoyette-compat-0415 pgoyette-compat-0407 pgoyette-compat-0330 pgoyette-compat-0322 pgoyette-compat-0315 pgoyette-compat-base
# 1.39 04-Mar-2018 mlelstv

branches: 1.39.2;
Align with DDB.


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-2-RELEASE netbsd-7-1-2-RELEASE netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.38 24-Jan-2018 skrll

Remove port-acorn26

OK core@


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

branches: 1.36.4;
Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-1-1-RELEASE netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.37 21-Jul-2017 nakayama

sparc has db_machdep.c now.


Revision tags: perseant-stdc-iso10646-base netbsd-8-base prg-localcount2-base3 prg-localcount2-base2 prg-localcount2-base1 prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


Revision tags: prg-localcount2-base pgoyette-localcount-20170426 bouyer-socketcan-base1
# 1.36 10-Apr-2017 christos

Protect the right part.


# 1.35 09-Apr-2017 christos

fix syntax


# 1.34 09-Apr-2017 christos

stack protector issue on sparc


Revision tags: pgoyette-localcount-20170320 bouyer-socketcan-base pgoyette-localcount-20170107
# 1.33 23-Dec-2016 mrg

branches: 1.33.2;
for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

branches: 1.31.2;
revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-1-RELEASE netbsd-7-1-RC2 netbsd-7-nhusb-base-20170116 netbsd-7-1-RC1 netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".


# 1.33 23-Dec-2016 mrg

for 64 bit mips platforms where we built userland largely as n32 by
default, build a handful of tools as n64 so they work properly.

unfortunately, they're also static as dynamic n64 has a problem.

of these tools pstat is probably the lowest hanging fruit to convert
to sysctl. systat would be close were it not for the netstat screen,
which includes netstat itself.

the rest are difficult to perhaps foolish.


the upside is that netstat, pmap and fstat all work properly now.


# 1.32 10-Dec-2016 mrg

enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.


Revision tags: pgoyette-localcount-20161104 localcount-20160914 pgoyette-localcount-20160806 pgoyette-localcount-20160726 pgoyette-localcount-base
# 1.31 16-Jun-2015 christos

revert kernhist patch accidentally committed


# 1.30 16-Jun-2015 christos

improve error messages (remove \n, use __func__, etc)


# 1.29 09-Feb-2015 christos

Only define the extra flags for kern_timeout.c


# 1.28 08-Feb-2015 christos

add kern_timeout.c for "show callout"


Revision tags: netbsd-7-0-2-RELEASE netbsd-7-nhusb-base netbsd-7-0-1-RELEASE netbsd-7-0-RELEASE netbsd-7-0-RC3 netbsd-7-0-RC2 netbsd-7-0-RC1 netbsd-7-base yamt-pagecache-base9 tls-earlyentropy-base riastradh-xf86-video-intel-2-7-1-pre-2-21-15 tls-maxphys-base
# 1.27 30-Mar-2014 skrll

Build everything on all arm variants


# 1.26 29-Mar-2014 skrll

Simplify


Revision tags: riastradh-drm2-base3
# 1.25 24-Feb-2014 skrll

Rename NetBSD/hp700 to NetBSD/hppa.

Unfortunately our VCS isn't very helpful here.


Revision tags: riastradh-drm2-base2 riastradh-drm2-base1 riastradh-drm2-base agc-symver-base
# 1.24 04-Mar-2013 christos

make crash traces work on sparc64


Revision tags: yamt-pagecache-base8 yamt-pagecache-base7
# 1.23 04-Nov-2012 apb

Add references to ${_NETBSD_VERSION_DEPENDS} for files that
need to be re-created when the NetBSD version changes. They
will also be re-created when any build settings are changed.


Revision tags: yamt-pagecache-base6
# 1.22 31-Aug-2012 skrll

branches: 1.22.2;
Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not


Revision tags: yamt-pagecache-base5 yamt-pagecache-base4
# 1.21 18-Feb-2012 christos

m68k does not have or need db_machdep.c


# 1.20 18-Feb-2012 christos

revert sparc64 hack


# 1.19 17-Feb-2012 martin

Fix build for sparc64


# 1.18 16-Feb-2012 christos

use -n too, so that we don't get a dup note.


# 1.17 16-Feb-2012 christos

- make this work for arm32
- factor out duplicated ifdefs


Revision tags: netbsd-6-0-6-RELEASE netbsd-6-1-5-RELEASE netbsd-6-1-4-RELEASE netbsd-6-0-5-RELEASE netbsd-6-1-3-RELEASE netbsd-6-0-4-RELEASE netbsd-6-1-2-RELEASE netbsd-6-0-3-RELEASE netbsd-6-1-1-RELEASE netbsd-6-0-2-RELEASE netbsd-6-1-RELEASE netbsd-6-1-RC4 netbsd-6-1-RC3 netbsd-6-1-RC2 netbsd-6-1-RC1 netbsd-6-0-1-RELEASE matt-nb6-plus-nbase netbsd-6-0-RELEASE netbsd-6-0-RC2 matt-nb6-plus-base netbsd-6-0-RC1 netbsd-6-base
# 1.16 31-Jan-2012 mlelstv

Enable build of crash(8) for m86k platforms.


# 1.15 18-Jan-2012 skrll

Support crash(8) on hppa.


# 1.14 17-Jan-2012 skrll

Remove workaround for old binutils.


Revision tags: yamt-pagecache-base3 yamt-pagecache-base2 yamt-pagecache-base
# 1.13 16-Aug-2011 christos

branches: 1.13.2;
document non-literal format


Revision tags: cherry-xenmp-base
# 1.12 26-May-2011 joerg

Default to -Wno-sign-compare -Wno-pointer-sign for clang.
Push -Wno-array-bounds down to the cases that depend on it.
Selectively disable warnings for 3rd party software or non-trivial
issues to be reviewed later to get clang -Werror to build most of the
tree.


# 1.11 30-Apr-2011 christos

Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?


# 1.10 14-Apr-2011 mrg

enable crash(8) for sparc64. it's still sort of minimal and segvs
on some commands, but it sort of works and isn't useless.


# 1.9 12-Apr-2011 mrg

replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.


# 1.8 11-Apr-2011 mrg

obsolete DB_AOUT_SYMBOLS. however, we need to leave most of the code
in db_sym.[ch] as it is used by the elf version of crash(8).

i will be cleaning up the db_sym.c code in a follow up commit to avoid
having dead code compiled.


# 1.7 10-Apr-2011 christos

- amd64 support
- fix end of file handling
From: Vladimir Kirillov proger at wilab dot org dot ua


# 1.6 21-Mar-2011 joerg

Create vers.c with -r, there is no point in embedding an ever changing
token that isn't even used.


Revision tags: bouyer-quota2-nbase bouyer-quota2-base matt-mips64-premerge-20101231
# 1.5 23-Apr-2010 christos

workaround for MKPIE=yes until binutils-2.20.1 is imported. From Piotr Meyer


# 1.4 03-Feb-2010 roy

Userland now builds and uses terminfo instead of termcap.

OK: core@, jdc@


Revision tags: matt-premerge-20091211
# 1.3 04-Jun-2009 christos

Avoid -mcmodel=kernel so that we can build in PIC mode.


Revision tags: jym-xensuspend-base jym-xensuspend-nbase
# 1.2 22-Apr-2009 lukem

branches: 1.2.2;
Enable WARNS=4 by default, except for:
cpuctl dumplfs hprop ipf iprop-log kadmin kcm kdc kdigest
kimpersonate kstash ktutil makefs ndbootd ntp pppd quot
racoon racoonctl rtadvd sntp sup tcpdchk tcpdmatch tcpdump
traceroute traceroute6 user veriexecgen wsmoused zic
(Mostly third-party applications)


# 1.1 07-Mar-2009 ad

Add crash(8), a utility to diagnose kernel crashes. This is basically
ddb running on crash dumps, but with two notable changes:

- Breakpoints, watches, etc are obviously never going to work so they
are not handled.

- You can pipe output to the shell, e.g. ps | grep foo

Items remaining to be done:

- Port it to architectures other than i386. This isn't difficult, just
a case of making db_disasm.c/db_trace.c or their equivalent compile
and work.

- Make more of the "show" commands work, e.g "show uvmexp".