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: [RFA] Report the main thread.


> > I just want threads other than the main thread to be reported, as
> > used to be the case.  
[...]
> > That way I can create a threads buffer and display the thread 
> > number when there is more than one thread.  
> 
> Cannot you just suppress display of thread list if there's just one
> thread reported, on UI side?

I think it is important to be consistent between interpreters.
If we have the annotation for MI, we should have it in the annotate
mode as well.

There has been a discussion earlier about the merits and drawbacks
of adding the main "thread" to the list of threads when debugging
an application that doesn't use threads.  We only considered the
perspective of the user, but there is indeed the case of front-ends.
Assuming that the decision still stands, I think it is reasonable
to ask the front-ends to check that there is more than one thread
before going into "thread" mode.  I understand that this is making
things a little more complicated, but it shouldn't be that hard.

On the other hand, if there is a way to detect that the new "thread"
is from an unthreaded program, we could decide to not emit the
notification. But I would like things to be consistent - it should
be the same for both CLI, MI and annotations.

-- 
Joel


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