[RFA] GDB/624 - tbreak commands not executed when breakpoint hit
Joel Brobecker
brobecker@gnat.com
Wed Jul 31 13:16:00 GMT 2002
Grrr,
This chunck is of course not part of this RFA (see another RFA for PR
GDB/622). Sorry.
> diff -c -3 -p -r1.78 breakpoint.c
> *** breakpoint.c 26 Jun 2002 05:20:04 -0000 1.78
> --- breakpoint.c 31 Jul 2002 20:08:35 -0000
> *************** top:
> *** 1882,1888 ****
> breakpoint_proceeded = 0;
> for (; bs != NULL; bs = bs->next)
> {
> ! cmd = bs->commands;
> while (cmd != NULL)
> {
> execute_control_command (cmd);
> --- 1882,1892 ----
> breakpoint_proceeded = 0;
> for (; bs != NULL; bs = bs->next)
> {
> ! /* Use a temporary copy of the commands, as one command in the list
> ! may cause this breakpoint and its commands to be deleted. */
> ! cmd = copy_command_lines (bs->commands);
> ! make_cleanup_free_command_lines (&cmd);
> !
> while (cmd != NULL)
> {
> execute_control_command (cmd);
--
Joel
More information about the Gdb-patches
mailing list