OSDN Git Service

* regtool.cc (key_type): Drop.
authorcorinna <corinna>
Sat, 21 Oct 2006 17:19:29 +0000 (17:19 +0000)
committercorinna <corinna>
Sat, 21 Oct 2006 17:19:29 +0000 (17:19 +0000)
commitecfc4afeadaba8684524304794ebe5adbd93adfc
treef46fa949d838a89d20411a9a423e8be3be258457
parent6eba4fd2ffa0a4463b1baabc99e182a37872eda7
* regtool.cc (key_type): Drop.
(REG_AUTO): Define.
(value_type): Replace key_type.  Use REG_xxx values directly.
Accomodate change throughout.
(longopts): Add --dword, --dword-le, --none, --qword and --hex options.
(opts): Add -d, -D, -n, -Q and -x options.
(types): Array to convert REG_xxx into strings.
(hex): New variable to keep value of --hex option.
(usage): Accomodate new options.  Print only the necessary by default.
Only be verbose in case of -h/--help option.
(cmd_list): Use key separator from -K option when printing.
Print value type when verbose option is given.  Handle so far not
handled REG_xxx types.
(cmd_set): Avoid SEGV due to missing argument.  Handle so far not
handled REG_xxx types.
(cmd_get): Handle --binary option type agnostic.  Handle so far not
handled REG_xxx types.
(main): Handle new options.
winsup/utils/ChangeLog
winsup/utils/regtool.cc