-
-
Notifications
You must be signed in to change notification settings - Fork 210
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Stefan Jandl <[email protected]>
- Loading branch information
1 parent
0873db3
commit 0d643ff
Showing
10 changed files
with
85 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
using Sentry.Extensibility; | ||
using Sentry.Internal.Extensions; | ||
using Sentry.Protocol; | ||
|
||
namespace Sentry.iOS; | ||
|
||
internal static class C | ||
{ | ||
internal static Dictionary<long, DebugImage> LoadDebugImages(IDiagnosticLogger? logger) | ||
{ | ||
logger?.LogDebug("Collecting a list of native debug images."); | ||
var result = new Dictionary<long, DebugImage>(); | ||
try | ||
{ | ||
var cList = SentryCocoaHybridSdk.DebugImages; | ||
logger?.LogDebug("There are {0} native debug images, parsing the information.", cList.Length); | ||
foreach (var cItem in cList) | ||
{ | ||
if (cItem.ImageAddress?.ParseHexAsLong() is { } imageAddress) | ||
{ | ||
result.Add(imageAddress, new DebugImage() | ||
{ | ||
CodeFile = cItem.CodeFile, | ||
ImageAddress = imageAddress, | ||
ImageSize = cItem.ImageSize?.LongValue, | ||
DebugId = cItem.DebugID, | ||
Type = cItem.Type, | ||
}); | ||
} | ||
} | ||
} | ||
catch (Exception e) | ||
{ | ||
logger?.LogWarning("Error loading the list of debug images", e); | ||
} | ||
return result; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters