This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [RFA] GDB/622 - clear current breakpoint in commands causes trouble
- From: Joel Brobecker <brobecker at gnat dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 20 Aug 2002 06:27:52 -0700
- Subject: Re: [RFA] GDB/622 - clear current breakpoint in commands causes trouble
- References: <20020731195012.GK683@gnat.com>
ping?
> 2002-07-31 Joel Brobecker <brobecker@gnat.com>
>
> * cli/cli-scripts.c (copy_command_lines): New function.
> (make_cleanup_free_command_lines): Make this function non static.
>
> * defs.h (copy_command_lines): Add definition.
> (make_cleanup_free_command_lines): Add definition.
>
> * breakpoint.c (bpstat_do_actions): Execute a temporary copy of
> the command-list associated to each breakpoint hit, in order to
> avoid accessing a dangling pointer, in case one of the commands
> in the list causes the breakpoint to be deleted.
--
Joel