Commit Graph

34 Commits

Author SHA1 Message Date
mrg
c2d6cd62e8 call cnpollc(1) and cnpollc(0) around cngetc().
(christos has a good idea to add a function that does all 3,
and we should switch all the callers in this sequence to use
it (and fix the MD ones missing it still).  not all can, as
eg, line-grabbing functions can use cngetsn(), which only
calls cnpollc() twice.)
2018-09-16 23:18:55 +00:00
matt
6787e5f9af Use _KERNEL_OPT 2012-09-01 01:13:51 +00:00
matt
a1e2d01f42 Make DB_MAX_LINES a kernel option 2012-09-01 00:28:12 +00:00
joerg
3eb244d801 Retire varargs.h support. Move machine/stdarg.h logic into MI
sys/stdarg.h and expect compiler to provide proper builtins, defaulting
to the GCC interface. lint still has a special fallback.
Reduce abuse of _BSD_VA_LIST_ by defining __va_list by default and
derive va_list as required by standards.
2011-07-17 20:54:30 +00:00
ad
cd6b1c8f08 Make ddb compile and work in userspace. Mostly this is comprised of three
types of changes:

- Add a few new methods to replace stuff like p_find(), CPU_INFO_FOREACH.

- Use db_read_bytes() instead of accessing kernel structures directly,
  and similar changes.

- Add ifdef _KERNEL where the above hasn't been done, and an XXX comment.
2009-03-07 22:02:16 +00:00
christos
95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
christos
02e608f6b8 Add lots of const. 2005-05-29 21:31:05 +00:00
simonb
4eaa4d66a8 ANSIfy, KNF.
Make some variables and functions static when not used outside of a module.
Make variables in headers extern.
Delete the unused db_find_watchpoint() function.
2002-02-15 07:33:48 +00:00
lukem
1ac69d9cb3 add RCSIDs 2001-11-12 22:54:03 +00:00
mrg
506cbe39be allow one to #define DB_MAX_LINE and DB_MAX_WIDTH independantly. 2001-07-01 12:16:25 +00:00
cgd
f7566f8058 Avoid crud after #endif. 2001-02-24 00:00:26 +00:00
tv
242cedc18c Add two new functions, db_format_radix() and db_format_hex(), which supplant
the former %r and %z nonstandard kprintf strings.
2000-08-09 19:51:44 +00:00
augustss
5e3d7e5317 Die, register, die! 2000-03-30 11:31:26 +00:00
jdolecek
b1e34812e4 Fix obvious off-by-one error in db_output().
Fixes kern/9570 by John Hawkinson.
2000-03-08 08:31:33 +00:00
lukem
4a2b49cb31 - change db_cmd_list() to list commands vertically rather than horizontally
- sort entries in the various command tables, so that the `help' lists
  are easier to use. this included hacking db_machine_commands_install()
  to search for the "machine" entry to change the `more cmds' pointer,
  rather than assuming it was the first entry
- add a `sync' command, which is effectively `reboot 0x100'.
- remove db_help_cmd(); it was unused (and was almost a duplicate of
  db_cmd_list()).
- move some extern decls to db_output.h, since they're used in more than one
  place now
- rename NEXT_TAB to DB_NEXT_TAB and move to db_output.h
1999-10-28 06:37:32 +00:00
pk
b13e5d1469 Quote "AS IS" as in the majority of Carnegy Mellon notices. 1999-04-12 20:38:17 +00:00
pk
c40eb1cd97 Fix a pasto in copyright text which has been procreating like rabbits.. 1999-04-06 20:09:18 +00:00
chuck
c33b782b4e kill db_ksprintn, db_printf_guts, kdbprintf, db_printf.
db_printf moves to kern/subr_prf.c and uses the new kprintf located there.
1997-10-24 18:20:23 +00:00
cgd
4e829562bb needs systm.h for prototypes 1997-02-03 19:56:24 +00:00
fvdl
d5f094e14f Make this compile with -Wcast-qual 1996-10-28 08:42:13 +00:00
christos
3f15a06497 Recognize %.2x as %02x 1996-09-25 21:03:06 +00:00
christos
6bfb8e5ce7 Fix cut'n'paste'o in %p previous fix. 1996-04-01 17:27:14 +00:00
christos
9352303b25 Recognize %p formats so that ps/m works in ddb 1996-03-31 21:42:42 +00:00
christos
73a848c28f - Fix db_printf format args.
- Recognize ':' as recursive printf; fixes PR/835
- cleanup error(1) output.
1996-03-30 22:28:45 +00:00
christos
8c2e3b4b11 DDB prototype changes. 1996-02-05 01:56:47 +00:00
mycroft
c32738aa00 Fix nits pointed out by GCC 2.7. 1995-10-16 05:28:14 +00:00
deraadt
b9e352dcab knf 1994-06-29 22:41:41 +00:00
cgd
cf92afd66e New RCS ID's, take two. they're more aesthecially pleasant, and use 'NetBSD' 1994-06-29 06:29:24 +00:00
mycroft
f1a5c33098 Canonicalize all #includes. 1993-12-18 04:46:25 +00:00
mycroft
aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00
brezak
4404af90d7 Add 'ps' command. Add -more- pager to output from Mach ddb. 1993-07-15 18:35:00 +00:00
cgd
37cabe305e add explicit rcs id 1993-05-20 03:39:04 +00:00
cgd
e541169ce2 after 0.2.2 "stable" patches applied 1993-03-21 18:04:42 +00:00
cgd
61f282557f initial import of 386bsd-0.1 sources 1993-03-21 09:45:37 +00:00