diff options
author | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-03-22 16:11:47 +0100 |
---|---|---|
committer | Philippe Mathieu-Daudé <philmd@linaro.org> | 2024-04-26 15:31:37 +0200 |
commit | 94326e4f217991102770667f684156bdbef599e6 (patch) | |
tree | 9264c9337448149aa917abf94ed55c3cb06ba9df /include | |
parent | fe7667343c81bffc5f87e591589c691faa84286a (diff) | |
download | qemu-94326e4f217991102770667f684156bdbef599e6.zip qemu-94326e4f217991102770667f684156bdbef599e6.tar.gz qemu-94326e4f217991102770667f684156bdbef599e6.tar.bz2 |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/gdbstub/helpers.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/include/gdbstub/helpers.h b/include/gdbstub/helpers.h index 6b97610..6277a85 100644 --- a/include/gdbstub/helpers.h +++ b/include/gdbstub/helpers.h @@ -12,7 +12,10 @@ #ifndef _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" /* @@ -96,8 +99,4 @@ static inline uint8_t *gdb_get_reg_ptr(GByteArray *buf, int len) #define ldtul_p(addr) ldl_p(addr) #endif -#else -#error "gdbstub helpers should only be included by target specific code" -#endif - #endif /* _GDBSTUB_HELPERS_H_ */ |