diff options
author | Jim Blandy <jimb@codesourcery.com> | 2003-12-22 03:43:19 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2003-12-22 03:43:19 +0000 |
commit | 6c50ab1c7f10edd00861cdfaf626b92d1caf3665 (patch) | |
tree | dc71703d4a6a3cbcd3b14f407ea730d58de873ea /gdb/cli/cli-script.c | |
parent | c196818164ac5958e4fe55f652b780bdffe838d8 (diff) | |
download | gdb-6c50ab1c7f10edd00861cdfaf626b92d1caf3665.zip gdb-6c50ab1c7f10edd00861cdfaf626b92d1caf3665.tar.gz gdb-6c50ab1c7f10edd00861cdfaf626b92d1caf3665.tar.bz2 |
* breakpoint.c (bpstat_do_actions): To ensure that
clear_proceed_status doesn't free the command tree we're
evaluating out from under us, zero the bpstat's pointer to it, and
take care of freeing it ourselves.
* cli/cli-script.c (make_cleanup_free_command_lines): Make this
function externally visible.
* cli/cli-script.h (make_cleanup_free_command_lines): New
declaration.
Diffstat (limited to 'gdb/cli/cli-script.c')
-rw-r--r-- | gdb/cli/cli-script.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gdb/cli/cli-script.c b/gdb/cli/cli-script.c index cac5408..a8375a3 100644 --- a/gdb/cli/cli-script.c +++ b/gdb/cli/cli-script.c @@ -36,9 +36,6 @@ /* Prototypes for local functions */ -static struct cleanup * - make_cleanup_free_command_lines (struct command_line **arg); - static enum command_control_type recurse_read_control_structure (struct command_line *current_cmd); @@ -1001,7 +998,7 @@ do_free_command_lines_cleanup (void *arg) free_command_lines (arg); } -static struct cleanup * +struct cleanup * make_cleanup_free_command_lines (struct command_line **arg) { return make_cleanup (do_free_command_lines_cleanup, arg); |