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: [PATCH 13/17] btrace: non-stop


> -----Original Message-----
> From: gdb-patches-owner@sourceware.org [mailto:gdb-patches-
> owner@sourceware.org] On Behalf Of Pedro Alves
> Sent: Wednesday, September 9, 2015 4:51 PM
> To: Metzger, Markus T
> Cc: gdb-patches@sourceware.org
> Subject: Re: [PATCH 13/17] btrace: non-stop
> 
> On 09/09/2015 03:08 PM, Metzger, Markus T wrote:
> 
> >>>
> >>> Wouldn't the 1st or 2nd pattern skip any $gdb_prompt before the
> pattern?
> >>
> >> Yes.  Is that a problem?  Don't we always get another prompt after that
> >> error?
> >
> > No, we don't.  We have a single prompt that appears somewhere in the
> output.
> >
> > 	(gdb) thread apply all continue
> 
> That seems to be root of the problem.  That'll do a synchronous
> continue on each thread, one by one.  I think that what you want
> is instead:
> 
>  	(gdb) thread apply all continue&
> 
> And that way you get a single prompt before any breakpoint is hit.

That seems to be the case.  I'm still getting the error I'm checking for before
the prompt, though, and my test will run into a timeout.

	thread apply all reverse-stepi 4 &
	
	Thread 2 (Thread 0x7ffff74fb700 (LWP 70895)):
	
	Thread 1 (Thread 0x7ffff7fcc740 (LWP 70891)):
	Cannot execute this command while the selected thread is running.
	(gdb) PASS: gdb.btrace/non-stop.exp: reverse-step: all: thread apply all reverse-stepi 4: prompt
	0x0000000000400671      28        for (; i < 10; ++i) global += i; /* loop */
	PASS: gdb.btrace/non-stop.exp: reverse-step: all: thread apply all reverse-stepi 4: thread 0
	FAIL: gdb.btrace/non-stop.exp: reverse-step: all: thread apply all reverse-stepi 4: thread 1 (timeout)

A failing run might take a bit longer, but that should be it.

I changed the test, removed the "Cannot execute ..." check, and pushed the
series into users/mmetzger/btrace-non-stop.

Regards,
Markus.

Intel Deutschland GmbH
Registered Address: Am Campeon 10-12, 85579 Neubiberg, Germany
Tel: +49 89 99 8853-0, www.intel.de
Managing Directors: Christin Eisenschmid, Prof. Dr. Hermann Eul
Chairperson of the Supervisory Board: Tiffany Doon Silva
Registered Office: Munich
Commercial Register: Amtsgericht Muenchen HRB 186928


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