Skip to content

Commit

Permalink
explain tracepoint extensions, drop InstallInTrace
Browse files Browse the repository at this point in the history
  • Loading branch information
cczetier committed Jan 8, 2025
1 parent 340b43f commit ce4acb4
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion src/stub/core_impl/base.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,22 @@ impl<T: Target, C: Connection> GdbStubImpl<T, C> {
}

if let Some(_ops) = target.support_tracepoints() {
res.write_str(";InstallInTrace+")?;
// There are a number of optional tracepoint extensions that
// gdbstub should eventually implement.
// * `StaticTracepoint` for static tracepoint support.
// * `EnableDisableTracepoints` for enabling/disabling tracepoints during a
// trace experiment.
// * `tracenz` for the tracenz agent bytecode operation.
// * The `Qbtrace:*` family for branch tracing.
// * `InstallInTrace` allows for gdbstub to deliver tracepoint configuration
// commands while the trace experiment is running instead of them only taking
// affect on the next `tstart` command.
//
// For now, gdbstub doesn't provide trait extensions for these
// options and so we don't report support. We do report support
// for one extension however:
// * `QTBuffer:size` for configuring the trace buffer size, since
// the target is allowed to implement it as a no-op.
res.write_str(";QTBuffer:size+")?;
}

Expand Down

0 comments on commit ce4acb4

Please sign in to comment.