Fix MI dprintf-insert not printing on a resolved pending location.
authorAntoine Tremblay <antoine.tremblay@ericsson.com>
Fri, 12 Jun 2015 11:58:47 +0000 (07:58 -0400)
committerAntoine Tremblay <antoine.tremblay@ericsson.com>
Fri, 12 Jun 2015 12:43:17 +0000 (08:43 -0400)
commit98aa42ee02c56378cecb737d01c27adca36bf48f
tree20394df6558afc1babf8611f64b79939e935a017
parent0054dcd7b6a815ce178c464f7a1b7e7fce7df3e4
Fix MI dprintf-insert not printing on a resolved pending location.

This patch fixes the "Format string required" error when trying to print
a dprintf on a now resolved, pending location when set via the MI interface
even if the format string is entered correctly.

This patch also adds a test case to check that issue called
mi-dprintf-pending.exp.

gdb/ChangeLog:

PR breakpoints/16465
* breakpoint.c (create_breakpoint): Save extra_string for
pending breakpoints.

gdb/testsuite/ChangeLog:

PR breakpoints/16465
* gdb.mi/mi-dprintf-pending.c: New file.
* gdb.mi/mi-dprintf-pending.exp: New test.
* gdb.mi/mi-dprintf-pendshr.c: New file.
gdb/ChangeLog
gdb/breakpoint.c
gdb/testsuite/ChangeLog
gdb/testsuite/gdb.mi/mi-dprintf-pending.c [new file with mode: 0644]
gdb/testsuite/gdb.mi/mi-dprintf-pending.exp [new file with mode: 0644]
gdb/testsuite/gdb.mi/mi-dprintf-pendshr.c [new file with mode: 0644]