Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-11-06 | remove ctf_type declaration no longer needed since -r1.33 | Jasper Lievisse Adriaanse | |
ok mpi@ | |||
2017-11-01 | Remove forward declaration hack now that ctfconv(1) merge them correctly. | Martin Pieuchot | |
ok jasper@ | |||
2017-10-27 | Use <elf.h> in !_KERNEL code path. | Martin Pieuchot | |
2017-10-19 | ddb "show all mounts" showed everything except the address of the | Alexander Bluhm | |
mount point. Print it to allow debugging through the data structures from there. OK krw@ | |||
2017-10-13 | return a missing return (was left out of previous) | Jasper Lievisse Adriaanse | |
2017-10-13 | - use db_printf() | Jasper Lievisse Adriaanse | |
- refuse to pretty-print if there's no CTF ok mpi@ | |||
2017-10-11 | missing prototype for db_ctf_pprint | Jasper Lievisse Adriaanse | |
ok mpi@ | |||
2017-09-29 | New ddb(4) command: kill. | Martin Pieuchot | |
Send an uncatchable SIGABRT to the process specified by the pid argument. Useful in case of CPU exhaustion to kill the DoSing process and generate a core for later inspection. ok phessler@, visa@, kettenis@, miod@ | |||
2017-09-12 | Remove option DDB_STRUCTINFO. Now that ddb(4) is CTF aware, similar | Martin Pieuchot | |
functionnalities are available in GENERIC. ok jasper@, deraadt@, guenther@, dlg@ | |||
2017-09-12 | Skip forward declarations until ctfconv(1) properly merge them with | Martin Pieuchot | |
the corresponding struct definitions. ok dlg@ | |||
2017-09-08 | If you use sys/param.h, you don't need sys/types.h | Theo de Raadt | |
2017-09-06 | use sizeof(variable) instead of sizeof(type) to shorten some code | David Gwynne | |
2017-09-06 | when pretty printing a pointer, display its value instead of address. | David Gwynne | |
this makes it consistent with printing of other values. ok mpi@ | |||
2017-09-06 | replace the DDB_STRUCT backend for "show struct" with ctf code. | David Gwynne | |
this lets you inspect arbitrary memory in the kernel as a specified struct. ok mpi@ jasper@ | |||
2017-08-14 | db_ctf_pprintf() doesn't actually support formatting, so s/f$// | Uwe Stuehler | |
ok mpi@ | |||
2017-08-14 | Restore "print" in ddb; add "pp[rint]" for pretty-printing | Uwe Stuehler | |
Changing the "print" command to use db_ctf_pprint_cmd() broke all documented uses and "examine" does not allow printing variables, or individual registers. For now it is better to leave the "print" command intact, and in sync with the ddb(4) man page, but we still want "pp[rint]" to replace the "print" command when it works better. ok mpi@ | |||
2017-08-11 | Merge DDBCTF into DDB. | Martin Pieuchot | |
2017-08-11 | Fall back using db_print_cmd() if no CTF data has been found. | Martin Pieuchot | |
2017-08-11 | Improve pretty printing of pointers. | Martin Pieuchot | |
ok jasper@ | |||
2017-08-11 | Kernel compilation with DDBPROF enabled fails as db_sym_t is no longer | Nayden Markatchev | |
defined (removed in "Kill db_sym_t." from 2017-05-30 11:39 mpi). This change fixes the problem. OK mpi@ | |||
2017-08-11 | Remove debugging leftovers, document functions, bump copyright. | Martin Pieuchot | |
2017-08-10 | With a CTF kernel, DDB's print command will now pretty-print symbols. | Martin Pieuchot | |
Casting a type is not yet supported. ok kettenis@, jasper@ | |||
2017-07-29 | Goodbye, sys/dkbad.h, you lost your last friend when sparc was removed. | Vadim Zhukov | |
Spotted and diff provided by Andrey Bolkonskiy <andrey0bolkonsky@gmail.com>, thanks! okay deraadt@ | |||
2017-05-30 | Header sys/scanio.h has been deleted, do not include it here. | Alexander Bluhm | |
2017-05-30 | Kill db_sym_t. | Martin Pieuchot | |
ok deraadt@, kettenis@, jasper@ | |||
2017-05-29 | Pass the symbol instead of its name when looking for CTF infos. | Martin Pieuchot | |
ok jasper@ | |||
2017-05-28 | If a function is not found in the CTF data, do not assume it takes no | Martin Pieuchot | |
argument. | |||
2017-05-28 | Merge two functions to lookup ELF sections by name. | Martin Pieuchot | |
ok claudio@, jasper@ | |||
2017-05-27 | Make ddb print again filename and linenumber if a bsd.gdb was loaded. | Claudio Jeker | |
mpi@ agrees that this is correct. | |||
2017-05-27 | Spring cleanup: | Martin Pieuchot | |
- Cache the string table pointer - Unify return statements - Use the end of the symbol table rather than counting symbols | |||
2017-05-09 | Use C99 types. | Martin Pieuchot | |
2017-04-30 | Rename Debugger() into db_enter(). | Martin Pieuchot | |
Using a name with the 'db_' prefix makes it invisible from the dynamic profiler. ok deraadt@, kettenis@, visa@ | |||
2017-04-30 | Unifdef KGDB. | Martin Pieuchot | |
It doesn't compile und hasn't been working during the last decade. ok kettenis@, deraadt@ | |||
2017-04-20 | Add a port of witness(4) lock validation tool from FreeBSD. | Visa Hankala | |
Go-ahead from kettenis@, guenther@, deraadt@ | |||
2017-04-20 | Add routines for saving stack traces and printing saved traces | Visa Hankala | |
on amd64 and i386. With guenther@ | |||
2017-02-08 | Use ELF_ST_{BIND,TYPE} instead of ELFDEFNNAME(ST_{BIND,TYPE}) | Philip Guenther | |
ok jca@ | |||
2017-02-06 | Implement Dynamic Profiling, a ddb(4) based & gprof compatible kernel | Martin Pieuchot | |
profiling framework, for i386. Code patching is used to enable probes when entering functions. The probes will call a mcount()-like function to match the behavior of a GPROF kernel. A new sysctl knob, ddb.profile, need to be set to 1 in securelevel 0 to be able to use this feature. ok jasper@, guenther@, mlarkin@ | |||
2017-01-09 | Revert previous, it's a documented behavior and people might rely on it. | Martin Pieuchot | |
Pointed by deraadt@ | |||
2017-01-09 | Stop and restart the watchdog timer when entering and leaving ddb(4). | Martin Pieuchot | |
From Christian Ludwig. | |||
2016-10-18 | Add the examine /m format, "display in unsigned hex with character | Christian Weisgerber | |
dump at the end of each line", which has always been documented but not implemented. Mostly from NetBSD, but I fixed the column alignment code. ok mlarkin@, pirofti@ | |||
2016-09-18 | - inline db_ctf_nsyms() into it's only caller. the value remains cached and | Jasper Lievisse Adriaanse | |
won't change, so there's no reason to call it again. - remove explicit return from void function ok mpi@ | |||
2016-09-17 | rename ddb/db_ctf.h to sys/ctf.h which is the expected location for the public | Jasper Lievisse Adriaanse | |
CTF bits. ok kettenis@ mpi@ | |||
2016-09-17 | move the .SUNW_ctf section name definition to exec_elf.h and document it in ↵ | Jasper Lievisse Adriaanse | |
elf(5) feedback from guenther@ ok guenther@ kettenis@ | |||
2016-09-16 | teach ddb(4) about CTF. currently it only loads the CTF and uses it on amd64 | Jasper Lievisse Adriaanse | |
to lookup the number of function parameters. however having this basic facility allows us to expand it's usage. currently hidden behind the (disabled) DDBCTF kernel option as some of the required tools are not available in base yet. in addition to that one also needs recent bootblocks that load the .SUNW_ctf kernel section. discussed with mpi@ over many a cider and ale in cambridge feedback and ok guenther@ mpi@ | |||
2016-09-16 | drop unneeded casting noise | Jasper Lievisse Adriaanse | |
pointed out by guenther@ in a separate diff | |||
2016-09-04 | Introduce Dynamic Profiling, a ddb(4) based & gprof compatible kernel | Martin Pieuchot | |
profiling framework. Code patching is used to enable probes when entering functions. The probes will call a mcount()-like function to match the behavior of a GPROF kernel. Currently only available on amd64 and guarded under DDBPROF. Support for other archs will follow soon. A new sysctl knob, ddb.console, need to be set to 1 in securelevel 0 to be able to use this feature. Inputs and ok guenther@ | |||
2016-09-03 | make intrace a volatile, while the compiler does the right thing still | Jasper Lievisse Adriaanse | |
(no change in the generated code), it's more correct and helps the reader. ok deraadt@ guenther@ | |||
2016-09-02 | move links from http to https://www.openbsd.org/ | Theo Buehler | |
ok beck | |||
2016-06-07 | per trending style, add continue to empty loops. | Ted Unangst | |
ok mglocker | |||
2016-05-21 | <sys/localedef.h> isn't needed for ddb structinfo | Philip Guenther | |
ok millert@ deraadt@ schwarze@ |