summaryrefslogtreecommitdiffstats
path: root/sys/ddb
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Staticize and cleanup.phk1995-12-107-21/+20
|
* Untangled the vm.h include file spaghetti.dg1995-12-0720-24/+47
|
* Staticized and '#ifdef notused' stuff we don't use.phk1995-11-2918-131/+140
|
* Completed function declarations and/or added prototypes and/or #includesbde1995-11-2414-68/+98
| | | | | | | | | | to get the prototypes. Changed some `int's to `boolean_t's. boolean_t's are ints so they are hard to distinguish from ints. Converted function headers to old-style. ddb is written in K&R1 C except where we broke it.
* Completed function declarations and/or added prototypes.bde1995-11-249-130/+155
| | | | | | Removed `extern' from prototypes. Sorted prototypes. Uniformized idempotency ifdefs.
* Change db_ps() to have the correct number and type of args for a ddbbde1995-08-271-2/+7
| | | | command.
* Change db_fncall() and db_panic() to have the correct number and type ofbde1995-08-271-5/+13
| | | | args for a ddb command.
* Make db_ps tolerant of uninitialized struct proc fields. Improved 'more'dg1995-08-201-19/+39
| | | | function to work like you'd expect. Other misc cleanup.
* Remove trailing whitespace.rgrimes1995-05-3026-207/+207
|
* Print the address associated with an examine. Changed db_maxoff todg1995-05-222-13/+6
| | | | | something more reasonable (64k). Suggested by Gordon Ross about a year ago.
* Fixed the formatting breakage I added in the previous commit.dg1995-04-041-4/+8
|
* Fixed DDB's "ps" output formatting.dg1995-03-281-12/+6
|
* Removed redundant newlines that were in some panic strings.dg1995-03-191-2/+2
|
* Add and move declarations to fix all of the warnings from `gcc -Wimplicit'bde1995-03-163-7/+14
| | | | | | (except in netccitt, netiso and netns) and most of the warnings from `gcc -Wnested-externs'. Fix all the bugs found. There were no serious ones.
* Make ``p'' an explicit alias for ``print'' instead of being anjoerg1995-03-051-1/+2
| | | | implicit alias for ``panic'', since this seems to be more rational.
* Added "panic" command to ddb, so we can do something sensible even ifphk1995-02-051-1/+9
| | | | we have no symbols.
* Load the kernel symbol table in the boot loader and not at compile time.bde1995-01-251-23/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (Boot with the -D flag if you want symbols.) Make it easier to extend `struct bootinfo' without losing either forwards or backwards compatibility. ddb_aout.c: Get the symbol table from wherever the loader put it. Nuke db_symtab[SYMTAB_SPACE]. boot.c: Enable loading of symbols. Align them on a page boundary. Add printfs about the symbol table sizes. Pass the memory sizes to the kernel. Fix initialization of `unit' (it got moved out of the loop). Fix adding the bss size (it got moved inside an ifdef). Initialize serial port when RB_SERIAL is toggled on. Fix comments. Clean up formatting of recently added code. io.c: Clean up formatting of recently added code. netboot/main.c, machdep.c, wd.c: Change names of bootinfo fields. LINT: Nuke SYMTAB_SPACE. Fix comment about DODUMP. Makefile.i386: Nuke use of dbsym. Exclude gcc symbols from kernel unless compiling with -g. Remove unused macro. Fix comments and formatting. genassym.c: Generate defines for some new bootinfo fields. Change names of old ones. locore.s: Copy only the valid part of the `struct bootinfo' passed by the loader. Reserve space for symbol table, if any. machdep.c: Check the memory sizes passed by the loader, if any. Don't use them yet. bootinfo.h: Add a size field so that we can resolve some mismatches between the loader bootinfo and the kernel boot info. The version number is not so good for this because of historical botches and because it's harder to maintain. Add memory size and symbol table fields. Change the names of everything. Hacks to save a few bytes: asm.S, boot.c, boot2.S: Replace `ouraddr' by `(BOOTSEG << 4)'. boot.c: Don't statically initialize `loadflags' to 0. Disable the "REDUNDANT" code that skips the BIOS variables. Eliminate `total'. Combine some more printfs. boot.h, disk.c, io.c, table.c: Move all statically initialzed data to table.c. io.c: Don't put the A20 gate bits in a variable.
* Print "(null)" instead of crashing for null strings. Null names arebde1994-10-301-1/+3
| | | | | often generated for stack traces. Now inspection of unmapped addresses no longer panics the system.
* Avoid ddb getting a panic if the code-segment isn't the usual one...phk1994-10-021-8/+11
|
* #include ddb.h not db_output.hphk1994-09-281-2/+2
|
* Added include of <machine/cons.h> so that cngetc() gets declared.phk1994-09-271-1/+2
|
OpenPOWER on IntegriCloud