Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | sick of the CMU, let's make this KNF | 2020-10-15 | 1 | -6/+6 | |
| | |||||
* | Default to 0 arguments if no symbol has been found in the CTF section. | 2019-11-12 | 1 | -2/+2 | |
| | | | | | | | | | | Symbols not present in the CTF data are generally assembly routines which have either no argument or do not follow the ABI that the various MD stack unwinders understand. This makes ddb(4) trace simpler to understand. ok jasper@ | ||||
* | db_addr_t -> vaddr_t | 2019-11-07 | 1 | -3/+3 | |
| | | | | ok deraadt@ | ||||
* | Pass the correct size to free(9) in the error path of db_ctf_decompress(). | 2018-08-31 | 1 | -2/+2 | |
| | | | | OK jasper@ | ||||
* | Do not truncate 64bit integers when pretty-printing types. | 2018-01-09 | 1 | -2/+16 | |
| | |||||
* | Remove forward declaration hack now that ctfconv(1) merge them correctly. | 2017-11-01 | 1 | -8/+1 | |
| | | | | ok jasper@ | ||||
* | return a missing return (was left out of previous) | 2017-10-13 | 1 | -1/+2 | |
| | |||||
* | - use db_printf() | 2017-10-13 | 1 | -2/+7 | |
| | | | | | | - refuse to pretty-print if there's no CTF ok mpi@ | ||||
* | missing prototype for db_ctf_pprint | 2017-10-11 | 1 | -1/+2 | |
| | | | | ok mpi@ | ||||
* | Skip forward declarations until ctfconv(1) properly merge them with | 2017-09-12 | 1 | -1/+8 | |
| | | | | | | the corresponding struct definitions. ok dlg@ | ||||
* | If you use sys/param.h, you don't need sys/types.h | 2017-09-08 | 1 | -3/+2 | |
| | |||||
* | use sizeof(variable) instead of sizeof(type) to shorten some code | 2017-09-06 | 1 | -2/+2 | |
| | |||||
* | when pretty printing a pointer, display its value instead of address. | 2017-09-06 | 1 | -2/+6 | |
| | | | | | | this makes it consistent with printing of other values. ok mpi@ | ||||
* | replace the DDB_STRUCT backend for "show struct" with ctf code. | 2017-09-06 | 1 | -1/+89 | |
| | | | | | | | this lets you inspect arbitrary memory in the kernel as a specified struct. ok mpi@ jasper@ | ||||
* | db_ctf_pprintf() doesn't actually support formatting, so s/f$// | 2017-08-14 | 1 | -6/+6 | |
| | | | | ok mpi@ | ||||
* | Restore "print" in ddb; add "pp[rint]" for pretty-printing | 2017-08-14 | 1 | -2/+2 | |
| | | | | | | | | | | | 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@ | ||||
* | Fall back using db_print_cmd() if no CTF data has been found. | 2017-08-11 | 1 | -8/+7 | |
| | |||||
* | Improve pretty printing of pointers. | 2017-08-11 | 1 | -7/+39 | |
| | | | | ok jasper@ | ||||
* | Remove debugging leftovers, document functions, bump copyright. | 2017-08-11 | 1 | -27/+11 | |
| | |||||
* | With a CTF kernel, DDB's print command will now pretty-print symbols. | 2017-08-10 | 1 | -35/+300 | |
| | | | | | | Casting a type is not yet supported. ok kettenis@, jasper@ | ||||
* | Kill db_sym_t. | 2017-05-30 | 1 | -2/+2 | |
| | | | | ok deraadt@, kettenis@, jasper@ | ||||
* | Pass the symbol instead of its name when looking for CTF infos. | 2017-05-29 | 1 | -10/+10 | |
| | | | | ok jasper@ | ||||
* | If a function is not found in the CTF data, do not assume it takes no | 2017-05-28 | 1 | -3/+3 | |
| | | | | argument. | ||||
* | Merge two functions to lookup ELF sections by name. | 2017-05-28 | 1 | -27/+2 | |
| | | | | ok claudio@, jasper@ | ||||
* | Spring cleanup: | 2017-05-27 | 1 | -151/+61 | |
| | | | | | | - Cache the string table pointer - Unify return statements - Use the end of the symbol table rather than counting symbols | ||||
* | Use C99 types. | 2017-05-09 | 1 | -13/+13 | |
| | |||||
* | - inline db_ctf_nsyms() into it's only caller. the value remains cached and | 2016-09-18 | 1 | -39/+31 | |
| | | | | | | | won't change, so there's no reason to call it again. - remove explicit return from void function ok mpi@ | ||||
* | rename ddb/db_ctf.h to sys/ctf.h which is the expected location for the public | 2016-09-17 | 1 | -2/+2 | |
| | | | | | | CTF bits. ok kettenis@ mpi@ | ||||
* | move the .SUNW_ctf section name definition to exec_elf.h and document it in elf(5) | 2016-09-17 | 1 | -3/+1 | |
| | | | | | feedback from guenther@ ok guenther@ kettenis@ | ||||
* | teach ddb(4) about CTF. currently it only loads the CTF and uses it on amd64 | 2016-09-16 | 1 | -0/+385 | |
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@ |