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.c File Reference
#include <linux/string.h>
#include <linux/kernel.h>
#include <linux/signal.h>
#include <linux/sched.h>
#include <linux/mm.h>
#include <linux/console.h>
#include <linux/init.h>
#include <linux/bug.h>
#include <asm/pgtable.h>
#include <asm/gdb-stub.h>
#include <asm/exceptions.h>
#include <asm/debugger.h>
#include <asm/serial-regs.h>
#include <asm/busctl-regs.h>
#include <unit/leds.h>
#include <unit/serial.h>

Go to the source code of this file.

Data Structures

struct  gdbstub_bkpt
struct  excep_to_sig_map


#define BUFMAX   2048


u8 gdbstub_rx_buffer[PAGE_SIZE__attribute__ ((aligned(PAGE_SIZE)))
int gdbstub_set_breakpoint (u8 *addr, int len)
int gdbstub_clear_breakpoint (u8 *addr, int len)
int at_debugger_breakpoint (struct pt_regs *regs)
asmlinkage int debugger_intercept (enum exception_code excep, int signo, int si_code, struct pt_regs *regs)
asmlinkage void gdbstub_exception (struct pt_regs *regs, enum exception_code excep)
void gdbstub_exit (int status)
asmlinkage void __init gdbstub_init (void)
asmlinkage void gdbstub_rx_irq (struct pt_regs *regs, enum exception_code excep)


u32 gdbstub_rx_inp
u32 gdbstub_rx_outp
u8 gdbstub_busy
u8 gdbstub_rx_overflow
u8 gdbstub_rx_unget

Macro Definition Documentation

#define BUFMAX   2048

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

Function Documentation

int at_debugger_breakpoint ( struct pt_regs regs)

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

asmlinkage int debugger_intercept ( enum exception_code  excep,
int  signo,
int  si_code,
struct pt_regs regs 

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

int gdbstub_clear_breakpoint ( u8 addr,
int  len 

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

asmlinkage void gdbstub_exception ( struct pt_regs regs,
enum exception_code  excep 

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

void gdbstub_exit ( int  status)

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

asmlinkage void __init gdbstub_init ( void  )

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

asmlinkage void gdbstub_rx_irq ( struct pt_regs regs,
enum exception_code  excep 

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

int gdbstub_set_breakpoint ( u8 addr,
int  len 

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

Variable Documentation

u8 gdbstub_busy

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

u32 gdbstub_rx_inp

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

u32 gdbstub_rx_outp

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

u8 gdbstub_rx_overflow

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

u8 gdbstub_rx_unget

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