7559b782c1Reindent test file
Michael Hansen
2024-02-26 14:27:20 -08:00
00d4b02d1eAdded support for LOAD_CLASSDEREF
MrDakik
2024-02-26 16:52:31 +02:00
0a50980e8fMerge pull request #437 from kako57/master
Michael Hansen
2024-02-14 21:40:58 -08:00
7929dbe6e0Add test case for #437
Michael Hansen
2024-02-14 21:36:27 -08:00
787090e0a5Merge github.com:kako57/pycdc
Michael Hansen
2024-02-14 21:31:17 -08:00
5f225caf52LOAD_ATTR operand changes in 3.12
Nenad Čaklović
2024-01-05 21:32:53 +01:00
2da061fc98Merge pull request #423 from ncaklovic/master
Michael Hansen
2024-01-04 15:55:09 -08:00
830dd13228COMPARE_OP operand changes in 3.12
Nenad Čaklović
2024-01-04 23:42:54 +01:00
7560149895Ensure 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
ab6aaf6da3Convert opcode maps to C++ source with macros.
Michael Hansen
2023-12-05 14:29:33 -08:00
20ac52d801Remove PythonBytecode.txt.
Michael Hansen
2023-12-05 13:43:50 -08:00
0c0e3597bdAdd version and parameter info to bytecode_ops.inl
Michael Hansen
2023-12-05 13:24:00 -08:00
795ad1861dAlso show the first line when using --pycode-extra
Michael Hansen
2023-11-30 12:49:04 -08:00
74b8f7eec7Move LOAD_SUPER_ATTR cases closer to other name cases
Michael Hansen
2023-11-30 12:37:29 -08:00
b424ae8fd7Refactor disassembly operand formatting to remove single-use functions.
Michael Hansen
2023-11-30 10:16:00 -08:00
9c00554efbAdd basic support for some Instrumented opcodes which should match their non-instrumented versions.
Michael Hansen
2023-11-18 17:59:24 -08:00
9d1e156cecCorrectly decode operand types for many newer opcodes in disassembly
Michael Hansen
2023-11-18 17:45:35 -08:00
a86a6eb54fFix a couple of incorrect instructions in Python 3.1
Michael Hansen
2023-11-18 17:44:36 -08:00
3ffbb0aa20Fix some incorrect opcode tables from Python 1.0-1.4
Michael Hansen
2023-11-16 14:51:40 -08:00
4ecdd1f81bRemove unused python_NN_unmap() functions
Michael Hansen
2023-11-16 11:27:31 -08:00
0c6128a895Add missing ACCESS_MODE opcode from Python 1.0-1.4
Michael Hansen
2023-11-16 10:44:42 -08:00
57e16d19d1Refactor bc_next to more clearly split pre- and post-3.6 behavior
Michael Hansen
2023-11-14 12:09:01 -08:00
9ab04e2c0bFix CMP0148 warning in CMakeLists.txt (#400)
asas1asas200
2023-11-17 00:07:00 +08:00
b1a8563126Merge pull request #378 from LNSSPsd/master
Michael Hansen
2023-08-26 10:52:26 -07:00
9711a4abe5Fix the pointer's behavior on getting buffer
Ruphane
2023-08-25 18:00:26 -07:00
f5c1d4262bMove comment closer to where it applies, plus some formatting consistency
Michael Hansen
2023-08-19 21:24:03 -07:00
916103179cFix LOAD_GLOBAL_A operand printing for versions prior to 3.11
Roman Avdeenko
2023-08-19 17:43:04 +03:00
da859f5a2bAdded support for opcodes: (in DESC)
MrDakik
2023-07-18 18:33:03 +03:00
bb54b27cd1Move 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
753d42d94aSimplify string object printing to reduce code duplication
Michael Hansen
2023-06-09 09:09:03 -07:00
4b4f9f8edbFix impossible condition in pycdas Code dump
Michael Hansen
2023-06-08 14:30:09 -07:00
32a0aec535Use raw string literals to improve readability in OutputString
Michael Hansen
2023-06-06 11:20:32 -07:00
bf3599c87aMove some output stream parameters forward.
Michael Hansen
2023-06-05 13:56:25 -07:00
46ea76c0e9Clean up file handling in main()s, and remove a leak
Michael Hansen
2023-06-05 13:54:26 -07:00
8bb8386764Fix some issues with formatted_print:
Michael Hansen
2023-06-05 13:49:04 -07:00
482c32d84eMerge commit 'c4c35fc5318b904d5141a7f3c4a70d80576c30da'
Michael Hansen
2023-06-05 11:18:20 -07:00
72c5f87793Fix range of supported versions for marshalled files
Michael Hansen
2023-06-04 09:16:31 -07:00
c4c35fc531Use C++ streams over C style IO
Perceval Wajsbürt
2023-06-02 00:36:58 +02:00
409f175827Reduce code duplication for pre-3.11 binary ops, based on #348
Michael Hansen
2023-06-01 13:55:17 -07:00
90815b47caSquash merge of #348
Michael Hansen
2023-06-01 13:18:22 -07:00
ee934a1e99Show binary ops from Python 3.11 in disassembly
Michael Hansen
2023-05-30 14:45:22 -07:00
0710ea07f1Fix missing includes, which fixes build on GCC 13+
Michael Hansen
2023-05-07 13:28:10 -07:00
c8156739f1Merge pull request #344 from seashell11234455/master
Michael Hansen
2023-04-27 08:51:58 -07:00
f00921d3d3Use deque instead of set
Akash Munagala
2023-02-13 19:25:45 -08:00
66c46661d9Add test
Akash Munagala
2023-02-12 16:21:46 -08:00
aaad868445Implement BUILD_SET and SET_UPDATE
Akash Munagala
2023-02-12 15:56:18 -08:00
a6de2209fcAdd 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
60e4eb6316Handle CACHE instructions in decompyle, and suppress them in disassembly by default.
Michael Hansen
2023-01-19 14:50:55 -08:00
5d855f0bd2Fix LOAD_GLOBAL and cell var references in Python 3.11+
Michael Hansen
2023-01-19 13:05:06 -08:00
379c0c94d0Merge <3.11 VarNames and >=3.11 Locals+Names into a single variable for simplicity.
Michael Hansen
2023-01-19 11:20:06 -08:00
dfb0a976c5Add additional Code object fields to disassembly output.
Michael Hansen
2022-12-05 09:12:39 -08:00
9f1d0f2a21Add basic opcode (disassembly) support for Python 3.11
Michael Hansen
2022-12-02 16:34:58 -08:00
a3e5ebd481Add GET_YIELD_FROM_ITER support (#312)
TheHellTower
2023-01-19 19:51:08 +01:00
3c129a1128Merge pull request #311 from zrax/upload_artifact
Michael Hansen
2023-01-18 13:28:57 -08:00
fb4dfa3fdcUpload artifacts from Windows build
Michael Hansen
2023-01-18 13:19:28 -08:00
2075a4ac1fFix CI failure -- these need to remain in the original order
Michael Hansen
2022-12-02 14:16:18 -08:00
ffeabc3d3fMake 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
305494c4b2Fix unintentional method shadowing in ASTAnnotatedVar
Michael Hansen
2022-12-01 16:03:09 -08:00
e623e9ac56For String Refs, inherit the type of the reffed string object.
Michael Hansen
2022-12-01 11:42:31 -08:00
93495c3bfbReduce unnecessary uses of std::list
Michael Hansen
2022-12-01 11:35:14 -08:00
863e09e9e7Remove unnecessary Latin-1 conversion code -- PyUnicode ASCII is 7-bit.
Michael Hansen
2022-11-30 15:05:29 -08:00
44a730f3a8Merge pull request #285 from zrax/simplify_marshal_version
Michael Hansen
2022-10-04 15:24:38 -07:00
747921a761Adjust to reduce duplication
Michael Hansen
2022-10-04 15:15:02 -07:00
e2db195b85Merge from #267
Michael Hansen
2022-10-04 15:18:35 -07:00
8590d67d29Simplify and improve version setting for marshalled code objects:
Michael Hansen
2022-10-04 14:51:23 -07:00
6373459830Merge pull request #283 from DarkGuySM/master
Michael Hansen
2022-10-02 09:31:17 -07:00
1750e9cb8aNote code object support in readme
clubby789
2022-06-15 11:37:07 +01:00
dc50479d06Add support for pycdas/pycdc using marshalled code objects
clubby789
2022-06-15 11:33:11 +01:00
96ef91b5f9Allow 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
4884b5447fAdd additional versions of conditional_expressions test
Michael Hansen
2022-04-26 13:11:40 -07:00