Changing PdbReaderProvider to accept create EmbeddedPDB from stream. #648

Merged
thaystg merged 2 commits from thays_read_embedded_pdb into master 2020-02-12 16:50:07 -06:00
thaystg commented 2020-02-12 12:56:43 -06:00 (Migrated from github.com)

Changing GetSymbolReader from PdbReaderProvider, when we create a Module from stream we don't have the filename, and it's not necessary to create an EmbeddedPortablePdbReaderProvider, so I've moved the check to after the creation of EmbeddedPortablePdbReaderProvider.

Changing GetSymbolReader from PdbReaderProvider, when we create a Module from stream we don't have the filename, and it's not necessary to create an EmbeddedPortablePdbReaderProvider, so I've moved the check to after the creation of EmbeddedPortablePdbReaderProvider.
jbevain (Migrated from github.com) requested changes 2020-02-12 15:30:48 -06:00
jbevain (Migrated from github.com) left a comment

Thank you for your contribution! Please just address the comment and this will be good to go.

Thank you for your contribution! Please just address the comment and this will be good to go.
@ -368,6 +369,33 @@ namespace Mono.Cecil.Tests {
}, symbolReaderProvider: typeof (EmbeddedPortablePdbReaderProvider), symbolWriterProvider: typeof (EmbeddedPortablePdbWriterProvider));
jbevain (Migrated from github.com) commented 2020-02-12 15:29:58 -06:00

I think we can make this simpler and not create infrastructure for reading modules as in memory. You can undo all the changes in BaseTestFixture, and in this test you can use:

var bytes = File.ReadAllBytes (GetAssemblyResourcePath ("EmbeddedCompressedPdbTarget.exe"))

Create the module from that and run the test.

I think we can make this simpler and not create infrastructure for reading modules as in memory. You can undo all the changes in BaseTestFixture, and in this test you can use: `var bytes = File.ReadAllBytes (GetAssemblyResourcePath ("EmbeddedCompressedPdbTarget.exe"))` Create the module from that and run the test.
thaystg (Migrated from github.com) reviewed 2020-02-12 16:46:22 -06:00
@ -368,6 +369,33 @@ namespace Mono.Cecil.Tests {
}, symbolReaderProvider: typeof (EmbeddedPortablePdbReaderProvider), symbolWriterProvider: typeof (EmbeddedPortablePdbWriterProvider));
thaystg (Migrated from github.com) commented 2020-02-12 16:46:21 -06:00

Done!

Done!
jbevain (Migrated from github.com) approved these changes 2020-02-12 16:49:12 -06:00
jbevain commented 2020-02-12 16:50:18 -06:00 (Migrated from github.com)

Thank you!

Thank you!
Sign in to join this conversation.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-jbevain/cecil!648
No description provided.