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] New annotation for threads


>  > All this can be done inside annotate.c.
> 
> Where in annotate.c?  It can't be in _initialize_annotate because that only
> gets called at startup and the annotation level can be changed with the
> "set annotate" command (which is also why deprecated_delete_breakpoint_hook
> and deprecated_modify_breakpoint_hook shouldn't be set there).

The printing of the annotation was already guarded by the annotation
level. So you can in fact attach the observer from your _initialize
procedure, no?

-- 
Joel


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