This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] New annotation for threads
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Nick Roberts <nickrob at snap dot net dot nz>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 1 May 2008 16:37:03 -0700
- Subject: Re: [PATCH] New annotation for threads
- References: <18440.29531.916381.569346@kahikatea.snap.net.nz> <20080429023735.GD841@adacore.com> <18454.43094.168458.742737@kahikatea.snap.net.nz> <20080501181758.GD3801@adacore.com> <18458.21177.959458.278174@kahikatea.snap.net.nz>
> > 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