diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-19 01:32:08 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1991-04-19 01:32:08 +0000 |
commit | f266e5641bf784095775c76514192f8ea29a179b (patch) | |
tree | 82fbba8b6a4a95688fad3b52171bbc2fa6ee0927 /gdb/values.c | |
parent | 543e29f11a54f29ad9f1724bf9be8b26d567fe02 (diff) | |
download | gdb-f266e5641bf784095775c76514192f8ea29a179b.zip gdb-f266e5641bf784095775c76514192f8ea29a179b.tar.gz gdb-f266e5641bf784095775c76514192f8ea29a179b.tar.bz2 |
*** empty log message ***
Diffstat (limited to 'gdb/values.c')
-rw-r--r-- | gdb/values.c | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/gdb/values.c b/gdb/values.c index 5d40882..196ea23 100644 --- a/gdb/values.c +++ b/gdb/values.c @@ -26,6 +26,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */ #include "gdbcore.h" #include "frame.h" #include "command.h" +#include "gdbcmd.h" /* The value-history records all the values printed by print commands during this session. Each chunk @@ -286,7 +287,7 @@ clear_value_history () } static void -value_history_info (num_exp, from_tty) +show_values (num_exp, from_tty) char *num_exp; int from_tty; { @@ -446,7 +447,7 @@ clear_internalvars () } static void -convenience_info () +show_convenience () { register struct internalvar *var; int varseen = 0; @@ -1331,15 +1332,16 @@ set_return_value (val) void _initialize_values () { - add_info ("convenience", convenience_info, + add_cmd ("convenience", no_class, show_convenience, "Debugger convenience (\"$foo\") variables.\n\ These variables are created when you assign them values;\n\ thus, \"print $foo=1\" gives \"$foo\" the value 1. Values may be any type.\n\n\ A few convenience variables are given values automatically:\n\ \"$_\"holds the last address examined with \"x\" or \"info lines\",\n\ -\"$__\" holds the contents of the last address examined with \"x\"."); +\"$__\" holds the contents of the last address examined with \"x\".", + &showlist); - add_info ("values", value_history_info, - "Elements of value history around item number IDX (or last ten)."); - add_info_alias ("history", "values", 0); + add_cmd ("values", no_class, show_values, + "Elements of value history around item number IDX (or last ten).", + &showlist); } |