Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
gdb-stub.h File Reference
#include <asm/exceptions.h>

Go to the source code of this file.

Data Structures

struct  gdb_regs
 

Macros

#define GDB_REGID_PC   9
 
#define GDB_REGID_FP   7
 
#define GDB_REGID_SP   8
 
#define NUMREGS   64
 
#define GDB_FR_D0   (0 * 4)
 
#define GDB_FR_D1   (1 * 4)
 
#define GDB_FR_D2   (2 * 4)
 
#define GDB_FR_D3   (3 * 4)
 
#define GDB_FR_A0   (4 * 4)
 
#define GDB_FR_A1   (5 * 4)
 
#define GDB_FR_A2   (6 * 4)
 
#define GDB_FR_A3   (7 * 4)
 
#define GDB_FR_SP   (8 * 4)
 
#define GDB_FR_PC   (9 * 4)
 
#define GDB_FR_MDR   (10 * 4)
 
#define GDB_FR_EPSW   (11 * 4)
 
#define GDB_FR_LIR   (12 * 4)
 
#define GDB_FR_LAR   (13 * 4)
 
#define GDB_FR_MDRQ   (14 * 4)
 
#define GDB_FR_E0   (15 * 4)
 
#define GDB_FR_E1   (16 * 4)
 
#define GDB_FR_E2   (17 * 4)
 
#define GDB_FR_E3   (18 * 4)
 
#define GDB_FR_E4   (19 * 4)
 
#define GDB_FR_E5   (20 * 4)
 
#define GDB_FR_E6   (21 * 4)
 
#define GDB_FR_E7   (22 * 4)
 
#define GDB_FR_SSP   (23 * 4)
 
#define GDB_FR_MSP   (24 * 4)
 
#define GDB_FR_USP   (25 * 4)
 
#define GDB_FR_MCRH   (26 * 4)
 
#define GDB_FR_MCRL   (27 * 4)
 
#define GDB_FR_MCVF   (28 * 4)
 
#define GDB_FR_FPCR   (29 * 4)
 
#define GDB_FR_DUMMY0   (30 * 4)
 
#define GDB_FR_DUMMY1   (31 * 4)
 
#define GDB_FR_FS0   (32 * 4)
 
#define GDB_FR_SIZE   (NUMREGS * 4)
 
#define gdbstub_purge_cache()   do {} while (0)
 
#define gdbstub_entry(FMT,...)   no_printk(FMT, ##__VA_ARGS__)
 
#define gdbstub_proto(FMT,...)   no_printk(FMT, ##__VA_ARGS__)
 
#define gdbstub_io(FMT,...)   no_printk(FMT, ##__VA_ARGS__)
 
#define gdbstub_bkpt(FMT,...)   no_printk(FMT, ##__VA_ARGS__)
 

Functions

void show_registers_only (struct pt_regs *regs)
 
asmlinkage void gdbstub_init (void)
 
asmlinkage void gdbstub_exit (int status)
 
asmlinkage void gdbstub_io_init (void)
 
asmlinkage void gdbstub_io_set_baud (unsigned baud)
 
asmlinkage int gdbstub_io_rx_char (unsigned char *_ch, int nonblock)
 
asmlinkage void gdbstub_io_tx_char (unsigned char ch)
 
asmlinkage void gdbstub_io_tx_flush (void)
 
asmlinkage void gdbstub_io_rx_handler (void)
 
asmlinkage void gdbstub_rx_irq (struct pt_regs *, enum exception_code)
 
asmlinkage int gdbstub_intercept (struct pt_regs *, enum exception_code)
 
asmlinkage void gdbstub_exception (struct pt_regs *, enum exception_code)
 
asmlinkage void __gdbstub_bug_trap (void)
 
asmlinkage void __gdbstub_pause (void)
 
asmlinkage int gdbstub_read_byte (const u8 *, u8 *)
 
asmlinkage int gdbstub_read_word (const u8 *, u8 *)
 
asmlinkage int gdbstub_read_dword (const u8 *, u8 *)
 
asmlinkage int gdbstub_write_byte (u32, u8 *)
 
asmlinkage int gdbstub_write_word (u32, u8 *)
 
asmlinkage int gdbstub_write_dword (u32, u8 *)
 
asmlinkage void gdbstub_read_byte_guard (void)
 
asmlinkage void gdbstub_read_byte_cont (void)
 
