From fb5bc404b6729275410bb59e953fc3c8b35d9d7d Mon Sep 17 00:00:00 2001 From: Anton Kochkov Date: Sat, 23 Mar 2024 12:58:25 +0800 Subject: [PATCH] debug: i386 register profile lacks `gs_base` (#4380) --- librz/debug/p/native/linux/linux_debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/librz/debug/p/native/linux/linux_debug.c b/librz/debug/p/native/linux/linux_debug.c index df4a9b4cb6..afd6c57187 100644 --- a/librz/debug/p/native/linux/linux_debug.c +++ b/librz/debug/p/native/linux/linux_debug.c @@ -890,7 +890,7 @@ RZ_API ut64 get_linux_tls_val(RZ_NONNULL RzDebug *dbg, int tid) { rz_debug_reg_sync(dbg, RZ_REG_TYPE_GPR, false); } -#if (__x86_64__ || __i386__) +#if __x86_64__ RzRegItem *ri = rz_reg_get(dbg->reg, "fs", RZ_REG_TYPE_ANY); RZ_DEBUG_REG_T regs; // Fetch gs_base from a ptrace call