Re: [PATCH] add -s option to make -break-insert support dprintf

Tom Tromey
2013-05-13T16:23:19Z

>>>>> "Hui" == Hui Zhu <teawater@gmail.com> writes:

Hui> 2013-05-11 Hui Zhu <hui@codesourcery.com>
Hui> * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
Hui> * breakpoint.h (dprintf_breakpoint_ops): Add extern.
Hui> * mi/mi-cmd-break.c (ctype.h): New include.
Hui> (gdb_obstack.h): New include.
Hui> (mi_argv_to_format, mi_cmd_break_insert_1): New.
Hui> (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
Hui> (mi_cmd_dprintf_insert): New.
Hui> * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
Hui> * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.

Hui> 2013-05-11 Hui Zhu <hui@codesourcery.com>

Hui> * gdb.texinfo (GDB/MI Breakpoint Commands): Describe the
Hui> "-dprintf-insert" command.

Hui> 2013-05-11 Hui Zhu <hui@codesourcery.com>

Hui> * gdb.mi/Makefile.in (PROGS): Add "mi-dprintf".
Hui> * gdb.mi/mi-dprintf.exp, gdb.mi/mi-dprintf.c: New.

The code bits are ok.
Thanks.

Tom