dr_defines.h File Reference

Basic defines and type definitions. More...

#include <windows.h>
#include <winbase.h>

Data Structures

struct  opnd_t
struct  instr_t
union  _dr_xmm_t
struct  _dr_mcontext_t
struct  dr_time_t

Defines

#define MAXIMUM_PATH   260
#define INVALID_FILE   INVALID_HANDLE_VALUE
#define STDOUT   (dr_get_stdout_file())
#define STDERR   (dr_get_stderr_file())
#define STDIN   (dr_get_stdin_file())
#define INVALID_FILE   -1
#define STDOUT   (our_stdout == INVALID_FILE ? stdout->_fileno : our_stdout)
#define STDERR   (our_stderr == INVALID_FILE ? stderr->_fileno : our_stderr)
#define STDIN   (our_stdin == INVALID_FILE ? stdin->_fileno : our_stdin)

Typedefs

typedef size_t app_rva_t
typedef uint client_id_t
typedef union _dr_xmm_t dr_xmm_t
typedef struct _dr_mcontext_t dr_mcontext_t

Variables

file_t our_stdout
file_t our_stderr
file_t our_stdin


Detailed Description

Basic defines and type definitions.


Define Documentation

#define INVALID_FILE   -1

The sentinel value for an invalid file_t.

#define INVALID_FILE   INVALID_HANDLE_VALUE

The sentinel value for an invalid file_t.

#define MAXIMUM_PATH   260

Cross-platform maximum file path length.

#define STDERR   (our_stderr == INVALID_FILE ? stderr->_fileno : our_stderr)

The file_t value for standard error.

#define STDERR   (dr_get_stderr_file())

The file_t value for standard error.

#define STDIN   (our_stdin == INVALID_FILE ? stdin->_fileno : our_stdin)

The file_t value for standard input.

The file_t value for standard error.

#define STDIN   (dr_get_stdin_file())

The file_t value for standard input.

The file_t value for standard error.

#define STDOUT   (our_stdout == INVALID_FILE ? stdout->_fileno : our_stdout)

The file_t value for standard output.

#define STDOUT   (dr_get_stdout_file())

The file_t value for standard output.


Typedef Documentation

typedef size_t app_rva_t

Application offset from module base. PE32+ modules are limited to 2GB, but not ELF x64 med/large code model.

typedef uint client_id_t

ID used to uniquely identify a client. This value is set at client registration and passed to the client in dr_init().

typedef struct _dr_mcontext_t dr_mcontext_t

Machine context structure.

typedef union _dr_xmm_t dr_xmm_t

128-bit XMM register.


Variable Documentation

file_t our_stderr

Allow use of stderr after the application closes it.

file_t our_stdin

Allow use of stdin after the application closes it.

file_t our_stdout

Allow use of stdout after the application closes it.


  DynamoRIO API version 2.0.0 --- Thu Apr 22 00:18:17 2010