Commit Graph

  • 7559b782c1 Reindent test file Michael Hansen 2024-02-26 14:27:20 -08:00
  • 00d4b02d1e Added support for LOAD_CLASSDEREF MrDakik 2024-02-26 16:52:31 +02:00
  • 0a50980e8f Merge pull request #437 from kako57/master Michael Hansen 2024-02-14 21:40:58 -08:00
  • 7929dbe6e0 Add test case for #437 Michael Hansen 2024-02-14 21:36:27 -08:00
  • 787090e0a5 Merge github.com:kako57/pycdc Michael Hansen 2024-02-14 21:31:17 -08:00
  • 5f225caf52 LOAD_ATTR operand changes in 3.12 Nenad Čaklović 2024-01-05 21:32:53 +01:00
  • 2da061fc98 Merge pull request #423 from ncaklovic/master Michael Hansen 2024-01-04 15:55:09 -08:00
  • 830dd13228 COMPARE_OP operand changes in 3.12 Nenad Čaklović 2024-01-04 23:42:54 +01:00
  • 7560149895 Ensure there is always space after the opcode (some opcode names are longer than 30 characters now) Michael Hansen 2023-12-06 11:38:03 -08:00
  • ab6aaf6da3 Convert opcode maps to C++ source with macros. Michael Hansen 2023-12-05 14:29:33 -08:00
  • 20ac52d801 Remove PythonBytecode.txt. Michael Hansen 2023-12-05 13:43:50 -08:00
  • 0c0e3597bd Add version and parameter info to bytecode_ops.inl Michael Hansen 2023-12-05 13:24:00 -08:00
  • 795ad1861d Also show the first line when using --pycode-extra Michael Hansen 2023-11-30 12:49:04 -08:00
  • 74b8f7eec7 Move LOAD_SUPER_ATTR cases closer to other name cases Michael Hansen 2023-11-30 12:37:29 -08:00
  • b424ae8fd7 Refactor disassembly operand formatting to remove single-use functions. Michael Hansen 2023-11-30 10:16:00 -08:00
  • 9c00554efb Add basic support for some Instrumented opcodes which should match their non-instrumented versions. Michael Hansen 2023-11-18 17:59:24 -08:00
  • 9d1e156cec Correctly decode operand types for many newer opcodes in disassembly Michael Hansen 2023-11-18 17:45:35 -08:00
  • a86a6eb54f Fix a couple of incorrect instructions in Python 3.1 Michael Hansen 2023-11-18 17:44:36 -08:00
  • 3ffbb0aa20 Fix some incorrect opcode tables from Python 1.0-1.4 Michael Hansen 2023-11-16 14:51:40 -08:00
  • 4ecdd1f81b Remove unused python_NN_unmap() functions Michael Hansen 2023-11-16 11:27:31 -08:00
  • 0c6128a895 Add missing ACCESS_MODE opcode from Python 1.0-1.4 Michael Hansen 2023-11-16 10:44:42 -08:00
  • 57e16d19d1 Refactor bc_next to more clearly split pre- and post-3.6 behavior Michael Hansen 2023-11-14 12:09:01 -08:00
  • 9ab04e2c0b Fix CMP0148 warning in CMakeLists.txt (#400) asas1asas200 2023-11-17 00:07:00 +08:00
  • 5936412a6f fix #396 Unsupported Node type: 27 (#397) Jack 2023-11-12 02:22:49 +08:00
  • c7d3315156 Clarify prefix check on interned string type Michael Hansen 2023-11-09 15:45:43 -08:00
  • 21c35b2f4c Simplify PycDict key/value storage a bit Michael Hansen 2023-11-09 15:05:55 -08:00
  • e27faa1e88 Remove unnecessary sequence interface on PycDict Michael Hansen 2023-11-09 14:20:15 -08:00
  • 9b384ad1fa Add basic bytecode and disassembly support for Python 3.12 Michael Hansen 2023-11-09 11:11:37 -08:00
  • b32f231e33 Add GEN_START support (#392) TheHellTower 2023-10-20 16:42:33 -04:00
  • d62c8adf89 Merge branch '3_11-support-for-new-opcodes' of https://github.com/TiZCrocodile/pycdc Michael Hansen 2023-08-26 10:58:37 -07:00
  • b1a8563126 Merge pull request #378 from LNSSPsd/master Michael Hansen 2023-08-26 10:52:26 -07:00
  • 9711a4abe5 Fix the pointer's behavior on getting buffer Ruphane 2023-08-25 18:00:26 -07:00
  • f5c1d4262b Move comment closer to where it applies, plus some formatting consistency Michael Hansen 2023-08-19 21:24:03 -07:00
  • 916103179c Fix LOAD_GLOBAL_A operand printing for versions prior to 3.11 Roman Avdeenko 2023-08-19 17:43:04 +03:00
  • da859f5a2b Added support for opcodes: (in DESC) MrDakik 2023-07-18 18:33:03 +03:00
  • bb54b27cd1 Move cmake_minimum_required to the top of CMakeLists, so it correctly affects everything else below it Michael Hansen 2023-06-20 13:28:00 -07:00
  • 753d42d94a Simplify string object printing to reduce code duplication Michael Hansen 2023-06-09 09:09:03 -07:00
  • 4b4f9f8edb Fix impossible condition in pycdas Code dump Michael Hansen 2023-06-08 14:30:09 -07:00
  • 32a0aec535 Use raw string literals to improve readability in OutputString Michael Hansen 2023-06-06 11:20:32 -07:00
  • bf3599c87a Move some output stream parameters forward. Michael Hansen 2023-06-05 13:56:25 -07:00
  • 46ea76c0e9 Clean up file handling in main()s, and remove a leak Michael Hansen 2023-06-05 13:54:26 -07:00
  • 8bb8386764 Fix some issues with formatted_print: Michael Hansen 2023-06-05 13:49:04 -07:00
  • 482c32d84e Merge commit 'c4c35fc5318b904d5141a7f3c4a70d80576c30da' Michael Hansen 2023-06-05 11:18:20 -07:00
  • 72c5f87793 Fix range of supported versions for marshalled files Michael Hansen 2023-06-04 09:16:31 -07:00
  • c4c35fc531 Use C++ streams over C style IO Perceval Wajsbürt 2023-06-02 00:36:58 +02:00
  • 409f175827 Reduce code duplication for pre-3.11 binary ops, based on #348 Michael Hansen 2023-06-01 13:55:17 -07:00
  • 90815b47ca Squash merge of #348 Michael Hansen 2023-06-01 13:18:22 -07:00
  • ee934a1e99 Show binary ops from Python 3.11 in disassembly Michael Hansen 2023-05-30 14:45:22 -07:00
  • 0710ea07f1 Fix missing includes, which fixes build on GCC 13+ Michael Hansen 2023-05-07 13:28:10 -07:00
  • c8156739f1 Merge pull request #344 from seashell11234455/master Michael Hansen 2023-04-27 08:51:58 -07:00
  • 006b3e4bbc Fix unicode string display bug FeO3 2023-04-27 20:40:06 +08:00
  • a04b6c0258 Merge branch 'zrax:master' into master Dre Cura 2023-04-24 17:37:18 -04:00
  • 2e76e56420 Fixup unrelated changes from PR Michael Hansen 2023-02-28 15:49:12 -08:00
  • 4d81a16638 Add PUSH_NULL, PRECALL_A, CALL_A support (#324) TheHellTower 2023-03-01 00:48:33 +01:00
  • f4db6a7cf6 Update CodeQL configuration Michael Hansen 2023-02-27 13:12:11 -08:00
  • e922c1c224 Merge pull request #325 from zrax/test_calls Michael Hansen 2023-02-27 12:04:36 -08:00
  • 9f747e188c Add unit test for basic function calls (py3) Michael Hansen 2023-02-27 11:59:01 -08:00
  • db92811da8 Added extra rules for operator precedence kako57 2023-02-21 19:40:54 -05:00
  • 00d436f87d Reduce code duplication between PycSet/PycTuple/PycList Michael Hansen 2023-02-16 22:10:44 -08:00
  • 1fcbf4cd4b Keep PycSet objects marshalled from files in order too Michael Hansen 2023-02-16 22:01:31 -08:00
  • ded8adfba2 Merge pull request #319 from Ace314159/add-set-ops Michael Hansen 2023-02-16 21:52:42 -08:00
  • ca73f05830 Print out frozenset in disasm too Akash Munagala 2023-02-13 19:33:25 -08:00
  • 80e835e197 Properly output frozenset object in pycdas Akash Munagala 2023-02-13 19:26:30 -08:00
  • f00921d3d3 Use deque instead of set Akash Munagala 2023-02-13 19:25:45 -08:00
  • 66c46661d9 Add test Akash Munagala 2023-02-12 16:21:46 -08:00
  • aaad868445 Implement BUILD_SET and SET_UPDATE Akash Munagala 2023-02-12 15:56:18 -08:00
  • a6de2209fc Add simple_const tests for Python 3.8-3.11, and handle Python 3.11 RESUME opcode Michael Hansen 2023-01-24 10:25:10 -08:00
  • 60e4eb6316 Handle CACHE instructions in decompyle, and suppress them in disassembly by default. Michael Hansen 2023-01-19 14:50:55 -08:00
  • 5d855f0bd2 Fix LOAD_GLOBAL and cell var references in Python 3.11+ Michael Hansen 2023-01-19 13:05:06 -08:00
  • 379c0c94d0 Merge <3.11 VarNames and >=3.11 Locals+Names into a single variable for simplicity. Michael Hansen 2023-01-19 11:20:06 -08:00
  • dfb0a976c5 Add additional Code object fields to disassembly output. Michael Hansen 2022-12-05 09:12:39 -08:00
  • 9f1d0f2a21 Add basic opcode (disassembly) support for Python 3.11 Michael Hansen 2022-12-02 16:34:58 -08:00
  • a3e5ebd481 Add GET_YIELD_FROM_ITER support (#312) TheHellTower 2023-01-19 19:51:08 +01:00
  • 3c129a1128 Merge pull request #311 from zrax/upload_artifact Michael Hansen 2023-01-18 13:28:57 -08:00
  • fb4dfa3fdc Upload artifacts from Windows build Michael Hansen 2023-01-18 13:19:28 -08:00
  • 2075a4ac1f Fix CI failure -- these need to remain in the original order Michael Hansen 2022-12-02 14:16:18 -08:00
  • ffeabc3d3f Make cast() checked by default and add try_cast() for cases where a cast is not required to be successful. Michael Hansen 2022-12-01 16:13:31 -08:00
  • 305494c4b2 Fix unintentional method shadowing in ASTAnnotatedVar Michael Hansen 2022-12-01 16:03:09 -08:00
  • e623e9ac56 For String Refs, inherit the type of the reffed string object. Michael Hansen 2022-12-01 11:42:31 -08:00
  • 93495c3bfb Reduce unnecessary uses of std::list Michael Hansen 2022-12-01 11:35:14 -08:00
  • 863e09e9e7 Remove unnecessary Latin-1 conversion code -- PyUnicode ASCII is 7-bit. Michael Hansen 2022-11-30 15:05:29 -08:00
  • 44a730f3a8 Merge pull request #285 from zrax/simplify_marshal_version Michael Hansen 2022-10-04 15:24:38 -07:00
  • 747921a761 Adjust to reduce duplication Michael Hansen 2022-10-04 15:15:02 -07:00
  • e2db195b85 Merge from #267 Michael Hansen 2022-10-04 15:18:35 -07:00
  • 8590d67d29 Simplify and improve version setting for marshalled code objects: Michael Hansen 2022-10-04 14:51:23 -07:00
  • 6373459830 Merge pull request #283 from DarkGuySM/master Michael Hansen 2022-10-02 09:31:17 -07:00
  • 6cffd49799 Update README.markdown DarkGuySM 2022-10-02 15:44:29 +05:30
  • 4951905f83 Remove dead code from a previous version of this block. Michael Hansen 2022-09-30 10:07:44 -07:00
  • 1b59ea5cd8 Merge pull request #270 from ahaensler/for-loops-v3.8 Michael Hansen 2022-07-31 17:09:47 -07:00
  • 5758634f81 support three digit versions in tests Adrian Haensler 2022-07-30 00:07:38 -05:00
  • deebbb044d add a test Adrian Haensler 2022-07-30 00:02:47 -05:00
  • 462260991e fix for loops in 3.8 Adrian Haensler 2022-07-08 17:53:39 -05:00
  • 882571c599 some fixes for 3.9 Adrian Haensler 2022-07-08 15:44:46 -05:00
  • 25497aabb3 ASTree.cpp bugfix on line 1757, preventing error 'front called on empty vector' TrollerOfHolland 2022-06-23 01:16:41 +02:00
  • b0ce84234a Merge pull request #265 from clubby789/code-obj-support Michael Hansen 2022-06-16 09:45:00 -07:00
  • 942193e88b Style changes clubby789 2022-06-16 12:49:04 +01:00
  • 1750e9cb8a Note code object support in readme clubby789 2022-06-15 11:37:07 +01:00
  • dc50479d06 Add support for pycdas/pycdc using marshalled code objects clubby789 2022-06-15 11:33:11 +01:00
  • 96ef91b5f9 Allow specifying an output filename on the command line, instead of forcing reliance on shell redirection. Michael Hansen 2022-04-26 14:44:10 -07:00
  • 4884b5447f Add additional versions of conditional_expressions test Michael Hansen 2022-04-26 13:11:40 -07:00