[PATCH-for-10.1] gdbstub/helpers: Remove ldtul_p() macro definitions

Philippe Mathieu-Daudé posted 1 patch 6 days, 16 hours ago
include/gdbstub/helpers.h | 2 --
1 file changed, 2 deletions(-)
[PATCH-for-10.1] gdbstub/helpers: Remove ldtul_p() macro definitions
Posted by Philippe Mathieu-Daudé 6 days, 16 hours ago
There are no more use of ldtul_p() in the code base,
remove the definitions.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
Based-on:
- https://lore.kernel.org/qemu-devel/20250325154058.92735-6-philmd@linaro.org/ (mips)
- https://lore.kernel.org/qemu-devel/20250325154528.93845-1-philmd@linaro.org/ (x86)
- https://lore.kernel.org/qemu-devel/20250325154913.95283-1-philmd@linaro.org/ (riscv)
---
 include/gdbstub/helpers.h | 2 --
 1 file changed, 2 deletions(-)

diff --git a/include/gdbstub/helpers.h b/include/gdbstub/helpers.h
index 6f7cc48adcb..3d4a13b919c 100644
--- a/include/gdbstub/helpers.h
+++ b/include/gdbstub/helpers.h
@@ -94,12 +94,10 @@ static inline uint8_t *gdb_get_reg_ptr(GByteArray *buf, int len)
 
 #if TARGET_LONG_BITS == 64
 #define gdb_get_regl(buf, val) gdb_get_reg64(buf, val)
-#define ldtul_p(addr) ldq_p(addr)
 #define ldtul_le_p(addr) ldq_le_p(addr)
 #define ldtul_be_p(addr) ldq_be_p(addr)
 #else
 #define gdb_get_regl(buf, val) gdb_get_reg32(buf, val)
-#define ldtul_p(addr) ldl_p(addr)
 #define ldtul_le_p(addr) ldl_le_p(addr)
 #define ldtul_be_p(addr) ldl_be_p(addr)
 #endif
-- 
2.47.1


Re: [PATCH-for-10.1] gdbstub/helpers: Remove ldtul_p() macro definitions
Posted by Alex Bennée 5 days, 20 hours ago
Philippe Mathieu-Daudé <philmd@linaro.org> writes:

> There are no more use of ldtul_p() in the code base,
> remove the definitions.
>
> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>

Queued to gdbstub/next, thanks.
<snip>

-- 
Alex Bennée
Virtualisation Tech Lead @ Linaro