mirror of
https://github.com/libretro/Mesen.git
synced 2024-11-23 17:19:39 +00:00
Debugger: Shorter symbol names when duplicates are found when importing DBG files
This commit is contained in:
parent
ea9c32437c
commit
50103ff94a
@ -145,9 +145,12 @@ namespace Mesen.GUI.Debugger
|
||||
if(_segments.ContainsKey(symbol.SegmentID)) {
|
||||
SegmentInfo segment = _segments[symbol.SegmentID];
|
||||
|
||||
int count = 2;
|
||||
string orgSymbolName = symbol.Name;
|
||||
while(!_usedLabels.Add(symbol.Name)) {
|
||||
//Ensure labels are unique
|
||||
symbol.Name += "_";
|
||||
symbol.Name = orgSymbolName + "_" + count.ToString();
|
||||
count++;
|
||||
}
|
||||
|
||||
if(segment.IsRam) {
|
||||
|
Loading…
Reference in New Issue
Block a user