Page MenuHomeFreeBSD

Enable ^C (and incidentally ^S/^Q) in ddb.
ClosedPublic

Authored by rang_acm.org on Jan 11 2017, 5:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Apr 2, 7:42 PM
Unknown Object (File)
Tue, Apr 2, 5:58 PM
Unknown Object (File)
Mar 3 2024, 7:30 AM
Unknown Object (File)
Mar 3 2024, 7:08 AM
Unknown Object (File)
Feb 14 2024, 9:47 AM
Unknown Object (File)
Jan 30 2024, 8:47 AM
Unknown Object (File)
Jan 15 2024, 2:50 AM
Unknown Object (File)
Dec 23 2023, 7:28 AM
Subscribers
None

Details

Summary

I usually set $lines to 0 so that I can do large memory/buffer/etc. dumps from ddb; but sometimes it is useful to be able to interrupt the output, especially when using a relatively slow serial connection. Code for this was already present, but not hooked up for some reason. This just hooks it up to the console subsystem.

I did minimal testing, just using DDB on an AMD64 kernel, but it seems to work as expected. It's a little messy since you get the kdb reentry stack after ^C, but works.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

rang_acm.org retitled this revision from to Enable ^C (and incidentally ^S/^Q) in ddb..
rang_acm.org updated this object.
rang_acm.org edited the test plan for this revision. (Show Details)
rang_acm.org added reviewers: markj, jhb.
markj edited edge metadata.

Nice, I've wanted this too.

The backtrace spam is a feature of many seemingly reasonable DDB actions (e.g. "show proc <pid>" when no process with that PID exists).

This revision is now accepted and ready to land.Jan 11 2017, 6:06 PM
jhb edited edge metadata.

How odd that this was never hooked up.

This revision was automatically updated to reflect the committed changes.