From a8ea4e55ef21a9c785e1d8866dca9eba5f31295a Mon Sep 17 00:00:00 2001 From: chaoticgd <43898262+chaoticgd@users.noreply.github.com> Date: Sun, 24 Aug 2025 13:05:38 +0100 Subject: [PATCH] Debugger: Fix Automatically Select Symbols To Clear checkbox --- pcsx2/DebugTools/SymbolImporter.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/pcsx2/DebugTools/SymbolImporter.cpp b/pcsx2/DebugTools/SymbolImporter.cpp index 9892b59c39..e054954c4c 100644 --- a/pcsx2/DebugTools/SymbolImporter.cpp +++ b/pcsx2/DebugTools/SymbolImporter.cpp @@ -311,9 +311,10 @@ void SymbolImporter::ClearExistingSymbols(ccc::SymbolDatabase& database, const P { bool should_destroy = ShouldClearSymbolsFromSourceByDefault(source.name()); - for (const DebugSymbolSource& source_config : options.SymbolSources) - if (source_config.Name == source.name()) - should_destroy = source_config.ClearDuringAnalysis; + if (!options.AutomaticallySelectSymbolsToClear) + for (const DebugSymbolSource& source_config : options.SymbolSources) + if (source_config.Name == source.name()) + should_destroy = source_config.ClearDuringAnalysis; if (should_destroy) sources_to_destroy.emplace_back(source.handle()); @@ -326,9 +327,9 @@ void SymbolImporter::ClearExistingSymbols(ccc::SymbolDatabase& database, const P bool SymbolImporter::ShouldClearSymbolsFromSourceByDefault(const std::string& source_name) { return source_name.find("Symbol Table") != std::string::npos || - source_name == "ELF Section Headers" || - source_name == "Function Scanner" || - source_name == "Nocash Symbols"; + source_name == "ELF Section Headers" || + source_name == "Function Scanner" || + source_name == "Nocash Symbols"; } void SymbolImporter::ImportSymbols(