gdbstub: Simplify #ifdef'ry in helpers.h
Slightly simplify by checking NEED_CPU_H definition in header. Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20240322161439.6448-2-philmd@linaro.org>
This commit is contained in:
parent
fe7667343c
commit
94326e4f21
@ -12,7 +12,10 @@
|
|||||||
#ifndef _GDBSTUB_HELPERS_H_
|
#ifndef _GDBSTUB_HELPERS_H_
|
||||||
#define _GDBSTUB_HELPERS_H_
|
#define _GDBSTUB_HELPERS_H_
|
||||||
|
|
||||||
#ifdef COMPILING_PER_TARGET
|
#ifndef COMPILING_PER_TARGET
|
||||||
|
#error "gdbstub helpers should only be included by target specific code"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "cpu.h"
|
#include "cpu.h"
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -96,8 +99,4 @@ static inline uint8_t *gdb_get_reg_ptr(GByteArray *buf, int len)
|
|||||||
#define ldtul_p(addr) ldl_p(addr)
|
#define ldtul_p(addr) ldl_p(addr)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#else
|
|
||||||
#error "gdbstub helpers should only be included by target specific code"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* _GDBSTUB_HELPERS_H_ */
|
#endif /* _GDBSTUB_HELPERS_H_ */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user