From 69771cbd8574f260475ab8ac2dc45310b72c6b43 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 25 Oct 2023 20:02:15 +0200 Subject: [PATCH] kernel: Show symbols correctly when at the beginning of a function --- kernel/src/Symbols.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/src/Symbols.cpp b/kernel/src/Symbols.cpp index 94795063..e75b8bed 100644 --- a/kernel/src/Symbols.cpp +++ b/kernel/src/Symbols.cpp @@ -88,7 +88,7 @@ namespace Symbols for (isize i = (isize)g_symbols.size() - 1; i >= 0; i--) { - if (g_symbols[i].address < address) { return StringView { g_symbols[i].symbol }; } + if (g_symbols[i].address <= address) { return StringView { g_symbols[i].symbol }; } } return StringView {};