next up previous contents index
Next: 10.17.11 gdb_breakpoint: macro to Up: 10.17 Remote Kernel Debugging Previous: 10.17.9 gdb_signal: vector to

10.17.10 gdb_set_trace_flag: enable or disable single-stepping in a state frame

   

SYNOPSIS

#include <oskit/gdb.h>

void gdb_set_trace_flag(int trace_enable, [in/out] struct gdb_state *state);

DESCRIPTION

This architecture-specific function merely modifies the specified processor state structure to enable or disable single-stepping according to the trace_enable parameter. On architectures that have some kind of trace flag, this function simply sets or clears that flag as appropriate. On other architectures, this behavior is achieved through other means. This function is called by machine-independent remote debugging stubs such as gdb_serial_signal before resuming execution of the subject program, according to whether the remote debugger requested that the program ``continue'' or ``step'' one instruction.

PARAMETERS

trace_enable
True if single-stepping should be enabled, or false otherwise.
state
The state frame to modify.



University of Utah Flux Research Group