Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
kgdb.c File Reference
#include <linux/slab.h>
#include <linux/ptrace.h>
#include <linux/kgdb.h>
#include <linux/uaccess.h>
#include <unit/leds.h>
#include <unit/serial.h>
#include <asm/debugger.h>
#include <asm/serial-regs.h>
#include "internal.h"

Go to the source code of this file.

Functions

void pt_regs_to_gdb_regs (unsigned long *gdb_regs, struct pt_regs *regs)
 
void sleeping_thread_to_gdb_regs (unsigned long *gdb_regs, struct task_struct *p)
 
void gdb_regs_to_pt_regs (unsigned long *gdb_regs, struct pt_regs *regs)
 
void arch_release_thread_info (struct thread_info *ti)
 
int kgdb_arch_handle_exception (int vector, int signo, int err_code, char *remcom_in_buffer, char *remcom_out_buffer, struct pt_regs *regs)
 
int debugger_intercept (enum exception_code excep, int signo, int si_code, struct pt_regs *regs)
 
int at_debugger_breakpoint (struct pt_regs *regs)
 
int kgdb_arch_init (void)
 
void kgdb_arch_exit (void)
 

Variables

u8kgdb_sstep_bp_addr [2]
 
u8 kgdb_sstep_bp [2]
 
struct kgdb_arch arch_kgdb_ops
 

Function Documentation

void arch_release_thread_info ( struct thread_info ti)

Definition at line 400 of file kgdb.c.

int at_debugger_breakpoint ( struct pt_regs regs)

Definition at line 470 of file kgdb.c.

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

Definition at line 449 of file kgdb.c.

void gdb_regs_to_pt_regs ( unsigned long gdb_regs,
struct pt_regs regs 
)

Definition at line 86 of file kgdb.c.

void kgdb_arch_exit ( void  )

Definition at line 486 of file kgdb.c.

int kgdb_arch_handle_exception ( int  vector,
int  signo,
int  err_code,
char remcom_in_buffer,
char remcom_out_buffer,
struct pt_regs regs 
)

Definition at line 416 of file kgdb.c.

int kgdb_arch_init ( void  )

Definition at line 478 of file kgdb.c.

void pt_regs_to_gdb_regs ( unsigned long gdb_regs,
struct pt_regs regs 
)

Definition at line 32 of file kgdb.c.

void sleeping_thread_to_gdb_regs ( unsigned long gdb_regs,
struct task_struct p 
)

Definition at line 74 of file kgdb.c.

Variable Documentation

struct kgdb_arch arch_kgdb_ops
Initial value:
= {
.gdb_bpt_instr = { 0xff },
.flags = KGDB_HW_BREAKPOINT,
}

Definition at line 124 of file kgdb.c.

u8 kgdb_sstep_bp[2]

Definition at line 27 of file kgdb.c.

u8* kgdb_sstep_bp_addr[2]

Definition at line 26 of file kgdb.c.