kgdb.c (9d62f20d0861ef87460d073dc189c851715b46ae) | kgdb.c (54841ab50c20d6fa6c9cc3eb826989da3a22d934) |
---|---|
1#include <common.h> 2#include <command.h> 3#include <kgdb.h> 4#include <asm/signal.h> 5#include <asm/processor.h> 6 7#define PC_REGNUM 64 8#define SP_REGNUM 1 --- 299 unchanged lines hidden (view full) --- 308} 309 310/* This function will generate a breakpoint exception. It is used at the 311 beginning of a program to sync up with a debugger and can be used 312 otherwise as a quick means to stop program execution and "break" into 313 the debugger. */ 314 315void | 1#include <common.h> 2#include <command.h> 3#include <kgdb.h> 4#include <asm/signal.h> 5#include <asm/processor.h> 6 7#define PC_REGNUM 64 8#define SP_REGNUM 1 --- 299 unchanged lines hidden (view full) --- 308} 309 310/* This function will generate a breakpoint exception. It is used at the 311 beginning of a program to sync up with a debugger and can be used 312 otherwise as a quick means to stop program execution and "break" into 313 the debugger. */ 314 315void |
316kgdb_breakpoint(int argc, char *argv[]) | 316kgdb_breakpoint(int argc, char * const argv[]) |
317{ 318 asm(" .globl breakinst\n\ 319 breakinst: .long 0x7d821008\n\ 320 "); 321} | 317{ 318 asm(" .globl breakinst\n\ 319 breakinst: .long 0x7d821008\n\ 320 "); 321} |