summaryrefslogtreecommitdiffstats
path: root/sys/ddb
Commit message (Collapse)AuthorAgeFilesLines
* Add symtab parameter to X_db_symbol_values.dfr1998-07-051-2/+3
|
* Support 'g' format for printing 8 byte values.dfr1998-07-051-1/+5
|
* Forgot to mention:dfr1998-06-281-1/+1
| | | | Obtained from: NetBSD
* Add DDB symbol support for ELF and KLD. The KLD support only supports globaldfr1998-06-282-0/+539
| | | | | symbols so its not too useful. Changes to the kernel linker to allow it to supply DDB with symbols will come later.
* Supply the symbol table as an argument to X_db_symbol_values (required for elf).dfr1998-06-283-6/+8
|
* Use db_addr_t for the breakpoint address in db_set_single_step.dfr1998-06-281-3/+3
|
* Make db_tok_number a long to allow typing 64bit numbers on alpha.dfr1998-06-272-4/+4
|
* Use %+11ln for printing in r format to make it work for 64bit registers.dfr1998-06-271-7/+7
|
* Add initial support for the FreeBSD/alpha kernel. This is very much adfr1998-06-103-7/+7
| | | | | | | | | | work in progress and has never booted a real machine. Initial development and testing was done using SimOS (see http://simos.stanford.edu for details). On the SimOS simulator, this port successfully reaches single-user mode and has been tested with loads as high as one copy of /bin/ls :-). Obtained from: partly from NetBSD/alpha
* Make DDB work again after I broke it :-(.dfr1998-06-081-2/+2
|
* Backed out previous commit, which just consisted of a 1-byte editingbde1998-06-081-2/+2
| | | | error.
* Fixed missing ifdefs and disordering in previous commit.bde1998-06-081-2/+6
|
* Fixed ifdef bogotification in previous commit.bde1998-06-081-7/+2
|
* This commit fixes various 64bit portability problems required fordfr1998-06-0712-34/+39
| | | | | | | | | | FreeBSD/alpha. The most significant item is to change the command argument to ioctl functions from int to u_long. This change brings us inline with various other BSD versions. Driver writers may like to use (__FreeBSD_version == 300003) to detect this change. The prototype FreeBSD/alpha machdep will follow in a couple of days time.
* Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.phk1998-05-281-27/+1
| | | | | | | | | | | | | | | | | | | | Clean up (or if antipodic: down) some of the msgbuf stuff. Use an inline function rather than a macro for timecounter delta. Maintain process "on-cpu" time as 64 bits of microseconds to avoid needless second rollover overhead. Avoid calling microuptime the second time in mi_switch() if we do not pass through _idle in cpu_switch() This should reduce our context-switch overhead a bit, in particular on pre-P5 and SMP systems. WARNING: Programs which muck about with struct proc in userland will have to be fixed. Reviewed, but found imperfect by: bde
* Redo the previous commit in a more Bruce-friendly fashion.phk1998-05-193-11/+5
| | | | Urged by: bde
* Add "show msgbuf" commandphk1998-05-193-3/+35
|
* Ensure that the linker sets for commands exist by putting a standardbde1998-02-133-25/+15
| | | | | command in each of them. This removes the need for hard-to-configure dummy instantiations of the sets.
* Staticize.eivind1998-02-091-2/+2
|
* Some fixes from John Hood:dyson1997-12-051-2/+1
| | | | | | | | 1) Fix the initialization of malloc structure that changed due to perf opt. 2) Remove unneeded include. 3) An initialization assert added to malloc. Submitted by: John Hood <cgull@smoke.marlboro.vt.us>
* Cleaned up revs.1.19-1.21:bde1997-11-201-17/+14
|
* A better fix for the ddb command history buffer problem; use a staticmsmith1997-11-091-9/+9
| | | | | buffer instead of trying to use malloc() in the input routine. Submitted by: john hood <cgull@smoke.marlboro.vt.us>
* Don't try to do anything with the input history if MALLOC() for the buffermsmith1997-11-071-2/+2
| | | | | | failed. This broke early debugging.
* Fixed scrolling. Newline at the "--More--" prompt scrolled 2 lines.bde1997-10-091-2/+2
|
* Print the filename, not the directory we compiled in.phk1997-09-281-2/+2
|
* Minor hack to also allow for syscons's "interesting" arrow keys.joerg1997-08-171-1/+13
| | | | | I'm using "#if __i386__ && __FreeBSD__" to check for a ``potentially syscons-relevant environment''. Hope that's ok...
* Some staticized variables were still declared to be extern.bde1997-06-303-15/+10
|
* Don't depend on gcc's feature of interpreting `int foo(c) char c; ...'bde1997-06-302-4/+4
| | | | | as `int foo(char c) ...' if there is a bogus prototype `int foo(char c);' in scope.
* Removed unused #includes.bde1997-06-1410-30/+10
|
* Everyone's favorite, i think: make DDB understand the arrow keys for thejoerg1997-04-121-1/+38
| | | | | basic cursor movements. Assumes ANSI/DEC tty, but you can still resort to plain emacs ^p/^n etc anyway.
* Fixed gratuitous ANSIisms.bde1997-04-013-7/+16
|
* Added a setjmp() so that an initial pc that points to unmapped memorybde1997-03-281-10/+12
| | | | isn't fatal. Backed out rev.1.6, which handled special cases of this.
* Back out part 1 of the MCFH that changed $Id$ to $FreeBSD$. We are notpeter1997-02-2226-26/+26
| | | | ready for it yet.
* This is the kernel Lite/2 commit. There are some requisite userlanddyson1997-02-101-1/+1
| | | | | | | | | | | | | | | changes, so don't expect to be able to run the kernel as-is (very well) without the appropriate Lite/2 userland changes. The system boots and can mount UFS filesystems. Untested: ext2fs, msdosfs, NFS Known problems: Incorrect Berkeley ID strings in some files. Mount_std mounts will not work until the getfsent library routine is changed. Reviewed by: various people Submitted by: Jeffery Hsu <hsu@freebsd.org>
* Fixed printing of small offsets. E.g., -4(%ebp) is now printedbde1997-01-161-2/+8
| | | | | | as -0x4(%ebp) instead of as _APTD+0xffc(%ebp), and if GUPROF is defined, 8(%ebp) is now printed as 0x8(%ebp) instead of as GMON_PROF_HIRES+0x4(%ebp).
* Make the long-awaited change from $Id$ to $FreeBSD$jkh1997-01-1426-26/+26
| | | | | | | | This will make a number of things easier in the future, as well as (finally!) avoiding the Id-smashing problem which has plagued developers for so long. Boy, I'm glad we're not using sup anymore. This update would have been insane otherwise.
* Fixed bogus linkage of one of the ddb linker sets.bde1996-12-181-2/+6
|
* if there is no console, cngetc should act like getc and return -1julian1996-10-301-1/+8
| | | | make callers aware of this in those cases where it can occur.
* Attached vm ddb commands `show map', `show vmochk', `show object',bde1996-09-141-3/+20
| | | | | | | | | | | | | | | | | `show vmopag', `show page' and `show pageq'. Moved all vm ddb stuff to the ends of the vm source files. Changed printf() to db_printf(), `indent' to db_indent, and iprintf() to db_iprintf() in ddb commands. Moved db_indent and db_iprintf() from vm to ddb. vm_page.c: Don't use __pure. Staticized. db_output.c: Reduced page width from 80 to 79 to inhibit double spacing for long lines (there are still some problems if words are printed across column 79).
* Support statically attaching of ddb commands in non-ddb modules.bde1996-09-142-41/+111
| | | | | | | | | | | | | | | | The details are hidden in the DB_COMMAND(cmd_name, func_name) and DB_SHOW_COMMAND(cmd_name, func_name) macros. DB_COMMAND() adds to the top-level ddb command table and DB_SHOW_COMMAND adds to the `show' subtable. Most external commands will probably be `show' commands with no side effects. They should check their pointer args more carefully than `show map' :-), or ddb should trap internal faults better (like it does for memory accesses). The vm ddb commands are temporarily unattached. ddb.h: Also declare `db_indent' and db_iprintf() which will replace vm's `indent' and iprintf().
* Allow the user to switch into gdb mode from ddbpst1996-08-271-1/+21
|
* Finally implement a simple commandline history in DDB.joerg1996-08-101-2/+71
| | | | | | | | Emacs-style line editing has already been there (did anybody ever notice this? :), so i `only' had to add ^P and ^N. The approach is fairly minimalistic, with the advantage of keeping the bloat as small as 864 bytes of .text and 16 bytes of .bss, plus 10*120 bytes malloc'ed history buffer at the first use.
* A small bit of defensive programming in case the panic is during processpeter1996-06-151-1/+5
| | | | | | exit and cleanup. the 'ps' command assumes that there are always 'nproc' processes on the lists and will walk off the end without checking if not, causing ddb to trap during the 'ps' command.
* Clean up various compiler warnings. Most (if not all) were benigngpalmer1996-05-083-7/+9
| | | | Reviewed by: bde
* For Lite2: proc LIST changes.hsu1996-03-111-5/+5
| | | | Reviewed by: david & bde
* Remove some now unused printfoids.phk1996-01-231-25/+1
|
* Fixed the one remaining %r.bde1996-01-211-2/+2
|
* One missed printf in the debugger.phk1996-01-211-2/+2
| | | | Found By: bde
* Get rid of two and a half printf in the kernel.phk1996-01-153-186/+8
| | | | | | | | | | | | | | | | | | | | Add more features to the one remaining to handle the job: + signed quantity. # alternate format - left padding * read width as next arg. n numeric in (argument specified) default radix. Fix the DDB debugger to use these. Use vprintf in debug routine in pcvt. The warnings from gcc may become more wrong and intolerable because of this. Warning: I have not checked the entire source for unsupported or changed constructs, but generally belive that there are only a few. Suggested by: bde
* Reduced and cleaned up #includes.bde1995-12-1021-76/+48
|
OpenPOWER on IntegriCloud