summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_ctf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sick of the CMU, let's make this KNFderaadt2020-10-151-6/+6
|
* Default to 0 arguments if no symbol has been found in the CTF section.mpi2019-11-121-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_tmpi2019-11-071-3/+3
| | | | ok deraadt@
* Pass the correct size to free(9) in the error path of db_ctf_decompress().bluhm2018-08-311-2/+2
| | | | OK jasper@
* Do not truncate 64bit integers when pretty-printing types.mpi2018-01-091-2/+16
|
* Remove forward declaration hack now that ctfconv(1) merge them correctly.mpi2017-11-011-8/+1
| | | | ok jasper@
* return a missing return (was left out of previous)jasper2017-10-131-1/+2
|
* - use db_printf()jasper2017-10-131-2/+7
| | | | | | - refuse to pretty-print if there's no CTF ok mpi@
* missing prototype for db_ctf_pprintjasper2017-10-111-1/+2
| | | | ok mpi@
* Skip forward declarations until ctfconv(1) properly merge them withmpi2017-09-121-1/+8
| | | | | | the corresponding struct definitions. ok dlg@
* If you use sys/param.h, you don't need sys/types.hderaadt2017-09-081-3/+2
|
* use sizeof(variable) instead of sizeof(type) to shorten some codedlg2017-09-061-2/+2
|
* when pretty printing a pointer, display its value instead of address.dlg2017-09-061-2/+6
| | | | | | this makes it consistent with printing of other values. ok mpi@
* replace the DDB_STRUCT backend for "show struct" with ctf code.dlg2017-09-061-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$//uwe2017-08-141-6/+6
| | | | ok mpi@
* Restore "print" in ddb; add "pp[rint]" for pretty-printinguwe2017-08-141-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.mpi2017-08-111-8/+7
|
* Improve pretty printing of pointers.mpi2017-08-111-7/+39
| | | | ok jasper@
* Remove debugging leftovers, document functions, bump copyright.mpi2017-08-111-27/+11
|
* With a CTF kernel, DDB's print command will now pretty-print symbols.mpi2017-08-101-35/+300
| | | | | | Casting a type is not yet supported. ok kettenis@, jasper@
* Kill db_sym_t.mpi2017-05-301-2/+2
| | | | ok deraadt@, kettenis@, jasper@
* Pass the symbol instead of its name when looking for CTF infos.mpi2017-05-291-10/+10
| | | | ok jasper@
* If a function is not found in the CTF data, do not assume it takes nompi2017-05-281-3/+3
| | | | argument.
* Merge two functions to lookup ELF sections by name.mpi2017-05-281-27/+2
| | | | ok claudio@, jasper@
* Spring cleanup:mpi2017-05-271-151/+61
| | | | | | - Cache the string table pointer - Unify return statements - Use the end of the symbol table rather than counting symbols
* Use C99 types.mpi2017-05-091-13/+13
|
* - inline db_ctf_nsyms() into it's only caller. the value remains cached andjasper2016-09-181-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 publicjasper2016-09-171-2/+2
| | | | | | CTF bits. ok kettenis@ mpi@
* move the .SUNW_ctf section name definition to exec_elf.h and document it in elf(5)jasper2016-09-171-3/+1
| | | | | feedback from guenther@ ok guenther@ kettenis@
* teach ddb(4) about CTF. currently it only loads the CTF and uses it on amd64jasper2016-09-161-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@