Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations
kgdb.h File Reference
#include <linux/ptrace.h>

Go to the source code of this file.

Macros

#define BUFMAX   2048
 
#define NUMREGBYTES   BFIN_NUM_REGS*4
 
#define BREAK_INSTR_SIZE   2
 
#define CACHE_FLUSH_IS_SAFE   1
 
#define GDB_ADJUSTS_BREAK_OFFSET
 
#define GDB_SKIP_HW_WATCH_TEST
 
#define HW_INST_WATCHPOINT_NUM   6
 
#define HW_WATCHPOINT_NUM   8
 
#define TYPE_INST_WATCHPOINT   0
 
#define TYPE_DATA_WATCHPOINT   1
 
#define WPPWR   0x1
 
#define WPIREN01   0x2
 
#define WPIRINV01   0x4
 
#define WPIAEN0   0x8
 
#define WPIAEN1   0x10
 
#define WPICNTEN0   0x20
 
#define WPICNTEN1   0x40
 
#define EMUSW0   0x80
 
#define EMUSW1   0x100
 
#define WPIREN23   0x200
 
#define WPIRINV23   0x400
 
#define WPIAEN2   0x800
 
#define WPIAEN3   0x1000
 
#define WPICNTEN2   0x2000
 
#define WPICNTEN3   0x4000
 
#define EMUSW2   0x8000
 
#define EMUSW3   0x10000
 
#define WPIREN45   0x20000
 
#define WPIRINV45   0x40000
 
#define WPIAEN4   0x80000
 
#define WPIAEN5   0x100000
 
#define WPICNTEN4   0x200000
 
#define WPICNTEN5   0x400000
 
#define EMUSW4   0x800000
 
#define EMUSW5   0x1000000
 
#define WPAND   0x2000000
 
#define WPDREN01   0x1
 
#define WPDRINV01   0x2
 
#define WPDAEN0   0x4
 
#define WPDAEN1   0x8
 
#define WPDCNTEN0   0x10
 
#define WPDCNTEN1   0x20
 
#define WPDSRC0   0xc0
 
#define WPDACC0_OFFSET   8
 
#define WPDSRC1   0xc00
 
#define WPDACC1_OFFSET   12
 
#define STATIA0   0x1
 
#define STATIA1   0x2
 
#define STATIA2   0x4
 
#define STATIA3   0x8
 
#define STATIA4   0x10
 
#define STATIA5   0x20
 
#define STATDA0   0x40
 
#define STATDA1   0x80
 

Enumerations

