summaryrefslogtreecommitdiffstats
path: root/sys/ddb/db_elf.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* sick of the CMU, let's make this KNFderaadt2020-10-151-2/+2
|
* Stop requiring that .strtab has long alignment.gkoehler2020-05-261-3/+2
| | | | | | | | When ddb loads symbols, the .strtab contains char strings and doesn't need long alignment. Our bootloader provides long alignment, but I started loading symbols on powerpc64 without our bootloader. ok mpi@ guenther@ kettenis@
* db_addr_t -> vaddr_tmpi2019-11-071-3/+2
| | | | ok deraadt@
* If you use sys/param.h, you don't need sys/types.hderaadt2017-09-081-3/+2
|
* With a CTF kernel, DDB's print command will now pretty-print symbols.mpi2017-08-101-5/+5
| | | | | | Casting a type is not yet supported. ok kettenis@, jasper@
* Kill db_sym_t.mpi2017-05-301-7/+7
| | | | ok deraadt@, kettenis@, jasper@
* Merge two functions to lookup ELF sections by name.mpi2017-05-281-8/+7
| | | | ok claudio@, jasper@
* Use ELF_ST_{BIND,TYPE} instead of ELFDEFNNAME(ST_{BIND,TYPE})guenther2017-02-081-7/+7
| | | | ok jca@
* teach ddb(4) about CTF. currently it only loads the CTF and uses it on amd64jasper2016-09-161-16/+3
| | | | | | | | | | | | 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@
* Collapse db_dwarf.h into db_sym.hmpi2016-04-201-2/+1
| | | | ok matthew@
* boolean_t/FALSE/TRUE -> int/0/1mpi2016-03-071-10/+10
|
* Merge db_elf_sym_values() into db_symbol_values().mpi2016-03-061-3/+7
| | | | ok stefan@
* Make db_value_of_name() call db_elf_sym_lookup() in order to killmpi2016-03-011-5/+18
| | | | | | | | | db_lookup() as requested by mlarkin@ While here move the function to db_elf.c do keep db_elf_sym_lookup() private. ok mikeb@ appart from the move the function
* DB_SYM_NULL -> NULL.mpi2016-03-011-5/+5
|
* Remove the "symbol table" argument of the functions dealing withmpi2016-02-271-20/+50
| | | | | | | | | symbols. There's no reason to ask the programmer to supply a specific symbol table since the kernel only have one. ok visa@, guenther@
* Removes the abstraction layer to support multiple executable binaries.mpi2016-01-271-44/+5
| | | | | | | Simplifies the API to manipulate symbols now that all our architectures are ELF. ok tb@
* Do not mix variable declaration and logic.mpi2016-01-251-4/+3
|
* Kill trailing whitespaces. No object change.mpi2016-01-251-5/+5
|
* Remove some includes include-what-you-use claims don'tjsg2015-03-141-2/+1
| | | | | | | have any direct symbols used. Tested for indirect use by compiling amd64/i386/sparc64 kernels. ok tedu@ deraadt@
* ddb: add support for DWARF line number decodingmatthew2014-10-091-7/+48
| | | | | | | | | | | | | | | | | | | | | | | | | This allows ddb's "trace" command to include file and line numbers: ddb{0}> trace Debugger() at Debugger+0x9 [../../../../arch/amd64/amd64/db_interface.c:405] ddb_sysctl() at ddb_sysctl+0x1b4 [../../../../ddb/db_usrreq.c:104] sys___sysctl() at sys___sysctl+0x216 [../../../../kern/kern_sysctl.c:229] syscall() at syscall+0x297 [../../../../sys/syscall_mi.h:84] --- syscall (number 202) --- end of kernel end trace frame: 0x7f7ffffcf1d7, count: -4 acpi_pdirpa+0x4117aa: For this to work, it requires using a new version of boot(8), and booting a kernel with the .debug_line section present (e.g., building with ``makeoptions DEBUG="-g"'' and then booting the bsd.gdb kernel instead of the stripped bsd kernel). Still a WIP, but no failure reports yet. Committing so further development and testing can happen in tree. prodding deraadt, guenther, mlarkin ok mpi
* remove uneeded proc.h includesjsg2014-09-141-2/+1
| | | | ok mpi@ kspillner@
* DDB supports ELF symbols are all archs, and it's always the same as theguenther2014-03-161-10/+1
| | | | | | native size, so eliminate the #defines. ok miod@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Use db_printf instead of printf, to prevent problems with lockingkettenis2007-10-061-4/+4
| | | | | | kprintf_mutex in the early stages of booting. ok miod@ (a while ago)
* ansi/deregister. No binary change.jsg2006-03-131-38/+18
|
* When searching for the symbol table and string table we were lookingart2003-06-011-1/+25
| | | | | | | | | | | for ".symtab" and ".strtab" in the section names. Instead of doing that, look for section type SHT_SYMTAB for the symbol table and follow the link in sh_link to find the corresponding string table. This is a more correct way of doing things and will work better when the toolchain doesn't generate ".symtab" and ".strtab" names and it will work when there are multiple symbol tables. noone objected to this diff for at least a week.
* Final __P removal plus some cosmetic fixupsmillert2002-03-141-4/+4
|
* First round of __P removal in sysmillert2002-03-141-14/+14
|
* Print a reason for failing to init the symbol table.art2001-08-191-6/+15
|
* $OpenBSD$niklas2001-03-151-0/+1
|
* new symbol handling in ddb for ELF, there is still a problem with hangman on alpha though..niklas2001-02-101-0/+415