[RFA testsuite 4/5] Introduce mi_make_breakpoint_table

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


Hi,

This last new function uses the previously introduced functions to build 
an MI breakpoint table regexp.

Example:

set bps {}
lappend bps [mi_make_breakpoint -number 1 -func "main" \
     -file ".*/myfile.c" -line 42
lappend bps [mi_make_breakpoint -number 2 -func "marker" \
     -file ".*myfile.c" -line 21
gdb_test "-break-info" "\\^done,[mi_make_breakpoint_table $bps]" \
     "breakpoint list"

This makes mi_list_breakpoints trivial to do, so I've removed that 
procedure entirely. [It was so useful that it was only ever used in one 
place!]

Keith

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

	* lib/mi-support.exp (mi_list_breakpoints): Delete.
	(mi_make_breakpoint_table): New procedure.


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


More information about the Gdb-patches mailing list