enum  regnames {
  BFIN_R0 = 0, BFIN_R1, BFIN_R2, BFIN_R3,
  BFIN_R4, BFIN_R5, BFIN_R6, BFIN_R7,
  BFIN_P0, BFIN_P1, BFIN_P2, BFIN_P3,
  BFIN_P4, BFIN_P5, BFIN_SP, BFIN_FP,
  BFIN_I0, BFIN_I1, BFIN_I2, BFIN_I3,
  BFIN_M0, BFIN_M1, BFIN_M2, BFIN_M3,
  BFIN_B0, BFIN_B1, BFIN_B2, BFIN_B3,
  BFIN_L0, BFIN_L1, BFIN_L2, BFIN_L3,
  BFIN_A0_DOT_X, BFIN_A0_DOT_W, BFIN_A1_DOT_X, BFIN_A1_DOT_W,
  BFIN_ASTAT, BFIN_RETS, BFIN_LC0, BFIN_LT0,
  BFIN_LB0, BFIN_LC1, BFIN_LT1, BFIN_LB1,
  BFIN_CYCLES, BFIN_CYCLES2, BFIN_USP, BFIN_SEQSTAT,
  BFIN_SYSCFG, BFIN_RETI, BFIN_RETX, BFIN_RETN,
  BFIN_RETE, BFIN_PC, BFIN_CC, BFIN_EXTRA1,
  BFIN_EXTRA2, BFIN_EXTRA3, BFIN_FDPIC_EXEC, BFIN_FDPIC_INTERP,
  BFIN_IPEND, BFIN_NUM_REGS, GDB_FR_D0 = 0, GDB_FR_D1 = 1,
  GDB_FR_D2 = 2, GDB_FR_D3 = 3, GDB_FR_A0 = 4, GDB_FR_A1 = 5,
  GDB_FR_A2 = 6, GDB_FR_A3 = 7, GDB_FR_SP = 8, GDB_FR_PC = 9,
  GDB_FR_MDR = 10, GDB_FR_EPSW = 11, GDB_FR_LIR = 12, GDB_FR_LAR = 13,
  GDB_FR_MDRQ = 14, GDB_FR_E0 = 15, GDB_FR_E1 = 16, GDB_FR_E2 = 17,
  GDB_FR_E3 = 18, GDB_FR_E4 = 19, GDB_FR_E5 = 20, GDB_FR_E6 = 21,
  GDB_FR_E7 = 22, GDB_FR_SSP = 23, GDB_FR_MSP = 24, GDB_FR_USP = 25,
  GDB_FR_MCRH = 26, GDB_FR_MCRL = 27, GDB_FR_MCVF = 28, GDB_FR_FPCR = 29,
  GDB_FR_DUMMY0 = 30, GDB_FR_DUMMY1 = 31, GDB_FR_FS0 = 32, GDB_FR_SIZE = 64,
  GDB_R0, GDB_R1, GDB_R2, GDB_R3,
  GDB_R4, GDB_R5, GDB_R6, GDB_R7,
  GDB_R8, GDB_R9, GDB_R10, GDB_R11,
  GDB_R12, GDB_R13, GDB_R14, GDB_R15,
  GDB_PC, GDB_PR, GDB_SR, GDB_GBR,
  GDB_MACH, GDB_MACL, GDB_VBR, GDB_G0,
  GDB_G1, GDB_G2, GDB_G3, GDB_G4,
  GDB_G5, GDB_G6, GDB_G7, GDB_O0,
  GDB_O1, GDB_O2, GDB_O3, GDB_O4,
  GDB_O5, GDB_SP, GDB_O7, GDB_L0,
  GDB_L1, GDB_L2, GDB_L3, GDB_L4,
  GDB_L5, GDB_L6, GDB_L7, GDB_I0,
  GDB_I1, GDB_I2, GDB_I3, GDB_I4,
  GDB_I5, GDB_FP, GDB_I7, GDB_F0,
  GDB_F31 = GDB_F0 + 31, GDB_F32 = GDB_F0 + 32, GDB_F62 = GDB_F32 + 15, GDB_PC,
  GDB_NPC, GDB_STATE, GDB_FSR, GDB_FPRS,
  GDB_Y, GDB_AX, GDB_BX, GDB_CX,
  GDB_DX, GDB_SI, GDB_DI, GDB_BP,
  GDB_SP, GDB_R8, GDB_R9, GDB_R10,
  GDB_R11, GDB_R12, GDB_R13, GDB_R14,
  GDB_R15, GDB_PC, GDB_PS, GDB_CS,
  GDB_SS, GDB_DS, GDB_ES, GDB_FS,
  GDB_GS
}
 

Macro Definition Documentation

#define BREAK_INSTR_SIZE   2

Definition at line 105 of file kgdb.h.

#define BUFMAX   2048

Definition at line 18 of file kgdb.h.

#define CACHE_FLUSH_IS_SAFE   1

Definition at line 109 of file kgdb.h.

#define EMUSW0   0x80

Definition at line 126 of file kgdb.h.

#define EMUSW1   0x100

Definition at line 127 of file kgdb.h.

#define EMUSW2   0x8000

Definition at line 134 of file kgdb.h.

#define EMUSW3   0x10000

Definition at line 135 of file kgdb.h.

#define EMUSW4   0x800000

Definition at line 142 of file kgdb.h.

#define EMUSW5   0x1000000

Definition at line 143 of file kgdb.h.

#define GDB_ADJUSTS_BREAK_OFFSET

Definition at line 111 of file kgdb.h.

#define GDB_SKIP_HW_WATCH_TEST

Definition at line 112 of file kgdb.h.

#define HW_INST_WATCHPOINT_NUM   6

Definition at line 113 of file kgdb.h.

#define HW_WATCHPOINT_NUM   8

Definition at line 114 of file kgdb.h.

#define NUMREGBYTES   BFIN_NUM_REGS*4

Definition at line 99 of file kgdb.h.

#define STATDA0   0x40

