Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
kgdb.c File Reference
#include <linux/string.h>
#include <linux/signal.h>
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/linkage.h>
#include <linux/reboot.h>
#include <asm/setup.h>
#include <asm/ptrace.h>
#include <asm/irq.h>
#include <hwregs/reg_map.h>
#include <hwregs/reg_rdwr.h>
#include <hwregs/intr_vect_defs.h>
#include <hwregs/ser_defs.h>

Go to the source code of this file.

Data Structures

struct  register_image
 
struct  bp_register_image
 

Macros

#define USEDVAR(name)   { if (name) { ; } }
 
#define USEDFUN(name)   { void (*pf)(void) = (void *)name; USEDVAR(pf) }
 
#define BUFMAX   512
 
#define RUNLENMAX   64
 
#define INTERNAL_STACK_SIZE   1024
 

Typedefs

typedef struct register_image registers
 
typedef struct bp_register_image support_registers
 

Enumerations

enum  register_name {
  R0, R1, R2, R3,
  R4, R5, R6, R7,
  R8, R9, R10, R11,
  R12, R13, SP, PC,
  P0, VR, P2, P3,
  P4, CCR, P6, MOF,
  P8, IBR, IRP, SRP,
  BAR, DCCR, BRP, USP,
  R0, R1, R2, R3,
  R4, R5, R6, R7,
  R8, R9, R10, R11,
  R12, R13, SP, ACR,
  BZ, VR, PID, SRS,
  WZ, EXS, EDA, MOF,
  DZ, EBP, ERP, SRP,
  NRP, CCS, USP, SPC,
  PC, S0, S1, S2,
  S3, S4, S5, S6,
  S7, S8, S9, S10,
  S11, S12, S13, S14,
  S15
}
 
enum  error_type {
  SUCCESS, E01, E02, E03,
  E04, E05, E06, E07,
  SUCCESS, E01, E02, E03,
  E04, E05, E06
}
 

Functions

void gdb_handle_exception (void)
 
void kgdb_handle_exception (void)
 
int getDebugChar (void)
 
void putDebugChar (int val)
 
void handle_exception (int sigval)
 
void putDebugString (const unsigned char *str, int len)
 
void breakpoint (void)
 
int insn_size (unsigned long pc)
 
void register_fixup (int sigval)
 
void kgdb_init (void)
 

Variables

registers reg
 
support_registers sreg
 
char internal_stack [INTERNAL_STACK_SIZE]
 

Macro Definition Documentation

#define BUFMAX   512

Definition at line 440 of file kgdb.c.

#define INTERNAL_STACK_SIZE   1024

Definition at line 470 of file kgdb.c.

#define RUNLENMAX   64

Definition at line 443 of file kgdb.c.

#define USEDFUN (   name)    { void (*pf)(void) = (void *)name; USEDVAR(pf) }

Definition at line 434 of file kgdb.c.

#define USEDVAR (   name)    { if (name) { ; } }

Definition at line 433 of file kgdb.c.

Typedef Documentation

Enumeration Type Documentation

enum error_type
Enumerator:
SUCCESS 
E01 
E02 
E03 
E04 
E05 
E06 
E07 
SUCCESS 
E01 
E02 
E03 
E04 
E05 
E06 

Definition at line 450 of file kgdb.c.

Enumerator:
R0 
R1 
R2 
R3 
R4 
R5 
R6 
R7 
R8 
R9 
R10 
R11 
R12 
R13 
SP 
PC 
P0 
VR 
P2 
P3 
P4 
CCR 
P6 
MOF 
P8 
IBR 
IRP 
SRP 
BAR 
DCCR 
BRP 
USP 
R0 
R1 
R2 
R3 
R4 
R5 
R6 
R7 
R8 
R9 
R10 
R11 
R12 
R13 
SP 
ACR 
BZ 
VR 
PID 
SRS 
WZ 
EXS 
EDA 
MOF 
DZ 
EBP 
ERP 
SRP 
NRP 
CCS 
USP 
SPC 
PC 
S0 
S1 
S2 
S3 
S4 
S5 
S6 
S7 
S8 
S9 
S10 
S11 
S12 
S13 
S14 
S15 

Definition at line 309 of file kgdb.c.

Function Documentation

void breakpoint ( void  )

Definition at line 1462 of file kgdb.c.

void gdb_handle_exception ( void  )
int getDebugChar ( void  )

Definition at line 341 of file debugport.c.

void handle_exception ( int  sigval)

Definition at line 1270 of file kgdb.c.

int insn_size ( unsigned long  pc)

Definition at line 1008 of file kgdb.c.

void kgdb_handle_exception ( void  )
void kgdb_init ( void  )

Definition at line 1538 of file kgdb.c.

void putDebugChar ( int  val)

Definition at line 358 of file debugport.c.

void putDebugString ( const unsigned char str,
int  len 
)
void register_fixup ( int  sigval)

Definition at line 1037 of file kgdb.c.

Variable Documentation

char internal_stack[INTERNAL_STACK_SIZE]

Definition at line 471 of file kgdb.c.

Definition at line 354 of file kgdb.c.

Definition at line 355 of file kgdb.c.