@ -37,7 +37,7 @@
# include <command.h>
# include <command.h>
# include <asm/processor.h>
# include <asm/processor.h>
# if (CONFIG_COMMANDS & CFG_CMD_KGDB)
# if (CONFIG_COMMANDS & CFG_CMD_KGDB) || defined(CONFIG_CMD_KGDB)
int ( * debugger_exception_handler ) ( struct pt_regs * ) = 0 ;
int ( * debugger_exception_handler ) ( struct pt_regs * ) = 0 ;
# endif
# endif
@ -118,7 +118,7 @@ void MachineCheckException (struct pt_regs *regs)
regs - > nip = fixup ;
regs - > nip = fixup ;
return ;
return ;
}
}
# if (CONFIG_COMMANDS & CFG_CMD_KGDB)
# if (CONFIG_COMMANDS & CFG_CMD_KGDB) || defined(CONFIG_CMD_KGDB)
if ( debugger_exception_handler
if ( debugger_exception_handler
& & ( * debugger_exception_handler ) ( regs ) )
& & ( * debugger_exception_handler ) ( regs ) )
return ;
return ;
@ -152,7 +152,7 @@ void MachineCheckException (struct pt_regs *regs)
void AlignmentException ( struct pt_regs * regs )
void AlignmentException ( struct pt_regs * regs )
{
{
# if (CONFIG_COMMANDS & CFG_CMD_KGDB)
# if (CONFIG_COMMANDS & CFG_CMD_KGDB) || defined(CONFIG_CMD_KGDB)
if ( debugger_exception_handler
if ( debugger_exception_handler
& & ( * debugger_exception_handler ) ( regs ) )
& & ( * debugger_exception_handler ) ( regs ) )
return ;
return ;
@ -164,7 +164,7 @@ void AlignmentException (struct pt_regs *regs)
void ProgramCheckException ( struct pt_regs * regs )
void ProgramCheckException ( struct pt_regs * regs )
{
{
# if (CONFIG_COMMANDS & CFG_CMD_KGDB)
# if (CONFIG_COMMANDS & CFG_CMD_KGDB) || defined(CONFIG_CMD_KGDB)
if ( debugger_exception_handler
if ( debugger_exception_handler
& & ( * debugger_exception_handler ) ( regs ) )
& & ( * debugger_exception_handler ) ( regs ) )
return ;
return ;
@ -176,7 +176,7 @@ void ProgramCheckException (struct pt_regs *regs)
void SoftEmuException ( struct pt_regs * regs )
void SoftEmuException ( struct pt_regs * regs )
{
{
# if (CONFIG_COMMANDS & CFG_CMD_KGDB)
# if (CONFIG_COMMANDS & CFG_CMD_KGDB) || defined(CONFIG_CMD_KGDB)
if ( debugger_exception_handler
if ( debugger_exception_handler
& & ( * debugger_exception_handler ) ( regs ) )
& & ( * debugger_exception_handler ) ( regs ) )
return ;
return ;
@ -189,7 +189,7 @@ void SoftEmuException (struct pt_regs *regs)
void UnknownException ( struct pt_regs * regs )
void UnknownException ( struct pt_regs * regs )
{
{
# if (CONFIG_COMMANDS & CFG_CMD_KGDB)
# if (CONFIG_COMMANDS & CFG_CMD_KGDB) || defined(CONFIG_CMD_KGDB)
if ( debugger_exception_handler
if ( debugger_exception_handler
& & ( * debugger_exception_handler ) ( regs ) )
& & ( * debugger_exception_handler ) ( regs ) )
return ;
return ;
@ -199,7 +199,7 @@ void UnknownException (struct pt_regs *regs)
_exception ( 0 , regs ) ;
_exception ( 0 , regs ) ;
}
}
# if (CONFIG_COMMANDS & CFG_CMD_BEDBUG)
# if (CONFIG_COMMANDS & CFG_CMD_BEDBUG) || defined(CONFIG_CMD_BEDBUG)
extern void do_bedbug_breakpoint ( struct pt_regs * ) ;
extern void do_bedbug_breakpoint ( struct pt_regs * ) ;
# endif
# endif
@ -208,7 +208,7 @@ void DebugException (struct pt_regs *regs)
printf ( " Debugger trap at @ %lx \n " , regs - > nip ) ;
printf ( " Debugger trap at @ %lx \n " , regs - > nip ) ;
show_regs ( regs ) ;
show_regs ( regs ) ;
# if (CONFIG_COMMANDS & CFG_CMD_BEDBUG)
# if (CONFIG_COMMANDS & CFG_CMD_BEDBUG) || defined(CONFIG_CMD_BEDBUG)
do_bedbug_breakpoint ( regs ) ;
do_bedbug_breakpoint ( regs ) ;
# endif
# endif
}
}