asmlinkage void gdbstub_read_word_guard (void)
 
asmlinkage void gdbstub_read_word_cont (void)
 
asmlinkage void gdbstub_read_dword_guard (void)
 
asmlinkage void gdbstub_read_dword_cont (void)
 
asmlinkage void gdbstub_write_byte_guard (void)
 
asmlinkage void gdbstub_write_byte_cont (void)
 
asmlinkage void gdbstub_write_word_guard (void)
 
asmlinkage void gdbstub_write_word_cont (void)
 
asmlinkage void gdbstub_write_dword_guard (void)
 
asmlinkage void gdbstub_write_dword_cont (void)
 

Variables

u8 gdbstub_rx_buffer [PAGE_SIZE]
 
u32 gdbstub_rx_inp
 
u32 gdbstub_rx_outp
 
u8 gdbstub_rx_overflow
 
u8 gdbstub_busy
 
u8 gdbstub_rx_unget
 

Macro Definition Documentation

#define GDB_FR_A0   (4 * 4)

Definition at line 34 of file gdb-stub.h.

#define GDB_FR_A1   (5 * 4)

Definition at line 35 of file gdb-stub.h.

#define GDB_FR_A2   (6 * 4)

Definition at line 36 of file gdb-stub.h.

#define GDB_FR_A3   (7 * 4)

Definition at line 37 of file gdb-stub.h.

#define GDB_FR_D0   (0 * 4)

Definition at line 30 of file gdb-stub.h.

#define GDB_FR_D1   (1 * 4)

Definition at line 31 of file gdb-stub.h.

#define GDB_FR_D2   (2 * 4)

Definition at line 32 of file gdb-stub.h.

#define GDB_FR_D3   (3 * 4)

Definition at line 33 of file gdb-stub.h.

#define GDB_FR_DUMMY0   (30 * 4)

Definition at line 64 of file gdb-stub.h.

#define GDB_FR_DUMMY1   (31 * 4)

Definition at line 65 of file gdb-stub.h.

#define GDB_FR_E0   (15 * 4)

Definition at line 47 of file gdb-stub.h.

#define GDB_FR_E1   (16 * 4)

Definition at line 48 of file gdb-stub.h.

#define GDB_FR_E2   (17 * 4)

Definition at line 49 of file gdb-stub.h.

#define GDB_FR_E3   (18 * 4)

Definition at line 50 of file gdb-stub.h.

#define GDB_FR_E4   (19 * 4)

Definition at line 51 of file gdb-stub.h.

#define GDB_FR_E5   (20 * 4)

Definition at line 52 of file gdb-stub.h.

#define GDB_FR_E6   (21 * 4)

Definition at line 53 of file gdb-stub.h.

#define GDB_FR_E7   (22 * 4)

Definition at line 54 of file gdb-stub.h.

#define GDB_FR_EPSW   (11 * 4)

Definition at line 42 of file gdb-stub.h.

#define GDB_FR_FPCR   (29 * 4)

Definition at line 63 of file gdb-stub.h.

#define GDB_FR_FS0   (32 * 4)

Definition at line 67 of file gdb-stub.h.

#define GDB_FR_LAR   (13 * 4)

Definition at line 44 of file gdb-stub.h.

#define GDB_FR_LIR   (12 * 4)

Definition at line 43 of file gdb-stub.h.

#define GDB_FR_MCRH   (26 * 4)

Definition at line 59 of file gdb-stub.h.

#define GDB_FR_MCRL   (27 * 4)

Definition at line 60 of file gdb-stub.h.

#define GDB_FR_MCVF   (28 * 4)

Definition at line 61 of file gdb-stub.h.

#define GDB_FR_MDR   (10 * 4)

Definition at line 41 of file gdb-stub.h.

#define GDB_FR_MDRQ   (14 * 4)

Definition at line 45 of file gdb-stub.h.

#define GDB_FR_MSP   (24 * 4)

Definition at line 57 of file gdb-stub.h.

#define GDB_FR_PC   (9 * 4)

Definition at line 40 of file gdb-stub.h.

#define GDB_FR_SIZE   (NUMREGS * 4)

Definition at line 69 of file gdb-stub.h.

#define GDB_FR_SP   (8 * 4)

Definition at line 39 of file gdb-stub.h.

#define GDB_FR_SSP   (23 * 4)

Definition at line 56 of file gdb-stub.h.

#define GDB_FR_USP   (25 * 4)

