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.


 > > Currently the new_thread observer only declares struct thread_info
 > 
 > What do you mean? The observer does not declare struct thread_info, it
 > declares a parameter having type 'struct thread_info'.
 
struct thread_info is declared in observer.h (through observer.sh) which
is included in annotate.c

 > > and not it's 
 > > members so I can't identify the thread number in annotate.c
 > 
 > struct thread_info is defined in gdbthread.h. What prevents you from
 > including that header?

I think the idea is not to expose the internals to other parts of the code.

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