diff options
author | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2011-05-13 04:34:19 +0000 |
---|---|---|
committer | Thiago Jung Bauermann <bauerman@br.ibm.com> | 2011-05-13 04:34:19 +0000 |
commit | ec6c9892eca69f91762bcaba4bb3dda73869a24c (patch) | |
tree | d8a3900f58e0d8ec4023bb2a84e0bb7a16add0ba /gdb/defs.h | |
parent | def629881c1a7a807c2b954242b43acd3b779a16 (diff) | |
download | gdb-ec6c9892eca69f91762bcaba4bb3dda73869a24c.tar.gz |
gdb/
* mi/mi-main.c (mi_cmd_execute): Use cleanup from
prepare_execute_command.
* top.c (prepare_execute_command): Return cleanup.
(execute_command): Use cleanup from prepare_execute_command.
* top.h (prepare_execute_command): Change prototype to return
cleanup.
* defs.h (struct value): Add opaque declaration.
(make_cleanup_value_free_to_mark): Add prototype.
* utils.c (do_value_free_to_mark): New function.
(make_cleanup_value_free_to_mark): Likewise.
gdb/testsuite/
* gdb.python/py-function.exp: Test setting a value from a function
which executes a command.
Diffstat (limited to 'gdb/defs.h')
-rw-r--r-- | gdb/defs.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/defs.h b/gdb/defs.h index 4df2a3e77ef..771d3ade8fe 100644 --- a/gdb/defs.h +++ b/gdb/defs.h @@ -281,6 +281,7 @@ struct symtab; struct breakpoint; struct frame_info; struct gdbarch; +struct value; /* From main.c. */ @@ -360,6 +361,8 @@ extern struct cleanup *make_cleanup_unpush_target (struct target_ops *ops); extern struct cleanup * make_cleanup_restore_ui_file (struct ui_file **variable); +extern struct cleanup *make_cleanup_value_free_to_mark (struct value *); + extern struct cleanup *make_final_cleanup (make_cleanup_ftype *, void *); extern struct cleanup *make_my_cleanup (struct cleanup **, |