You've already forked linux-packaging-mono
Imported Upstream version 5.16.0.100
Former-commit-id: 38faa55fb9669e35e7d8448b15c25dc447f25767
This commit is contained in:
parent
0a9828183b
commit
7d7f676260
@ -9,6 +9,19 @@ using Mono.Collections.Generic;
|
||||
|
||||
namespace Mono
|
||||
{
|
||||
// Should be (string File, int Line) but need to bump monodroid_tools to 4.7
|
||||
readonly struct Location
|
||||
{
|
||||
public readonly string File;
|
||||
public readonly int Line;
|
||||
|
||||
public Location (string file, int line)
|
||||
{
|
||||
File = file;
|
||||
Line = line;
|
||||
}
|
||||
}
|
||||
|
||||
public class SymbolManager
|
||||
{
|
||||
string msymDir;
|
||||
@ -19,20 +32,25 @@ namespace Mono
|
||||
this.logger = logger;
|
||||
}
|
||||
|
||||
internal bool TryResolveLocation (StackFrameData sfData)
|
||||
internal bool TryResolveLocation (StackFrameData sfData, out Location location)
|
||||
{
|
||||
if (sfData.Mvid == null)
|
||||
if (sfData.Mvid == null) {
|
||||
location = default;
|
||||
return false;
|
||||
}
|
||||
|
||||
var assemblyLocProvider = GetOrCreateAssemblyLocationProvider (sfData.Mvid);
|
||||
if (assemblyLocProvider == null)
|
||||
if (assemblyLocProvider == null) {
|
||||
location = default;
|
||||
return false;
|
||||
}
|
||||
|
||||
SeqPointInfo seqPointInfo = null;
|
||||
if (!sfData.IsILOffset && sfData.Aotid != null)
|
||||
seqPointInfo = GetOrCreateSeqPointInfo (sfData.Aotid);
|
||||
|
||||
return assemblyLocProvider.TryResolveLocation (sfData, seqPointInfo);
|
||||
|
||||
return assemblyLocProvider.TryResolveLocation (sfData, seqPointInfo, out location);
|
||||
}
|
||||
|
||||
Dictionary<string, AssemblyLocationProvider> assemblies = new Dictionary<string, AssemblyLocationProvider> ();
|
||||
|
Reference in New Issue
Block a user