Open matklad opened 3 years ago
Headcrab doesn't have support for DWARF unwinding yet (#60). It shouldn't be too implement this tool for the existing frame pointer unwinder though. I don't think I will be able to implement this myself very soon unfortunately.
Sort version of an ask:
Long version:
For my personal use, I reach for debuggers mostly to get stactraces on deadlocks/livelocks. Every time I need to google how to gdb and recollect that
bt thread all
incantation. Moreover, when I debug a hang on someone-else's computer, I need to teach them how to work with gdb. My life would be much easier if I can ask them to justcargo install print-stacktrace
.This utility should dump a stack of a running process using either process name (default) or PID (with -p argument). Defaulting to name makes sense, as figuring out a PID is often a stumbling block. If there's more than one process with a matching name, I think the tool should print:
It seems like implementing this should be possible in the early stages of headcrab (I've said it already, and I say it again: what a delightful name!), and it'll put some part of the infra into production usage.