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.


 > > Yes, you're right.  I didn't notice that the observer in
 > > add_thread_with_info was removed at the same time this one was added.
 > > 
 > > I just want threads other than the main thread to be reported, as used to
 > > be the case.  
 > 
 > Assuming that makes sense for annotations, I think your observer is in
 > position to decide which threads to report, and which not?

Currently the new_thread observer only declares struct thread_info and not it's
members so I can't identify the thread number in annotate.c

 > > 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?

Yes, I could count the new-thread annotations and and only trigger things when
there is more than one thread.  It's simpler if I don't have to and I'm just
baffled why I need to go through these hoops for a small stop gap change that
no-one else is interested in using.  The only requirement I can see on such a
patch is that it doesn't affect anybody else's use of Gdb, and I think my
original patch filled that requirement.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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