Definition at line 166 of file kgdb.h.

#define STATDA1   0x80

Definition at line 167 of file kgdb.h.

#define STATIA0   0x1

Definition at line 160 of file kgdb.h.

#define STATIA1   0x2

Definition at line 161 of file kgdb.h.

#define STATIA2   0x4

Definition at line 162 of file kgdb.h.

#define STATIA3   0x8

Definition at line 163 of file kgdb.h.

#define STATIA4   0x10

Definition at line 164 of file kgdb.h.

#define STATIA5   0x20

Definition at line 165 of file kgdb.h.

#define TYPE_DATA_WATCHPOINT   1

Definition at line 116 of file kgdb.h.

#define TYPE_INST_WATCHPOINT   0

Definition at line 115 of file kgdb.h.

#define WPAND   0x2000000

Definition at line 144 of file kgdb.h.

#define WPDACC0_OFFSET   8

Definition at line 155 of file kgdb.h.

#define WPDACC1_OFFSET   12

Definition at line 157 of file kgdb.h.

#define WPDAEN0   0x4

Definition at line 149 of file kgdb.h.

#define WPDAEN1   0x8

Definition at line 150 of file kgdb.h.

#define WPDCNTEN0   0x10

Definition at line 151 of file kgdb.h.

#define WPDCNTEN1   0x20

Definition at line 152 of file kgdb.h.

#define WPDREN01   0x1

Definition at line 147 of file kgdb.h.

#define WPDRINV01   0x2

Definition at line 148 of file kgdb.h.

#define WPDSRC0   0xc0

Definition at line 154 of file kgdb.h.

#define WPDSRC1   0xc00

Definition at line 156 of file kgdb.h.

#define WPIAEN0   0x8

Definition at line 122 of file kgdb.h.

#define WPIAEN1   0x10

Definition at line 123 of file kgdb.h.

#define WPIAEN2   0x800

Definition at line 130 of file kgdb.h.

#define WPIAEN3   0x1000

Definition at line 131 of file kgdb.h.

#define WPIAEN4   0x80000

Definition at line 138 of file kgdb.h.

#define WPIAEN5   0x100000

Definition at line 139 of file kgdb.h.

#define WPICNTEN0   0x20

Definition at line 124 of file kgdb.h.

#define WPICNTEN1   0x40

Definition at line 125 of file kgdb.h.

#define WPICNTEN2   0x2000

Definition at line 132 of file kgdb.h.

#define WPICNTEN3   0x4000

Definition at line 133 of file kgdb.h.

#define WPICNTEN4   0x200000

Definition at line 140 of file kgdb.h.

#define WPICNTEN5   0x400000

Definition at line 141 of file kgdb.h.

#define WPIREN01   0x2

Definition at line 120 of file kgdb.h.

#define WPIREN23   0x200

Definition at line 128 of file kgdb.h.

#define WPIREN45   0x20000

Definition at line 136 of file kgdb.h.

#define WPIRINV01   0x4

Definition at line 121 of file kgdb.h.

#define WPIRINV23   0x400

Definition at line 129 of file kgdb.h.

#define WPIRINV45   0x40000

Definition at line 137 of file kgdb.h.

#define WPPWR   0x1

Definition at line 119 of file kgdb.h.

Enumeration Type Documentation

enum regnames
Enumerator:
BFIN_R0 
BFIN_R1 
BFIN_R2 
BFIN_R3 
BFIN_R4 
BFIN_R5 
BFIN_R6 
BFIN_R7 
BFIN_P0 
BFIN_P1 
BFIN_P2 
BFIN_P3 
BFIN_P4 
BFIN_P5 
BFIN_SP 
BFIN_FP 
BFIN_I0 
BFIN_I1 
BFIN_I2 
BFIN_I3 
BFIN_M0 
BFIN_M1 
BFIN_M2 
BFIN_M3 
BFIN_B0 
BFIN_B1 
BFIN_B2 
BFIN_B3 
BFIN_L0 
BFIN_L1 
BFIN_L2 
BFIN_L3 
BFIN_A0_DOT_X 
BFIN_A0_DOT_W 
BFIN_A1_DOT_X 
BFIN_A1_DOT_W 
BFIN_ASTAT 
BFIN_RETS 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