kdb wishlist
This is part of my kdb wishlist, does anybody fancy writing the code to add any of these features? It would be a nice project for anybody wanting to start on the kernel. Replies to [email protected] please. Current patches at http://oss.sgi.com/projects/kdb/download/
* Change kdb invocation key from ^A to ^X^X^X within 3 seconds. ^A is used by emacs, bash, minicom etc.
* Command history. Handle up/down/left/right/delete keys. Each kdba_io routine is responsible for recognising the arch specific keys, with a common history and editting routine.
* Clean up repeating commands. Pressing enter at the kdb prompt repeats the previous command, no matter what the previous command was. Some commands it makes no sense to repeat (bp in particular), for other commands you want to repeat the command but without the parameter (md in particular).
* Embed width and count options in md and mm commands. Some hardware requires that accesses be a specific width, this can be achieved by setting BYTESPERWORD but it is awkward. We want md1 to read one byte, md2, md4, md8 commands. All can have a count field, e.g. md1c8 reads 8 bytes one at a time. mm1, mm2, mm4, mm8 to set memory no count field.
Keith,
What would be really great is to add the following item to your wishlist:
* make it possible (it is trivial but a pain to have to do it manually every time I upgrade to your latest version!) for those extra "modules" to be statically linked in. So that one doesn't have to keep these lines in the rc.local
if [ -f /proc/sys/kernel/kdb ]
then
insmod kdbm_pg > /dev/null 2>&1
insmod kdbm_vm > /dev/null 2>&1fi
and then discover that the modules are from the compilation corresponding to a different tweak in page.h or highmem or whatever (let him who readeth understand ;)
Long time ago I suggested removing the infrastructure for these "modules" completely (justification being -- it is not useless _only_ in a very exotic case of the need to teach kdb new features on a running kernel without permission to reboot) but you objected and that is fine, but at least making it optionally possible would be _very nice_, please.
Regards,
Tigran
Quoted 9 lines · Keith Owens
This is part of my kdb wishlist, does anybody fancy writing the code to add any of these features? It would be a nice project for anybody wanting to start on the kernel. Replies to [email protected] please. Current patches at http://oss.sgi.com/projects/kdb/download/
* Change kdb invocation key from ^A to ^X^X^X within 3 seconds. ^A is used by emacs, bash, minicom etc.
^X^X swaps point and mark in emacs. One (well, I) often will do ^X^X^X^X to examine where mark is and then return to point.
George
~snip
Quoted 8 lines
Quoted 6 lines · Keith Owens
This is part of my kdb wishlist, does anybody fancy writing the code to add any of these features? It would be a nice project for anybody wanting to start on the kernel. Replies to [email protected] please. Current patches at http://oss.sgi.com/projects/kdb/download/
Quoted 5 lines
Quoted 3 lines
* Change kdb invocation key from ^A to ^X^X^X within 3 seconds. ^A is used by emacs, bash, minicom etc.
^X^X swaps point and mark in emacs. One (well, I) often will do ^X^X^X^X to examine where mark is and then return to point.
How about using the break condition instead. This is only for the serial port, and most terminal emulators (e.g. kermit, minicom) provide a means to generate a break condition on the serial port.
scott
Quoted 5 lines
George
~snip
Quoted 10 lines
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
"slurn" == slurn <[email protected]> writes:
Quoted 6 lines · Keith Owens
This is part of my kdb wishlist, does anybody fancy writing the code to add any of these features? It would be a nice project for anybody wanting to start on the kernel. Replies to [email protected] please. Current patches at http://oss.sgi.com/projects/kdb/download/
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
* Change kdb invocation key from ^A to ^X^X^X within 3 seconds. ^A is used by emacs, bash, minicom etc.
^X^X swaps point and mark in emacs. One (well, I) often will do ^X^X^X^X to examine where mark is and then return to point.
slurn> How about using the break condition instead. This is only for the slurn> serial port, and most terminal emulators (e.g. kermit, minicom) provide slurn> a means to generate a break condition on the serial port.
kdb uses BREAK in the serial port (that minicom uses C-a for sending a break is an anecdote :) But the problem at hang is the console. I vote for the ^X^X^X as I a think that it is not a difficult shortcut. (and yes, I also use emacs and ^X^X all the time, but I think that this combination is not specially bad, and I suppose that the pet aplication of other people will have problems with something like:
^A^A^A that I never use).
Later, Juan.
Signature · 2 lines
In theory, practice and theory are the same, but in practice they are different -- Larry McVoy
Quoted 29 lines
Quoted 11 lines
Quoted 11 lines
Quoted 2 lines
Quoted 2 lines
Quoted 2 lines
"slurn" == slurn <[email protected]> writes:
Quoted 6 lines · Keith Owens
This is part of my kdb wishlist, does anybody fancy writing the code to add any of these features? It would be a nice project for anybody wanting to start on the kernel. Replies to [email protected] please. Current patches at http://oss.sgi.com/projects/kdb/download/
Quoted 5 lines
Quoted 5 lines
Quoted 3 lines
* Change kdb invocation key from ^A to ^X^X^X within 3 seconds. ^A is used by emacs, bash, minicom etc.
^X^X swaps point and mark in emacs. One (well, I) often will do ^X^X^X^X to examine where mark is and then return to point.
slurn> How about using the break condition instead. This is only for the slurn> serial port, and most terminal emulators (e.g. kermit, minicom) provide slurn> a means to generate a break condition on the serial port.
kdb uses BREAK in the serial port (that minicom uses C-a for sending a break is an anecdote :) But the problem at hang is the console. I vote for the ^X^X^X as I a think that it is not a difficult shortcut. (and yes, I also use emacs and ^X^X all the time, but I think that this combination is not specially bad, and I suppose that the pet aplication of other people will have problems with something like:
^A^A^A that I never use).
Quoted 1 line
Later, Juan.
Unless something has changed, the console uses the 'pause' key and the serial port uses ^A (for x86, anyway).
I may be out of date, however.
scott
Quoted 2 lines
* Change kdb invocation key from ^A to ^X^X^X within 3 seconds. ^A is used by emacs, bash, minicom etc.
Why not Alt-SysRq-D (like Debug) or so?
Quoted 3 lines
* Command history. Handle up/down/left/right/delete keys. Each
kdba_ioroutine is responsible for recognising the arch specific keys, with a common history and editting routine.
yes!
Quoted 5 lines
* Clean up repeating commands. Pressing enter at the kdb prompt repeats the previous command, no matter what the previous command was. Some commands it makes no sense to repeat (bp in particular), for other commands you want to repeat the command but without the parameter (md in particular).
Should be configurable. Sometimes I accidentally hit enter or do it just to do something...
-mirabilos
Signature · 1 line
EA F0 FF 00 F0 #$@%CARRIER LOST