Definition at line 58 of file gdb-stub.h.

#define GDB_REGID_FP   7

Definition at line 22 of file gdb-stub.h.

#define GDB_REGID_PC   9

Definition at line 21 of file gdb-stub.h.

#define GDB_REGID_SP   8

Definition at line 23 of file gdb-stub.h.

#define gdbstub_bkpt (   FMT,
  ... 
)    no_printk(FMT, ##__VA_ARGS__)
#define gdbstub_entry (   FMT,
  ... 
)    no_printk(FMT, ##__VA_ARGS__)
#define gdbstub_io (   FMT,
  ... 
)    no_printk(FMT, ##__VA_ARGS__)
#define gdbstub_proto (   FMT,
  ... 
)    no_printk(FMT, ##__VA_ARGS__)
#define gdbstub_purge_cache (   void)    do {} while (0)

Definition at line 116 of file gdb-stub.h.

#define NUMREGS   64

Definition at line 28 of file gdb-stub.h.

Function Documentation

asmlinkage void __gdbstub_bug_trap ( void  )
asmlinkage void __gdbstub_pause ( void  )
asmlinkage void gdbstub_exception ( struct pt_regs ,
enum  exception_code 
)

Definition at line 1749 of file gdb-stub.c.

asmlinkage void gdbstub_exit ( int  status)

gdbstub_exit - Send an exit message to GDB : The exit code to report.

Definition at line 2093 of file gdb-stub.c.

asmlinkage void gdbstub_init ( void  )

Definition at line 2027 of file gdb-stub.c.

asmlinkage int gdbstub_intercept ( struct pt_regs ,
enum  exception_code 
)
asmlinkage void gdbstub_io_init ( void  )

Definition at line 54 of file gdb-io.c.

asmlinkage int gdbstub_io_rx_char ( unsigned char _ch,
int  nonblock 
)

Definition at line 99 of file gdb-io-serial.c.

asmlinkage void gdbstub_io_rx_handler ( void  )
asmlinkage void gdbstub_io_set_baud ( unsigned  baud)

Definition at line 82 of file gdb-io-serial.c.

asmlinkage void gdbstub_io_tx_char ( unsigned char  ch)

Definition at line 150 of file gdb-io-serial.c.

asmlinkage void gdbstub_io_tx_flush ( void  )

Definition at line 169 of file gdb-io-serial.c.

asmlinkage int gdbstub_read_byte ( const u8 ,
u8  
)
asmlinkage void gdbstub_read_byte_cont ( void  )
asmlinkage void gdbstub_read_byte_guard ( void  )
asmlinkage int gdbstub_read_dword ( const u8 ,
u8  
)
asmlinkage void gdbstub_read_dword_cont ( void  )
asmlinkage void gdbstub_read_dword_guard ( void  )
asmlinkage int gdbstub_read_word ( const u8 ,
u8  
)
asmlinkage void gdbstub_read_word_cont ( void  )
asmlinkage void gdbstub_read_word_guard ( void  )
asmlinkage void gdbstub_rx_irq ( struct pt_regs ,
enum  exception_code 
)

Definition at line 1906 of file gdb-stub.c.

asmlinkage int gdbstub_write_byte ( u32  ,
u8  
)
asmlinkage void gdbstub_write_byte_cont ( void  )
asmlinkage void gdbstub_write_byte_guard ( void  )
asmlinkage int gdbstub_write_dword ( u32  ,
u8  
)
asmlinkage void gdbstub_write_dword_cont ( void  )
asmlinkage void gdbstub_write_dword_guard ( void  )
asmlinkage int gdbstub_write_word ( u32  ,
u8  
)
asmlinkage void gdbstub_write_word_cont ( void  )
asmlinkage void gdbstub_write_word_guard ( void  )
void show_registers_only ( struct pt_regs regs)

Definition at line 310 of file traps.c.

Variable Documentation

u8 gdbstub_busy

Definition at line 156 of file gdb-stub.c.

u8 gdbstub_rx_buffer[PAGE_SIZE]
u32 gdbstub_rx_inp

Definition at line 173 of file gdb-stub.c.

u32 gdbstub_rx_outp

Definition at line 174 of file gdb-stub.c.

u8 gdbstub_rx_overflow

Definition at line 175 of file gdb-stub.c.

u8 gdbstub_rx_unget

Definition at line 176 of file gdb-stub.c.