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: [RFC] Observer mode


>>>>> "Stan" == Stan Shebs <stan@codesourcery.com> writes:

Stan> We have been calling this "observer mode", and the customer's GDB
Stan> is actually configured to launch in this mode, to reduce the
Stan> chance of accidental stopping - the debugger user has to ask
Stan> specifically to change it to normal debugging mode.

It seems like a reasonable feature to me.

I can't really comment on the implementation approach.

Stan>   #include "gdbcmd.h"
Stan>   #include "value.h"
Stan>   #include "target.h"
Stan> + extern int may_insert_tracepoints;
Stan> + extern int may_insert_fast_tracepoints;
Stan>   #include "language.h"
Stan>   #include "gdb_string.h"
Stan>   #include "inferior.h"

The placement of these declarations seems rather odd.
I seem to keep running across this sort of thing for tracepoints.
I think a tracepoint-implementation-specific header file would be
cleaner.

Tom


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