diff options
author | Stu Grossman <grossman@cygnus> | 1995-01-25 00:36:33 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1995-01-25 00:36:33 +0000 |
commit | 8e5bc49fe50282f857474c48d9e1e75a7b9628ce (patch) | |
tree | ccb66eacead7c97ad4223fd18ebcedd8b6658a8f /gdb/gdbtk.tcl | |
parent | f2224fe2496e8723da2a39a3bf38ac3eb9bfe685 (diff) | |
download | fsf-binutils-gdb-8e5bc49fe50282f857474c48d9e1e75a7b9628ce.zip fsf-binutils-gdb-8e5bc49fe50282f857474c48d9e1e75a7b9628ce.tar.gz fsf-binutils-gdb-8e5bc49fe50282f857474c48d9e1e75a7b9628ce.tar.bz2 |
* gdbtk.tcl (create_registers_window): Work around a radiobutton
widget bug to make Options|Natural button work.
Diffstat (limited to 'gdb/gdbtk.tcl')
-rw-r--r-- | gdb/gdbtk.tcl | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/gdbtk.tcl b/gdb/gdbtk.tcl index 92f32b9..f44dc74 100644 --- a/gdb/gdbtk.tcl +++ b/gdb/gdbtk.tcl @@ -1411,20 +1411,20 @@ proc create_registers_window {} { .reg.menubar.view.menu delete 0 last # Hex menu item - .reg.menubar.view.menu add radiobutton -variable reg_format \ - -label Hex -value x -command {update_registers all} + .reg.menubar.view.menu add radiobutton -label Hex \ + -command {set reg_format x ; update_registers all} # Decimal menu item - .reg.menubar.view.menu add radiobutton -variable reg_format \ - -label Decimal -value d -command {update_registers all} + .reg.menubar.view.menu add radiobutton -label Decimal \ + -command {set reg_format d ; update_registers all} # Octal menu item - .reg.menubar.view.menu add radiobutton -variable reg_format \ - -label Octal -value o -command {update_registers all} + .reg.menubar.view.menu add radiobutton -label Octal \ + -command {set reg_format o ; update_registers all} # Natural menu item - .reg.menubar.view.menu add radiobutton -variable reg_format \ - -label Natural -value {} -command {update_registers all} + .reg.menubar.view.menu add radiobutton -label Natural \ + -command {set reg_format {} ; update_registers all} # Config menu item .reg.menubar.view.menu add separator |