This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [commit] testsuite: gdb.base/dprintf.exp PR 12649 race [Re: [PATCH v2] dynamic printf]
> --- src/gdb/testsuite/gdb.base/dprintf.exp 2012/05/14 15:38:41 1.1
> +++ src/gdb/testsuite/gdb.base/dprintf.exp 2012/05/15 13:08:58 1.2
> @@ -24,7 +24,9 @@
> set dp_location1 [gdb_get_line_number "set dprintf 1 here"]
>
> gdb_breakpoint "main"
> -gdb_run_cmd
> +if ![runto main] {
> + return -1
> +}
I think you can also remove the breakpoint on "main", since
"runto" deletes all breakpoints and inserts a new one.
--
Joel