95 Commits
Author SHA1 Message Date
Siegfried Pammer 2d90c457c8 Lift some artificial restrictions to PEFile in WholeProjectDecompiler and ReflectionDisassembler. 2024-03-28 20:42:11 +01:00
Siegfried Pammer ca78d4a14d Use MetadataFile instead of PEFile in TypeSystem. 2024-03-24 15:35:13 +01:00
Siegfried Pammer 3e9e7a3b55 Add intentation level to make it easier to see custom attributes belonging to interface implementations. 2024-03-16 18:26:26 +01:00
Siegfried Pammer 89d97b99a0 #3177: Print metadata token of custom attribute in IL output. 2024-03-16 18:21:32 +01:00
Lucas Trzesniewski 403098280a Use .interfaceimpl type syntax 2023-02-19 20:48:58 +01:00
tom-englertandSiegfried Pammer 3248657d2b Add filtering/sorting capabilities to ReflectionDisassembler (#2835)
Co-authored-by: Siegfried Pammer <[email protected]>
2022-11-20 20:35:43 +01:00
Siegfried Pammer 13da4c48d4 Fix #2632: Make sure that changing the setting "ExpandMemberDefinitions" has an effect when refreshing a decompiled view. 2022-04-18 19:50:47 +02:00
Siegfried Pammer 93dcba3426 * Rename Metadata.GenericContext to MetadataGenericContext to avoid conflicts with TypeSystem.GenericContext
* Change MetadataGenericContext to readonly struct
* Rearrange types in Dom.cs
2022-04-12 09:38:58 +02:00
Siegfried Pammer 900d0a4b93 Fix #1966: Add option to show raw offsets and instruction bytes in IL view. 2021-08-26 14:54:49 +02:00
Siegfried Pammer 899214c658 Fix escaping of strings in SecurityDeclaration output. 2021-02-04 20:14:34 +01:00
Siegfried Pammer f0012cbc1a #2198: Make ILSpy more resilient in case of obfuscated assemblies. 2020-10-25 12:55:33 +01:00
Siegfried Pammer f128c1c16b Fix #2130: Crash in mouseover of string literal token 2020-08-29 16:07:25 +02:00
dotnet format 0d9f871a4f #2128: Reformat the whole code base. 2020-08-28 01:05:38 +02:00
Siegfried Pammer 3436ac3246 Fix #2018: Improve tooltips in IL/IL with C#/R2R view to show full member signatures 2020-05-24 16:54:01 +02:00
Siegfried Pammer deaedd0914 Link metadata tokens in decompilation output to metadata tables. 2019-12-22 00:14:11 +01:00
Siegfried Pammer 270547cb46 Fix release build. 2019-11-24 01:04:15 +01:00
Daniel Grunwald 152aa2a21b IL Disassembler: show attributes on constraints
dotnet/coreclr#25488
2019-08-11 17:43:36 +02:00
Siegfried Pammer 8e7a197c8d FieldValueSizeDecoder: Use pointer size defined in decompiled module.
Use same prefixes for PE sections as ildasm.
2019-06-09 17:04:59 +02:00
Daniel Grunwald ef035e6e02 Use ".data cil" if data is in text section. 2019-06-09 15:11:11 +02:00
Daniel Grunwald f5317b853a Fix #661: Emit ".data" IL directives for fields with associated data 2019-06-09 14:17:06 +02:00
Daniel Grunwald 7f2b3a4506 Fix #1529: Handle exceptions on invalid metadata signatures 2019-06-08 21:59:24 +02:00
Siegfried Pammer 2a5ba0f665 Fix linking of local variables and parameters to their usages in the IL view. 2019-03-17 19:14:22 +01:00
Siegfried Pammer fbfcd6f72a Fix #628: Add option to display metadata token in 10-based or hex format. 2018-12-23 18:25:30 +01:00
Daniel Grunwald 72d755037b Fix #1283: handle invalid metadata when decoding constants 2018-12-21 16:45:56 +01:00
Siegfried Pammer 0545025705 Add back support for ".other" method references in disassembler, as it is now supported by SRM. 2018-12-08 10:08:05 +01:00
Siegfried Pammer e418bcc753 Fix default case of ReflectionDisassembler.WriteSimpleValue, bool values were printed incorrectly. 2018-10-14 18:07:54 +02:00
Siegfried Pammer b20d4df95b Fix #1231: System.BadImageFormatException: Invalid coded index 2018-07-23 11:55:39 +02:00
Siegfried Pammer 2a80757e0a Fix parameter output of disassembler. Closes #1214 2018-07-21 19:01:52 +02:00
Siegfried Pammer 58c2746e60 LiteralSearchStrategy: implement support for field constants. 2018-07-15 08:42:29 +02:00
Siegfried Pammer ce855885b1 Implement new declsec parser in ReflectionDisassembler + added unit tests. 2018-07-13 09:07:38 +02:00
Siegfried Pammer d3d7dda7e4 Rework WriteSecurityDeclarationArgument to make sure it produces output, that can be reassembled. 2018-07-12 14:17:50 +02:00
Siegfried Pammer 01e374fd4f Add EnumUnderlyingTypeResolveException and clean up exceptions in ReflectionDisassembler: use BadImageFormatException for any unexpected values. 2018-07-12 09:03:31 +02:00
Siegfried Pammer f40743994b Remove EventDefinition.DecodeSignature 2018-07-11 17:19:02 +02:00
Siegfried Pammer b5191c169b Implement TextOutputWithRollback to allow rolling back output of security declarations we could not parse due to missing enum types. 2018-07-11 15:48:55 +02:00
Siegfried Pammer 93aca8ef03 Add support for module references in ReflectionDisassembler. 2018-07-11 00:33:19 +02:00
Siegfried Pammer e548aa88c2 Disassembler: Fix output of class type names in security declarations. 2018-07-10 13:38:34 +02:00
Siegfried Pammer 5af952dc37 Print XML security declarations as blob like ildasm does. 2018-07-10 10:04:26 +02:00
Siegfried Pammer 4f8441e142 Introduce several new WriteReference overloads 2018-07-08 22:14:25 +02:00
Siegfried Pammer bcfb3742eb Clean up PEFile, move Pdb related types to DebugInfo namespace 2018-07-07 18:22:53 +02:00
Siegfried Pammer 9acc372a68 Use TypeSystem for ILSpy UI:
Most important tree nodes and search ported,
Currently only ILLanguage is active
2018-07-01 12:21:37 +02:00
Daniel Grunwald 385433aff4 Add MetadataMethod. 2018-06-24 22:55:09 +02:00
Daniel Grunwald 0f8c310de2 Started work on new resolved TS implementation that directly uses SRM.
This is a work-in-progress; ILSpy is not functional with this commit.
The old code path still exists but is broken because some classes were modified for the new system.
The new system is still highly incomplete (types only have fields, but no methods).
2018-06-24 19:47:14 +02:00
Daniel Grunwald 4e449de58d Show metadata tokens in disassembly. 2018-06-23 20:18:08 +02:00
Siegfried Pammer 458f448fae Avoid unnecessary allocations of MetadataReader and clean up Dom structs a bit. 2018-05-14 22:34:10 +02:00
Daniel Grunwald f290d81535 Fix ReflectionDisassembler so that we can re-generate the IL files for the PInvoke test. 2018-05-06 01:00:57 +02:00
Siegfried Pammer b500b24548 SRM WIP basic implementation of DecompilerTypeSystem 2018-03-18 20:02:37 +01:00
Siegfried Pammer 57cf98cf11 Merge branch 'master' of github.com:icsharpcode/ILSpy into srm
# Conflicts:
#	ICSharpCode.Decompiler/Disassembler/ReflectionDisassembler.cs
#	ICSharpCode.Decompiler/ICSharpCode.Decompiler.csproj
#	ICSharpCode.Decompiler/TypeSystem/CecilLoader.cs
#	ICSharpCode.Decompiler/TypeSystem/DecompilerTypeSystem.cs
#	ILSpy/Languages/CSharpLanguage.cs
#	ILSpy/Languages/Language.cs
#	ILSpy/LoadedAssembly.cs
#	ILSpy/SearchStrategies.cs
2018-03-17 22:29:11 +01:00
Daniel Grunwald f386d0b9d1 Filter out a bunch of non-determinism from the generated pretty test IL files. 2018-03-17 14:54:01 +01:00
Siegfried Pammer 53af650a9e Add support for .net 1.x XML security declarations 2018-02-18 16:21:03 -03:00
Siegfried Pammer a826ad4043 Fix special case bug in WriteParameters 2018-02-18 11:55:31 -03:00