This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: RFA: protect breakpoint commands from being freed
- From: Daniel Jacobowitz <drow at mvista dot com>
- To: Jim Blandy <jimb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Wed, 17 Dec 2003 13:32:08 -0500
- Subject: Re: RFA: protect breakpoint commands from being freed
- References: <vt2isklntuw.fsf@zenia.home>
On Sat, Dec 13, 2003 at 12:56:39AM -0500, Jim Blandy wrote:
>
> 2003-12-02 Jim Blandy <jimb@redhat.com>
>
> * 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.
I don't believe anyone has objected to this patch, and it looks good to
me. Please check this in.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer