[binutils-gdb] Fix regression for multi breakpoints command line clearing.

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Tue Aug 28 23:18:00 GMT 2018


*** TEST RESULTS FOR COMMIT 999700cd99a227bd6848e95cdc99117b2185e84c ***

Author: Philippe Waroquiers <philippe.waroquiers@skynet.be>
Branch: master
Commit: 999700cd99a227bd6848e95cdc99117b2185e84c

Fix regression for multi breakpoints command line clearing.

breakpoint.c is modified to fix the regression introduced
when clearing the commands of several breakpoints by giving an empty
list of commands, by just typing "end".
GDB should read an empty list of command once, but it reads
it for each breakpoint, as an empty list of command is NULL,
and NULL is interpreted as 'not having read the command list yet'.

The fix consists in having a boolean set to true once the
command list has been read.

gdb/ChangeLog

2018-08-26  Philippe Waroquiers  <philippe.waroquiers@skynet.be>

	* breakpoint.c (commands_command_1): New boolean cmd_read
	to detect cmd was already read.



More information about the Gdb-testers mailing list