157 Commits
Author SHA1 Message Date
Daniel Grunwald fa19470435 Fix #3218: Avoid exceptions when IL is invalid due to unexpected end-of-method-body. 2024-06-15 15:03:21 +02:00
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
Siegfried Pammer 942131f487 #3068: Introduce MetadataFile for pure ECMA-335 streams and as base class for PEFile 2023-12-31 21:09:54 +01:00
Siegfried Pammer 32242c54a1 Fix #3056: WriteParameterReference was using the wrong parameter definition in static methods. 2023-08-26 11:49:06 +02:00
Siegfried Pammer 7414aaeeeb Fix #3061: Handler blocks of exception filter blocks do not have a header. 2023-08-26 11:40:42 +02: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 af56bb10d0 Determine isBranchTarget in a separate pass. We will need it for an optimization to ILReader in a future commit. 2022-09-06 21:38:18 +02: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 48adb52489 Show header size in IL output. 2021-08-26 14:54:49 +02:00
Anders Hörnfeldt 9747a2b359 Escape identifiers containing repeating dots 2021-05-29 22:38:11 +02:00
Anders Hörnfeldt b45c0099ef Refactor for readability 2021-05-29 22:38:11 +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
Daniel Grunwald 8573c5282e Avoid code duplication when disassembling signature headers. 2020-09-17 19:04:42 +02:00
Daniel Grunwald 6d3239678c Function pointers: add support for the builtin unmanaged calling conventions. 2020-09-17 18:57:57 +02: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
Austin Wise aae304b3db Update links to Microsoft Docs. 2020-06-03 11:49:11 -07: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 853cad5fd0 Disassembler: Implement cancellation token. 2020-04-10 22:29:35 +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 1c4b02cb7c Merge branch 'master' of https://github.com/icsharpcode/ILSpy into ppdb 2019-02-13 18:06:29 +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
Daniel Grunwald 61698b615d Fix #1232: BadImageFormatException: Invalid SEH header
This makes the decompiler and a bunch of analyzers more robust against invalid assemblies.
2018-07-25 23:59:17 +02:00
Siegfried Pammer b20d4df95b Fix #1231: System.BadImageFormatException: Invalid coded index 2018-07-23 11:55:39 +02:00
Siegfried Pammer 697074f88b MethodBodyDisassembler: print variable names found in PDB. 2018-07-22 22:15:15 +02:00
Siegfried Pammer 2a80757e0a Fix parameter output of disassembler. Closes #1214 2018-07-21 19:01:52 +02:00
Siegfried Pammer 420ecb5906 Move ILParser to separate file. 2018-07-18 20:16:25 +02:00
Daniel Grunwald 08e8091336 Fix #1211: Handle BadImageFormatException on invalid local signatures. 2018-07-16 22:40:36 +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 716eade5a6 Add missing "method" keyword to method definition tokens in ldtoken instruction. 2018-07-12 14:18:18 +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