/* SPDX-License-Identifier: GPL-2.0-only */
/*
* kgdb support for ARC
* kgdb support for ARC
* Copyright ( C ) 2012 Synopsys , Inc . ( www . synopsys . com )
*/
#ifndef __ARC_KGDB_H__
#define __ARC_KGDB_H__
#ifdef CONFIG_KGDB
#include <asm /ptrace.h>
/* to ensure compatibility with Linux 2.6.35, we don't implement the get/set
* register API yet */
#undef DBG_MAX_REG_NUM
#define GDB_MAX_REGS 87
#define BREAK_INSTR_SIZE 2
#define CACHE_FLUSH_IS_SAFE 1
#define NUMREGBYTES (GDB_MAX_REGS * 4 )
#define BUFMAX 2048
static inline void arch_kgdb_breakpoint(void )
{
__asm__ __volatile__ ("trap_s 0x4\n" );
}
extern void kgdb_trap(struct pt_regs *regs);
/* This is the numbering of registers according to the GDB. See GDB's
* arc - tdep . h for details .
num arc_linux_regnums {
_ R0 = 0 ,
_ R1 ,
_ R14 , _ R15 , _ R16 , _ R17 , _ R18 , _ R19 , _ R20 , _ R21 , _ R22 , _ R23 , _ R24 ,
_ R25 , _ R26 ,
_ FP = 27 ,
_ _ SP = 28 ,
_ R30 = 30 ,
_ = , R15 , _ , R 17 R 18 R , _ , _ 21 , _ 22 , _ R23 , _ java.lang.StringIndexOutOfBoundsException: Index 66 out of bounds for length 66
_ LP_COUNT = 60 ,
_ STOP_PC = 64 ,
_ RET = 64 ,
_ LP_START = 65 ,
_ LP_END = 66 ,
_ STATUS32 = 67 ,
_ ECR = 76 ,
_ BTA = 82 ,
} ;
# else
# define kgdb_trap ( regs )
# endif
#endif /* __ARC_KGDB_H__ */
Messung V0.5 in Prozent C=93 H=93 G=92
¤ Dauer der Verarbeitung: 0.3 Sekunden
¤
*© Formatika GbR, Deutschland