[RFA testsuite 3/5] Introduce mi_make_breakpoint

Keith Seitz keiths@redhat.com
Wed Apr 16 18:52:00 GMT 2014


This next patch introduces mi_make_breakpoint. This function builds 
breakpoint regexps, such as "bkpt={number=\".*\", [snip]}".

I've also taken this time to change mi_create_breakpoint to use the same 
interface as this function and return the result.

Note that ONLY the options given to 
mi_make_breakpoint/mi_create_breakpoint will actually be tested. So if 
-number is omitted, the regexp will allow anything [number=\".*\"] It 
gets a little tricky with optional arguments, like -script and -ignore, 
but as far as I know, I've handled all those cases.

Examples:

# Create a breakpoint regexp which only looks for "number=\"3\""
mi_make_breakpoint -number 3

# Create a breakpoint in myfile.c:21
mi_create_breakpoint "myfile.c:21" -file myfile.c -line 21

testsuite/ChangeLog
2014-04-15  Keith Seitz  <keiths@redhat.com>

	* lib/mi-support.exp (mi_create_breakpoint): Use mi_make_breakpoint
	and return the result.
	(mi_make_breakpoint): New procedure.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mi_make_breakpoint.patch
Type: text/x-patch
Size: 3574 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20140416/3ecff85f/attachment.bin>


More information about the Gdb-patches mailing list