This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]