diff options
author | Joel Brobecker <brobecker@gnat.com> | 2007-12-16 13:37:26 +0000 |
---|---|---|
committer | Joel Brobecker <brobecker@gnat.com> | 2007-12-16 13:37:26 +0000 |
commit | 41bbea1ac5c8dca5583c3d41157641f2d4cc9011 (patch) | |
tree | 2dde640fc79cc6c811159f78f0f30ef176da772f /gdb | |
parent | 7f7f83e8b1993e1f3591db3ce5665c9c6dc78401 (diff) | |
download | gdb-41bbea1ac5c8dca5583c3d41157641f2d4cc9011.zip gdb-41bbea1ac5c8dca5583c3d41157641f2d4cc9011.tar.gz gdb-41bbea1ac5c8dca5583c3d41157641f2d4cc9011.tar.bz2 |
* mi/mi-main.c: Remove code that was commented out in 1999.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/mi/mi-main.c | 30 |
2 files changed, 4 insertions, 30 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index a54b2f3..ab89bd5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2007-12-16 Joel Brobecker <brobecker@adacore.com> + * mi/mi-main.c: Remove code that was commented out in 1999. + +2007-12-16 Joel Brobecker <brobecker@adacore.com> + * expression.h (parse_expression_in_context): Delete prototype. * parse.c (parse_expression_in_context): Delete. diff --git a/gdb/mi/mi-main.c b/gdb/mi/mi-main.c index 5c9d63d..025c66d 100644 --- a/gdb/mi/mi-main.c +++ b/gdb/mi/mi-main.c @@ -643,36 +643,6 @@ mi_cmd_data_write_register_values (char *command, char **argv, int argc) return MI_CMD_DONE; } -#if 0 -/* This is commented out because we decided it was not useful. I leave - it, just in case. ezannoni:1999-12-08 */ - -/* Assign a value to a variable. The expression argument must be in - the form A=2 or "A = 2" i.e. if there are spaces it needs to be - quoted. */ -enum mi_cmd_result -mi_cmd_data_assign (char *command, char **argv, int argc) -{ - struct expression *expr; - struct cleanup *old_chain; - - if (argc != 1) - { - mi_error_message = xstrprintf ("mi_cmd_data_assign: Usage: -data-assign expression"); - return MI_CMD_ERROR; - } - - /* NOTE what follows is a clone of set_command(). FIXME: ezannoni - 01-12-1999: Need to decide what to do with this for libgdb purposes. */ - - expr = parse_expression (argv[0]); - old_chain = make_cleanup (free_current_contents, &expr); - evaluate_expression (expr); - do_cleanups (old_chain); - return MI_CMD_DONE; -} -#endif - /* Evaluate the value of the argument. The argument is an expression. If the expression contains spaces it needs to be included in double quotes. */ |