Next: , Previous: , Up: The GDB Agent Expression Mechanism   [Contents][Index]


F.3 Using Agent Expressions

Agent expressions can be used in several different ways by ROCGDB, and the debugger can generate different bytecode sequences as appropriate.

One possibility is to do expression evaluation on the target rather than the host, such as for the conditional of a conditional tracepoint. In such a case, ROCGDB compiles the source expression into a bytecode sequence that simply gets values from registers or memory, does arithmetic, and returns a result.

Another way to use agent expressions is for tracepoint data collection. ROCGDB generates a different bytecode sequence for collection; in addition to bytecodes that do the calculation, ROCGDB adds trace bytecodes to save the pieces of memory that were used.


Next: Varying Target Capabilities, Previous: Bytecode Descriptions, Up: The GDB Agent Expression Mechanism   [Contents][Index]