Sync from head
remove duplicate semicolons where possible.Approved by: cpercivaMFC after: 1 week
Sync FreeBSD's bmake branch with Juniper's internal bmake branch.Requested by: Simon Gerraty <sjg@juniper.net>
Correct subcommand name 'unset' -> 'unscript'.
Plug an fd leak
Always assign WARNS using ?=- fix some nearby style bugs- include Makefile.inc where it makes sense and reduces duplicationApproved by: ed (co-mentor)
Ensure 'kvm' is always initialized. If "-M" was not specified and thegarbage value on the stack was not zero, then 'ddb capture' would try touse the garbage value as a kvm_t pointer.MFC after: 1
Ensure 'kvm' is always initialized. If "-M" was not specified and thegarbage value on the stack was not zero, then 'ddb capture' would try touse the garbage value as a kvm_t pointer.MFC after: 1 week
show more ...
When extracting the capture buffer from a crashdump, only read the validportion of the capture buffer (db_capture_bufoff vs db_capture_bufsize).This could result in outputting garbage (e.g. lots of
When extracting the capture buffer from a crashdump, only read the validportion of the capture buffer (db_capture_bufoff vs db_capture_bufsize).This could result in outputting garbage (e.g. lots of 'p' characters ifDIAGNOSTIC is enabled) after the end of the capture buffer. While here,fix a spelling nit.Reported by: Mikolaj Golub to my trociny of gmailMFC after: 3 days
Apply various fixes:Silence mdoc(7) warnings;Xref correct manual pages;Point user to the ddb.8 manual page.PR: 129398Submitted by: gavin
DDB scripting, textdumps, output capture, etc, all will appear inFreeBSD 7.1 before 8.0 ships.Spotted by: Ulrich Spoerlein <uspoerlein at gmail dot com>MFC after: 3 days
Add "ddb capture print" and "ddb capture status" commands do ddb(8),alowing the DDB output capture buffer to be easily extracted fromuser space. Both of these commands include -M/-N arguments, all
Add "ddb capture print" and "ddb capture status" commands do ddb(8),alowing the DDB output capture buffer to be easily extracted fromuser space. Both of these commands include -M/-N arguments, allowingthem to be used with kernel crash dumps (or /dev/mem).This makes it easier to use DDB scripting and output capture withminidumps or full dumps rather than with text dumps, allowing DDBoutput (scripted or otherwise) to be easily extracted from a crashdump.MFC after: 1 weekDiscussed with: brooks, jhb
- Normalize usage(), add "ddb pathname" syntax.- Revise the manpage.
Add the ability to read a file of commands to ddb(8) modeled after thefeature in ipfw(8).
Minor formatting tweaks.Point at ddb(4) and textdump(4) man pages for more script examples.MFC after: 3 months
Add command-line tool ddb(8), which allows DDB(4) scripts to bemanaged from userspace. It is largely a wrapper for sysctl()calls, but because the sysctls for adding and removing scriptsare awkwar
Add command-line tool ddb(8), which allows DDB(4) scripts to bemanaged from userspace. It is largely a wrapper for sysctl()calls, but because the sysctls for adding and removing scriptsare awkward to use directly, this provides an easier-to-useinterface.MFC after: 3 months
12