mirror of
https://github.com/PCSX2/pcsx2.git
synced 2025-12-16 04:08:48 +00:00
Debugger: Fix Automatically Select Symbols To Clear checkbox
This commit is contained in:
parent
3195befab1
commit
a8ea4e55ef
@ -311,9 +311,10 @@ void SymbolImporter::ClearExistingSymbols(ccc::SymbolDatabase& database, const P
|
|||||||
{
|
{
|
||||||
bool should_destroy = ShouldClearSymbolsFromSourceByDefault(source.name());
|
bool should_destroy = ShouldClearSymbolsFromSourceByDefault(source.name());
|
||||||
|
|
||||||
for (const DebugSymbolSource& source_config : options.SymbolSources)
|
if (!options.AutomaticallySelectSymbolsToClear)
|
||||||
if (source_config.Name == source.name())
|
for (const DebugSymbolSource& source_config : options.SymbolSources)
|
||||||
should_destroy = source_config.ClearDuringAnalysis;
|
if (source_config.Name == source.name())
|
||||||
|
should_destroy = source_config.ClearDuringAnalysis;
|
||||||
|
|
||||||
if (should_destroy)
|
if (should_destroy)
|
||||||
sources_to_destroy.emplace_back(source.handle());
|
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)
|
bool SymbolImporter::ShouldClearSymbolsFromSourceByDefault(const std::string& source_name)
|
||||||
{
|
{
|
||||||
return source_name.find("Symbol Table") != std::string::npos ||
|
return source_name.find("Symbol Table") != std::string::npos ||
|
||||||
source_name == "ELF Section Headers" ||
|
source_name == "ELF Section Headers" ||
|
||||||
source_name == "Function Scanner" ||
|
source_name == "Function Scanner" ||
|
||||||
source_name == "Nocash Symbols";
|
source_name == "Nocash Symbols";
|
||||||
}
|
}
|
||||||
|
|
||||||
void SymbolImporter::ImportSymbols(
|
void SymbolImporter::ImportSymbols(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user