-
-
Notifications
You must be signed in to change notification settings - Fork 230
feat: debug images for Portable PDB #2050
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
51 commits
Select commit
Hold shift + click to select a range
577cfb3
feat: Support Symbolication for Portable PDB.
Swatinem 31a1631
refactor: renames & cleanup
vaind 6ad2a87
chore: code readability
vaind ed49941
refactor: extract DebugStackTrace from StackTraceFactory
vaind 2226fb7
fix: stack trace capture on asp.net
vaind e7f789a
fix: debug images on multi-exception events
vaind 464cd2d
test: fix some tests
vaind 4d6e5f7
test: update verifier settings
vaind e954b61
test: update api aproval snapshots
vaind ea91f58
test: script to update verifier expected files
vaind b9b3926
test: update verifier snapshots
vaind 504c335
test: more fixes
vaind aaf9f4c
chore: remove unused MonoStackTraceFactory
vaind bde81e5
ujj8
vaind 9b53d71
test: update verifier results for mono
vaind 4a434a5
test: update verifier results
vaind fdd9a3d
test: fix verifier
vaind 87f4982
test: update verifier
vaind e34cab9
feat: android assembly reader (wip)
vaind 73845e9
test: update AndroidAssemblyReader tests
vaind 73e8c02
feat: assembly decompression
vaind 97661a0
fix: non-store assembly reader - cannot open APK for writing on device
vaind a69b110
feat: Android AssemblyStore support
vaind 2a66f26
chore: update test dependencies
vaind f9005b0
chore: rebase fixup
vaind 353d2fb
chore: rebase fixup
vaind 3bbf1f7
test: fix AssemblyReader tests on Android
vaind 96ef5b3
test: update verifier
vaind 89db86f
refactor: DebugStackTrace and add more tests
vaind 5963847
fix: AndroidAssemblyReader ReadIndex
vaind 637c191
fix: DebugStackTrace Android AssemblyReader init locking
vaind 0501aa6
chore: minor review changes
vaind 002dfc1
Merge branch 'main' into feat/debug-image-info
mattjohnsonpint bba77b3
Misc cleanup
mattjohnsonpint 089de06
Seal SentryStackTraceFactory
mattjohnsonpint bd2d634
More cleanup / refactoring
mattjohnsonpint 86efc0a
Merge branch 'main' into feat/debug-image-info
mattjohnsonpint ebbcea1
Move assembly reader and tests to fix dependency
mattjohnsonpint 6fb380f
.
mattjohnsonpint e41b7ec
.
mattjohnsonpint 491bf7b
.
mattjohnsonpint 625456f
Update CHANGELOG.md
mattjohnsonpint 6b56e4c
.
mattjohnsonpint 821429d
.
mattjohnsonpint 337109c
Use lazy instead of manual lock
mattjohnsonpint 8fa03e9
Use a dedicated test app for the android assembly reader tests
mattjohnsonpint 934dc87
.
mattjohnsonpint 82d99bf
.
mattjohnsonpint 9ce6c7e
Merge branch 'main' into feat/debug-image-info
mattjohnsonpint 6e42fde
.
mattjohnsonpint 2c532be
.
mattjohnsonpint File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 |
|---|---|---|
|
|
@@ -22,3 +22,4 @@ docs/docfx.zip | |
| *.received.* | ||
| mono_crash.*.json | ||
| test_output/ | ||
| test/**/*.apk | ||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,23 @@ | ||
| # Similar to `dotnet verify accept` but doesn't create new runtime-specific ".verified" files if a common one exists. | ||
| param([switch] $DryRun) | ||
|
|
||
| Set-StrictMode -Version Latest | ||
| $ErrorActionPreference = "Stop" | ||
|
|
||
| $receivedFiles = Get-ChildItem . -Recurse -File -Include "*.received.txt" | ||
|
|
||
| $receivedFiles | ForEach-Object { | ||
| $nameWithRuntime = ($_.BaseName.Split(".") | Select-Object -SkipLast 1) -join "." | ||
| $nameWithoutRuntime = ($_.BaseName.Split(".") | Select-Object -SkipLast 2) -join "." | ||
| $ext = ".verified.txt" | ||
|
|
||
| $targetFile = (Test-Path "$($_.Directory)/$nameWithoutRuntime$ext") ` | ||
| ? "$($_.Directory)/$nameWithoutRuntime$ext" ` | ||
| : "$($_.Directory)/$nameWithRuntime$ext" | ||
|
|
||
| Write-Host "Updating $($targetFile.Replace((Get-Item .).FullName, ''))" | ||
| if (-not ($DryRun)) | ||
| { | ||
| Move-Item $_ $targetFile -Force | ||
| } | ||
| } | ||
This file contains hidden or 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,52 @@ | ||
| param([switch] $IfNotExist) | ||
|
|
||
| Set-StrictMode -Version Latest | ||
| $ErrorActionPreference = "Stop" | ||
|
|
||
| $repoRoot = "$PSScriptRoot/.." | ||
| $apkDir = "$repoRoot/test/Sentry.Android.Tests/TestAPKs" | ||
|
|
||
| New-Item -ItemType Directory -Force -Path $apkDir | Out-Null | ||
| $apkDir = Resolve-Path $apkDir | ||
|
|
||
| function BuildAndroidSample([bool] $UseAssemblyStore, [bool] $UseAssemblyCompression) | ||
| { | ||
| $testAppDir = "$repoRoot/test/AndroidTestApp" | ||
| $outputApk = "$apkDir/android-Store=$UseAssemblyStore-Compressed=$UseAssemblyCompression.apk" | ||
|
|
||
| if ($IfNotExist -and (Test-Path $outputApk)) | ||
| { | ||
| Write-Host "$outputApk already exists, skipping build" | ||
| return | ||
| } | ||
|
|
||
| Push-Location -Verbose $testAppDir | ||
| try | ||
| { | ||
| # Need to do a clean build otherwise some DLLs would end up being compressed even if it's disabled on this run. | ||
| dotnet build --configuration Release --no-incremental ` | ||
| --property:AndroidUseAssemblyStore=$UseAssemblyStore ` | ||
| --property:AndroidEnableAssemblyCompression=$UseAssemblyCompression ` | ||
| | Out-Host | ||
| if ($LASTEXITCODE -ne 0) | ||
| { | ||
| exit $LASTEXITCODE | ||
| } | ||
| } | ||
| finally | ||
| { | ||
| Pop-Location | ||
| } | ||
|
|
||
| Move-Item "$testAppDir/bin/Release/*/*-signed.apk" $outputApk | ||
| } | ||
|
|
||
| if (!$IfNotExist) | ||
| { | ||
| Remove-Item "$apkDir/*.apk" | ||
| } | ||
|
|
||
| BuildAndroidSample $true $true | ||
| BuildAndroidSample $true $false | ||
| BuildAndroidSample $false $true | ||
| BuildAndroidSample $false $false |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.