Glitch with textdump/ddb

John Baldwin jhb at freebsd.org
Thu Mar 5 15:22:32 UTC 2015


On Wednesday, March 04, 2015 01:06:17 AM Shrikanth Kamath wrote:
> But if I change the script to
> ddb script kdb.enter.panic="textdump set; capture on; show pcpu; ps;
> call doadump(1)"
> 
> The value supplied to call doadump when the machine enters debugger
> on panic is now set to '1'.
> 
> Should this be the right way to capture information when using text
> dumps? I guess the man page for textdump specifies just "call
> doadump". The problem may not manifest as long the random value picked
> off the stack is non zero.

Yes, the value should be passed explicitly.  HEAD now has a 'dump' command 
that is preferred to calling doadump directly though.  (Not sure if that 
command has been merged to any stable branches.)

-- 
John Baldwin


More information about the freebsd-hackers mailing list