aboutsummaryrefslogtreecommitdiff
path: root/sys/ddb
Commit message (Collapse)AuthorAgeFilesLines
* Remove unused macro definition.Archie Cobbs1999-11-021-1/+0
| | | | Notes: svn path=/head/; revision=52812
* useracc() the prequel:Poul-Henning Kamp1999-10-291-1/+0
| | | | | | | | | | | | | | Merge the contents (less some trivial bordering the silly comments) of <vm/vm_prot.h> and <vm/vm_inherit.h> into <vm/vm.h>. This puts the #defines for the vm_inherit_t and vm_prot_t types next to their typedefs. This paves the road for the commit to follow shortly: change useracc() to use VM_PROT_{READ|WRITE} rather than B_{READ|WRITE} as argument. Notes: svn path=/head/; revision=52635
* Delete unneeded #includePeter Wemm1999-10-111-2/+0
| | | | | | | Submitted by: phk Notes: svn path=/head/; revision=52120
* $Id$ -> $FreeBSD$Peter Wemm1999-08-2828-28/+28
| | | | Notes: svn path=/head/; revision=50477
* Merge the cons.c and cons.h to the best of my ability. alpha may orPoul-Henning Kamp1999-08-094-11/+8
| | | | | | | may not compile, I can't test it. Notes: svn path=/head/; revision=49558
* The following patch will remove a hack introduced inKazutaka YOKOTA1999-07-141-13/+1
| | | | | | | | | | /sys/ddb/db_input.c rev 1.19 to recognize syscons's cursor keycodes. It is unnecessary now that scgetc() in syscons returns the escape sequence for the cursor keys rather than their raw, internal key codes. Notes: svn path=/head/; revision=48810
* Quiet warnings on Alpha. (db_expr_t is a long on alpha, int on x86)Peter Wemm1999-07-017-27/+26
| | | | Notes: svn path=/head/; revision=48407
* Removed an especially bogus cast.Bruce Evans1999-05-131-2/+2
| | | | Notes: svn path=/head/; revision=47112
* Restored used include of <sys/systm.h>. -Wmissing-prototypes doesn't workBruce Evans1999-05-132-2/+5
| | | | | | | for builtin functions. Notes: svn path=/head/; revision=47098
* add some amount of sanity to the way the gdb stuff finds its device.Poul-Henning Kamp1999-05-092-4/+18
| | | | | | | | | | | I'm not too happy about the result either, but at least it has less chance of backfiring. This particular feature could be called "a mess" without offending anybody. Notes: svn path=/head/; revision=46783
* Get rid of extern declarations on gdb stuff so systems compiled withoutKirk McKusick1999-05-071-1/+9
| | | | | | | | DDB will compile. Warn users that try to use GDB without specifying a GDB port in their configuration file. Notes: svn path=/head/; revision=46658
* Fixed -Wcast-qual warnings.Bruce Evans1999-02-123-9/+9
| | | | Notes: svn path=/head/; revision=43926
* Fixed fatal type mismatches in the aout case. Const poisoning inBruce Evans1999-02-121-5/+5
| | | | | | | db_sym.h had not reached here. Notes: svn path=/head/; revision=43925
* Fix warnings in preparation for adding -Wall -Wcast-qual to theMatthew Dillon1999-01-276-45/+47
| | | | | | | | | | kernel compile. This commit includes significant work to proper handle const arguments for the DDB symbol routines. Notes: svn path=/head/; revision=43309
* Changes to support -Wall, -Wcast-qual. Had to make physical code changesMatthew Dillon1999-01-277-30/+33
| | | | | | | | in db_lookup() to avoid the *cp = 0 / *cp = ':' combo ( temporary nul-terminate-then-restore-original ) on a const char * string. Notes: svn path=/head/; revision=43289
* Replace includes of <sys/kernel.h> with includes ofJohn Polstra1999-01-141-2/+2
| | | | | | | | <sys/linker_set.h> in those files that use only the linker set definitions. Notes: svn path=/head/; revision=42654
* Examine all occurrences of sprintf(), strcat(), and str[n]cpy()Archie Cobbs1998-12-041-4/+2
| | | | | | | | | | | | | | | | | for possible buffer overflow problems. Replaced most sprintf()'s with snprintf(); for others cases, added terminating NUL bytes where appropriate, replaced constants like "16" with sizeof(), etc. These changes include several bug fixes, but most changes are for maintainability's sake. Any instance where it wasn't "immediately obvious" that a buffer overflow could not occur was made safer. Reviewed by: Bruce Evans <bde@zeta.org.au> Reviewed by: Matthew Dillon <dillon@apollo.backplane.com> Reviewed by: Mike Spengler <mks@networkcs.com> Notes: svn path=/head/; revision=41514
* Forgot to commit this; the alpha uses the kld symbol interface now. ThePeter Wemm1998-10-151-2/+2
| | | | | | | tables that db_elf.c is expecting are not loaded in that format any more. Notes: svn path=/head/; revision=40368
* Call some helper routines to be supplied by kern_linker.c in order toPeter Wemm1998-10-091-14/+7
| | | | | | | | | | get to all the symbol tables for all modules, not just the core kernel symbol table. Yes, DDB can see KLD module symbols with this, both by lookup and in tracebacks. No more references to _end from tracebacks within an LKM. :-) Notes: svn path=/head/; revision=40151
* At the moment, the alpha tentatively uses the ddb elf code rather than KLD,Peter Wemm1998-10-091-10/+4
| | | | | | | | | | because the alpha boot loader hasn't been converted yet, and because it needs the full symbol tables with local symbols in order to make sense of stack tracebacks. KLD will implement this (using full sybmol table rather than the globals only) shortly. Notes: svn path=/head/; revision=40150
* We don't compile this on an elf kernel (and explicitly not on alpha inPeter Wemm1998-10-091-5/+4
| | | | | | | | | case it's possible to compile in something like ECOFF) The three db_xxx.c symbol interfaces are "standard" because config isn't flexible enough without forcing the user to know about it. Notes: svn path=/head/; revision=40148
* Update to work with the new elf headers.Doug Rabson1998-08-171-17/+2
| | | | Notes: svn path=/head/; revision=38387
* Added macros __printflike() and __scanflike() to <sys/cdefs.h>.Bruce Evans1998-07-131-4/+3
| | | | | | | | | | | Use them to `make gcc -Wformat' check formats for all printf-like and scanf-like functions in /usr/src except for the err()/warn() family. err() isn't quite printf-like since its format arg can legitimately be NULL. syslog() isn't quite printf-like, but gcc already accepts %m, even for plain printf() when it shouldn't. Notes: svn path=/head/; revision=37614
* Use not-so-new printf formats %r and/or %z instead of %n and/or %+x.Bruce Evans1998-07-085-16/+16
| | | | Notes: svn path=/head/; revision=37506
* Fixed bogus type of valuep in struct db_variable. It was `int *' andBruce Evans1998-07-088-22/+23
| | | | | | | | became `long *' for alpha, but should always have been `db_expr_t *'. Fixed variable types to match. Notes: svn path=/head/; revision=37504
* Fixed db_printf format errors.Bruce Evans1998-07-085-19/+18
| | | | Notes: svn path=/head/; revision=37497
* Fixed db_printf format errors (except for ones using broken extensionsBruce Evans1998-07-081-7/+7
| | | | | | | | | | | | (nonstandard %n and '+' with %x), and ones not found by -Wformat on 386's (some db_expr_t's are still printed as ints). I decided not to change the arg type for %n from [unsigned] int to register_t, since about half of the uses of %n are to print plain ints and casting to [unsigned] long for %n is no harder than for %x. Notes: svn path=/head/; revision=37495
* Remove the two single step breakpoints in the reverse order of setting toDoug Rabson1998-07-051-5/+5
| | | | | | | ensure that single stepping a branch to the next instruction works. Notes: svn path=/head/; revision=37392
* Add symtab parameter to X_db_symbol_values.Doug Rabson1998-07-051-2/+3
| | | | Notes: svn path=/head/; revision=37391
* Support 'g' format for printing 8 byte values.Doug Rabson1998-07-051-1/+5
| | | | Notes: svn path=/head/; revision=37390
* Forgot to mention:Doug Rabson1998-06-281-1/+1
| | | | | | | Obtained from: NetBSD Notes: svn path=/head/; revision=37220
* Add DDB symbol support for ELF and KLD. The KLD support only supports globalDoug Rabson1998-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. Notes: svn path=/head/; revision=37219
* Supply the symbol table as an argument to X_db_symbol_values (required for elf).Doug Rabson1998-06-283-6/+8
| | | | Notes: svn path=/head/; revision=37218
* Use db_addr_t for the breakpoint address in db_set_single_step.Doug Rabson1998-06-281-3/+3
| | | | Notes: svn path=/head/; revision=37217
* Make db_tok_number a long to allow typing 64bit numbers on alpha.Doug Rabson1998-06-272-4/+4
| | | | Notes: svn path=/head/; revision=37198
* Use %+11ln for printing in r format to make it work for 64bit registers.Doug Rabson1998-06-271-7/+7
| | | | Notes: svn path=/head/; revision=37197
* Add initial support for the FreeBSD/alpha kernel. This is very much aDoug Rabson1998-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 Notes: svn path=/head/; revision=36849
* Make DDB work again after I broke it :-(.Doug Rabson1998-06-081-2/+2
| | | | Notes: svn path=/head/; revision=36760
* Backed out previous commit, which just consisted of a 1-byte editingBruce Evans1998-06-081-2/+2
| | | | | | | error. Notes: svn path=/head/; revision=36747
* Fixed missing ifdefs and disordering in previous commit.Bruce Evans1998-06-081-2/+6
| | | | Notes: svn path=/head/; revision=36746
* Fixed ifdef bogotification in previous commit.Bruce Evans1998-06-081-7/+2
| | | | Notes: svn path=/head/; revision=36745
* This commit fixes various 64bit portability problems required forDoug Rabson1998-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. Notes: svn path=/head/; revision=36735
* Some cleanups related to timecounters and weird ifdefs in <sys/time.h>.Poul-Henning Kamp1998-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 Notes: svn path=/head/; revision=36441
* Redo the previous commit in a more Bruce-friendly fashion.Poul-Henning Kamp1998-05-193-11/+5
| | | | | | | Urged by: bde Notes: svn path=/head/; revision=36197
* Add "show msgbuf" commandPoul-Henning Kamp1998-05-193-3/+35
| | | | Notes: svn path=/head/; revision=36181
* Ensure that the linker sets for commands exist by putting a standardBruce Evans1998-02-133-25/+15
| | | | | | | | command in each of them. This removes the need for hard-to-configure dummy instantiations of the sets. Notes: svn path=/head/; revision=33296
* Staticize.Eivind Eklund1998-02-091-2/+2
| | | | Notes: svn path=/head/; revision=33181
* Some fixes from John Hood:John 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> Notes: svn path=/head/; revision=31549
* Cleaned up revs.1.19-1.21:Bruce Evans1997-11-201-17/+14
| | | | Notes: svn path=/head/; revision=31314
* A better fix for the ddb command history buffer problem; use a staticMike Smith1997-11-091-9/+9
| | | | | | | | buffer instead of trying to use malloc() in the input routine. Submitted by: john hood <cgull@smoke.marlboro.vt.us> Notes: svn path=/head/; revision=31062