Commit Graph

61 Commits

Author SHA1 Message Date
mrg
4d62e2455a 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.
2020-08-17 04:15:33 +00:00
ad
71e41cec30 No need for warnx() if !LOCKDEBUG 2020-03-27 00:17:08 +00:00
rin
186c59a8c7 Restrict LOCKDEBUG support to archs with REALCRASH.
Fix build failure for other archs.
2020-03-09 05:10:19 +00:00
christos
fbd525a3da Add primitive LOCKDEBUG support. 2020-03-09 01:54:31 +00:00
mrg
de11d87641 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."
2019-10-13 07:28:04 +00:00
mrg
4f3dd60b62 add an example shell pipeline that will print *all* kernel stack traces.
bump date.
2019-03-23 02:07:32 +00:00
jakllsch
bb72cd05aa make kernel-groveling crash(8) work on aarch64 2018-09-15 19:47:48 +00:00
christos
61bf19f212 i386 does not have a variable min address (yet) 2018-08-12 16:00:41 +00:00
christos
5ceff8e2e0 reorder 2018-08-12 15:55:26 +00:00
christos
5b4ae9b813 make things link again. 2018-08-12 15:05:13 +00:00
christos
8841d3f7b9 Fix reproducible builds
XXX: pullup-8
2018-05-20 03:09:02 +00:00
mlelstv
8f6bdb48b6 Align with DDB. 2018-03-04 07:15:37 +00:00
skrll
ac34435581 Remove port-acorn26
OK core@
2018-01-24 09:04:40 +00:00
nakayama
1d43d3952b sparc has db_machdep.c now. 2017-07-21 20:58:44 +00:00
wiz
01869ca4d2 Remove workaround for ancient HTML generation code. 2017-07-03 21:28:48 +00:00
christos
ddac911e7d Protect the right part. 2017-04-10 12:05:52 +00:00
christos
ec999e2a0c fix syntax 2017-04-09 21:57:59 +00:00
christos
1bba784bf1 stack protector issue on sparc 2017-04-09 20:34:00 +00:00
christos
22e2f96812 need <sys/stat.h> 2017-01-10 20:57:26 +00:00
mrg
0537635d0c 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.
2016-12-23 10:19:57 +00:00
mrg
0ef38b0092 note that crash/sparc is unstable 2016-12-10 23:21:02 +00:00
mrg
20888c6f10 enable sparc crash(8) builds.
it's not very stable yet but it's not 100% useless.
2016-12-10 10:42:43 +00:00
christos
b3ded435d4 revert kernhist patch accidentally committed 2015-06-16 23:48:20 +00:00
christos
8ee626c9fa improve error messages (remove \n, use __func__, etc) 2015-06-16 23:04:13 +00:00
christos
4649e9761b Only define the extra flags for kern_timeout.c 2015-02-09 17:48:07 +00:00
christos
4a931fcb8e add kern_timeout.c for "show callout" 2015-02-08 19:42:12 +00:00
christos
34564de1c5 mention the default for core too. 2014-10-06 13:14:36 +00:00
wiz
04f076606c usage police
XXX: is the program usage correct? (/dev/ksyms)
2014-10-05 23:08:01 +00:00
christos
f7bf36a390 add -w 2014-10-05 22:58:43 +00:00
skrll
217c0eb552 Build everything on all arm variants 2014-03-30 07:29:22 +00:00
skrll
3cebbec2c7 Simplify 2014-03-29 09:36:18 +00:00
skrll
6d3ceb1d61 Rename NetBSD/hp700 to NetBSD/hppa.
Unfortunately our VCS isn't very helpful here.
2014-02-24 07:23:38 +00:00
christos
67f79fd48b add MAP_PRIVATE 2013-03-10 19:32:29 +00:00
christos
28d11a42f4 make crash traces work on sparc64 2013-03-04 20:10:50 +00:00
apb
f669c7071f 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.
2012-11-04 11:12:31 +00:00
skrll
3bbaf20745 Don't advertise the abt/und/irq stack pointers as accessible to crash(8)
when they're not
2012-08-31 11:52:39 +00:00
christos
d89c1403e3 m68k does not have or need db_machdep.c 2012-02-18 17:56:49 +00:00
christos
0dbbdb2346 revert sparc64 hack 2012-02-18 15:57:06 +00:00
martin
da57bcbaec Fix build for sparc64 2012-02-17 12:24:13 +00:00
christos
3ffab2efa8 use -n too, so that we don't get a dup note. 2012-02-16 20:36:13 +00:00
christos
dd63132492 - make this work for arm32
- factor out duplicated ifdefs
2012-02-16 02:37:43 +00:00
mlelstv
780696aa56 Enable build of crash(8) for m86k platforms. 2012-01-31 21:17:57 +00:00
skrll
3ddf4f6f16 Support crash(8) on hppa. 2012-01-18 09:35:48 +00:00
skrll
145bbccc40 Remove workaround for old binutils. 2012-01-17 18:44:24 +00:00
joerg
bec77c5f43 Use __dead 2011-08-31 13:32:36 +00:00
christos
a0ca34f556 document non-literal format 2011-08-16 08:04:17 +00:00
joerg
a216da57a6 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.
2011-05-26 12:56:24 +00:00
christos
acc16d96d1 Share the amd64 and i386 files.
XXX: Is there a better way to get the cpu family?
2011-04-30 16:57:58 +00:00
mrg
e813220ee8 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.
2011-04-14 08:21:06 +00:00
mrg
8ca46a05f4 replace a non-working make construct with a working one.
now crash only builds unsupported.c on non-x86 systems again.
2011-04-12 01:47:20 +00:00