This is the mail archive of the gdb-cvs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

src/gdb ChangeLog breakpoint.c breakpoint.h te ...


CVSROOT:	/cvs/src
Module name:	src
Changes by:	palves@sourceware.org	2013-04-08 14:09:30

Modified files:
	gdb            : ChangeLog breakpoint.c breakpoint.h 
	gdb/testsuite  : ChangeLog 
	gdb/testsuite/gdb.mi: mi-break.exp 

Log message:
	create_breapoint / explicit mode: Error out if there's garbage after the breakpoint location.
	
	If !PARSE_CONDITION_AND_THREAD, then ARG is just the location, nothing
	else.  The fact that the describing comment of create_breakpoint
	doesn't mention this just looks like an oversight of when extra_string
	was added.  "parse_condition_and_thread" has been a misnomer ever
	since extra_string was added -- better rename it avoid more confusion.
	This makes it "parse_arg", as that'll remain stable even if/when more
	explicit parameters are added.
	
	gdb/
	2013-04-08  Pedro Alves  <palves@redhat.com>
	Keith Seitz  <keiths@redhat.com>
	
	* breakpoint.c (create_breakpoint): Rename
	"parse_condition_and_thread" parameter to "parse_arg".  Update
	describing comment.  If !PARSE_ARG, then error out if ARG is not
	the empty string after extracting the location.
	* breakpoint.h (create_breakpoint): Rename
	"parse_condition_and_thread" parameter to "parse_arg".
	
	gdb/testsuite/
	2013-04-08  Pedro Alves  <palves@redhat.com>
	
	* gdb.mi/mi-break.exp (test_error): Add tests with garbage after
	the location.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/ChangeLog.diff?cvsroot=src&r1=1.15375&r2=1.15376
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.c.diff?cvsroot=src&r1=1.749&r2=1.750
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/breakpoint.h.diff?cvsroot=src&r1=1.194&r2=1.195
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/ChangeLog.diff?cvsroot=src&r1=1.3615&r2=1.3616
http://sourceware.org/cgi-bin/cvsweb.cgi/src/gdb/testsuite/gdb.mi/mi-break.exp.diff?cvsroot=src&r1=1.40&r2=1.41


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]