X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fax.h;h=9fcb40ae8b0eeec92608e0bb2377919ea0e460a1;hb=9f1b45b0da430a7a7abf9e54acbe6f2ef9d3a763;hp=32887efeeb4b073253e6b0eba2e7ac4b5ebb131b;hpb=741d92cf3986c9327b90b1153c9f6e2a6a2cc13f;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/ax.h b/gdb/ax.h index 32887efeeb..9fcb40ae8b 100644 --- a/gdb/ax.h +++ b/gdb/ax.h @@ -1,5 +1,5 @@ /* Definitions for expressions designed to be executed on the agent - Copyright (C) 1998-2013 Free Software Foundation, Inc. + Copyright (C) 1998-2014 Free Software Foundation, Inc. This file is part of GDB. @@ -143,6 +143,23 @@ struct agent_expr */ int reg_mask_len; unsigned char *reg_mask; + + /* For the data tracing facility, we need to insert `trace' bytecodes + before each data fetch; this records all the memory that the + expression touches in the course of evaluation, so that memory will + be available when the user later tries to evaluate the expression + in GDB. + + Setting the flag 'tracing' to non-zero enables the code that + emits the trace bytecodes at the appropriate points. */ + + unsigned int tracing : 1; + + /* This indicates that pointers to chars should get an added + tracenz bytecode to record nonzero bytes, up to a length that + is the value of trace_string. */ + + int trace_string; }; /* Pointer to an agent_expr structure. */