~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

Linux Cross Reference
Linux/include/asm-ppc/kgdb.h

Version: ~ [ 2.4.0 ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

  1 /* $Id: kgdb.h,v 1.2 1998/04/11 17:29:07 geert Exp $
  2  * kgdb.h: Defines and declarations for serial line source level
  3  *         remote debugging of the Linux kernel using gdb.
  4  *
  5  * PPC Mods (C) 1998 Michael Tesch (tesch@cs.wisc.edu)
  6  *
  7  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
  8  */
  9 #ifdef __KERNEL__
 10 #ifndef _PPC_KGDB_H
 11 #define _PPC_KGDB_H
 12 
 13 #ifndef __ASSEMBLY__
 14 /* To initialize the serial, first thing called */
 15 extern void zs_kgdb_hook(int tty_num);
 16 /* To init the kgdb engine. (called by serial hook)*/
 17 extern void set_debug_traps(void);
 18 
 19 /* To enter the debugger explicitly. */
 20 extern void breakpoint(void);
 21 
 22 /* For taking exceptions
 23  * these are defined in traps.c
 24  */
 25 extern void (*debugger)(struct pt_regs *regs);
 26 extern int (*debugger_bpt)(struct pt_regs *regs);
 27 extern int (*debugger_sstep)(struct pt_regs *regs);
 28 extern int (*debugger_iabr_match)(struct pt_regs *regs);
 29 extern int (*debugger_dabr_match)(struct pt_regs *regs);
 30 extern void (*debugger_fault_handler)(struct pt_regs *regs);
 31 
 32 /* What we bring to the party */
 33 int kgdb_bpt(struct pt_regs *regs);
 34 int kgdb_sstep(struct pt_regs *regs);
 35 void kgdb(struct pt_regs *regs);
 36 int kgdb_iabr_match(struct pt_regs *regs);
 37 int kgdb_dabr_match(struct pt_regs *regs);
 38 static void kgdb_fault_handler(struct pt_regs *regs);
 39 static void handle_exception (struct pt_regs *regs);
 40 
 41 /*
 42  * external low-level support routines (ie macserial.c)
 43  */
 44 extern void kgdb_interruptible(int); /* control interrupts from serial */
 45 extern void putDebugChar(char);   /* write a single character      */
 46 extern char getDebugChar(void);   /* read and return a single char */
 47 
 48 #endif /* !(__ASSEMBLY__) */
 49 #endif /* !(_PPC_KGDB_H) */
 50 #endif /* __KERNEL__ */
 51 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~ [ freetext search ] ~ [ file search ] ~

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.