One thing I like *very much* in gdb is its ability to display function
params and local variables in any stack frame, and I haven't found out how
to do it with crash.
Agreed. AFAIK, crash does not display the function params and local
variables. gdb has got this advantage, though last time I looked
at local variables dispalyed by gdb, they seemed to be junk. Not very
sure why it was so?
I agree that gdb is sometimes very slow, but maybe it's easier to optimize gdb than to make crash smarter?
I beg to differ here. Not sure why it is easier to optimize gdb. If we try to optimize gdb by writing scripts, then IMHO, writing C program is easier and faster. If the idea is to optimize gdb by modifying gdb code then its no different than crash. In fact, why to reinvent the wheel if crash already does so many things for us. Yes, but probably we need to modify crash to be able to obtain function parameters and local variables.
For this particular problem (listing threads), the real fix would be to add the PT_NOTE entry that each thread deserves, then gdb would let you do "info threads" instead, and dump nice backtraces of each.
Displaying even the currently non executing threads using "info threads" and their backtraces is interesting. Crash can already do that. I am apprehensive about traversing through the task list and dumping every thread's register state after a crash. There is no gurantee that list is in a sane state. And in general, we are trying to make crash handler as small as possible to improve the reliability of dumping operation.
Register state of every non-executing thread is already present in the
vmcore and IMHO, we should write scripts to get info about other
threads then doing it in kernel.