mirror of
https://github.com/fadden/6502bench.git
synced 2025-04-05 01:30:10 +00:00
Tweak debug feature
Make project symbols optional for "apply external symbols".
This commit is contained in:
parent
6e84d2a94e
commit
c2470c4ec4
@ -4474,9 +4474,19 @@ namespace SourceGen {
|
||||
public void Debug_ApplyExternalSymbols() {
|
||||
ChangeSet cs = new ChangeSet(1);
|
||||
|
||||
MessageBoxResult result =
|
||||
MessageBox.Show("Apply project symbols (in addition to platform symbols)?",
|
||||
"Apply project symbols?", MessageBoxButton.YesNoCancel, MessageBoxImage.Question);
|
||||
bool doProject;
|
||||
if (result == MessageBoxResult.Cancel) {
|
||||
return;
|
||||
} else {
|
||||
doProject = (result == MessageBoxResult.Yes);
|
||||
}
|
||||
|
||||
foreach (Symbol sym in mProject.SymbolTable) {
|
||||
if (sym.SymbolSource != Symbol.Source.Platform &&
|
||||
sym.SymbolSource != Symbol.Source.Project) {
|
||||
(!doProject || sym.SymbolSource != Symbol.Source.Project)) {
|
||||
continue;
|
||||
}
|
||||
DefSymbol defSym = (DefSymbol)sym;
|
||||
|
Loading…
x
Reference in New Issue
Block a user