Michael Hansen
ded8adfba2
Merge pull request #319 from Ace314159/add-set-ops
...
Implement BUILD_SET and SET_UPDATE
2023-02-16 21:52:42 -08:00
Akash Munagala
ca73f05830
Print out frozenset in disasm too
2023-02-13 19:33:25 -08:00
Akash Munagala
80e835e197
Properly output frozenset object in pycdas
2023-02-13 19:26:30 -08:00
Akash Munagala
f00921d3d3
Use deque instead of set
2023-02-13 19:25:45 -08:00
Akash Munagala
66c46661d9
Add test
2023-02-12 17:01:37 -08:00
Akash Munagala
aaad868445
Implement BUILD_SET and SET_UPDATE
2023-02-12 16:21:20 -08:00
Michael Hansen
a6de2209fc
Add simple_const tests for Python 3.8-3.11, and handle Python 3.11 RESUME opcode
2023-01-24 10:25:10 -08:00
Michael Hansen
60e4eb6316
Handle CACHE instructions in decompyle, and suppress them in disassembly by default.
...
Showing CACHE instructions and the extra PyCode fields in pycdas is now
controlled by command-line arguments.
2023-01-19 14:50:55 -08:00
Michael Hansen
5d855f0bd2
Fix LOAD_GLOBAL and cell var references in Python 3.11+
2023-01-19 13:05:06 -08:00
Michael Hansen
379c0c94d0
Merge <3.11 VarNames and >=3.11 Locals+Names into a single variable for simplicity.
...
Also cleans up some extra verbose output by making extra PyCode fields optional
2023-01-19 11:32:07 -08:00
Michael Hansen
dfb0a976c5
Add additional Code object fields to disassembly output.
2023-01-19 11:32:07 -08:00
Michael Hansen
9f1d0f2a21
Add basic opcode (disassembly) support for Python 3.11
2023-01-19 11:32:07 -08:00
TheHellTower
a3e5ebd481
Add GET_YIELD_FROM_ITER support (#312)
2023-01-19 10:51:08 -08:00
Michael Hansen
3c129a1128
Merge pull request #311 from zrax/upload_artifact
...
Upload artifacts from Windows build
2023-01-18 13:28:57 -08:00
Michael Hansen
fb4dfa3fdc
Upload artifacts from Windows build
2023-01-18 13:19:28 -08:00
Michael Hansen
2075a4ac1f
Fix CI failure -- these need to remain in the original order
2022-12-02 14:16:18 -08:00
Michael Hansen
ffeabc3d3f
Make cast() checked by default and add try_cast() for cases where a cast
...
is not required to be successful.
2022-12-01 16:13:31 -08:00
Michael Hansen
305494c4b2
Fix unintentional method shadowing in ASTAnnotatedVar
2022-12-01 16:03:09 -08:00
Michael Hansen
e623e9ac56
For String Refs, inherit the type of the reffed string object.
2022-12-01 11:42:31 -08:00
Michael Hansen
93495c3bfb
Reduce unnecessary uses of std::list
2022-12-01 11:35:14 -08:00
Michael Hansen
863e09e9e7
Remove unnecessary Latin-1 conversion code -- PyUnicode ASCII is 7-bit.
2022-11-30 15:05:29 -08:00
Michael Hansen
44a730f3a8
Merge pull request #285 from zrax/simplify_marshal_version
...
Simplify and improve version setting for marshalled code objects
2022-10-04 15:24:38 -07:00
Michael Hansen
747921a761
Adjust to reduce duplication
2022-10-04 15:19:15 -07:00
Michael Hansen
e2db195b85
Merge from #267
2022-10-04 15:18:35 -07:00
Michael Hansen
8590d67d29
Simplify and improve version setting for marshalled code objects:
...
* Use a simpler check for validity -- the reverse magic number mapping was
unnecessary and missed some cases (2.2, 3.2).
* Set the version directly after it is checked for validity.
* Fix unicode flag setting on Python 3.x.
2022-10-04 14:51:23 -07:00
Michael Hansen
6373459830
Merge pull request #283 from DarkGuySM/master
...
Update README.markdown
2022-10-02 09:31:17 -07:00
DarkGuySM
6cffd49799
Update README.markdown
...
Corrected spelling mistake.
2022-10-02 15:44:29 +05:30
Michael Hansen
4951905f83
Remove dead code from a previous version of this block.
...
Fixes #282
2022-09-30 10:07:44 -07:00
Michael Hansen
1b59ea5cd8
Merge pull request #270 from ahaensler/for-loops-v3.8
...
3.8: parse for loops and fix ternary ifs
2022-07-31 17:09:47 -07:00
Adrian Haensler
5758634f81
support three digit versions in tests
2022-07-30 00:07:38 -05:00
Adrian Haensler
deebbb044d
add a test
2022-07-30 00:02:47 -05:00
Adrian Haensler
462260991e
fix for loops in 3.8
2022-07-08 20:25:13 -05:00
Adrian Haensler
882571c599
some fixes for 3.9
2022-07-08 17:45:07 -05:00
TrollerOfHolland
25497aabb3
ASTree.cpp bugfix on line 1757, preventing error 'front called on empty vector'
2022-06-23 01:16:41 +02:00
Michael Hansen
b0ce84234a
Merge pull request #265 from clubby789/code-obj-support
...
Code obj support
2022-06-16 09:45:00 -07:00
clubby789
942193e88b
Style changes
2022-06-16 12:49:04 +01:00
clubby789
1750e9cb8a
Note code object support in readme
2022-06-15 11:37:07 +01:00
clubby789
dc50479d06
Add support for pycdas/pycdc using marshalled code objects
...
These requires the Python version to be specified as the Pyc header
magic is not present.
2022-06-15 11:33:11 +01:00
Michael Hansen
96ef91b5f9
Allow specifying an output filename on the command line, instead of forcing reliance on shell redirection.
...
Closes #31
2022-04-26 14:56:12 -07:00
Michael Hansen
4884b5447f
Add additional versions of conditional_expressions test
2022-04-26 13:11:40 -07:00
Michael Hansen
b0fa45840f
Minor code style cleanups for consistency
2022-04-26 12:56:19 -07:00
Michael Hansen
73ff7ef3fe
Merge pull request #249 from ncaklovic/master
...
Support for conditional expression (if-expression)
2022-04-26 11:29:26 -07:00
Nenad Čaklović
38a1ee59c3
Support for conditonal expression (if-expression) - review findings
2022-04-02 13:57:10 +02:00
Nenad Čaklović
46affe279c
Support for conditonal expression (if-expression)
2022-03-29 12:30:06 +02:00
Michael Hansen
f19b38d3be
Merge pull request #245 from ncaklovic/master
...
Changes in 3.10 under BPO-27129: "Use instruction offset, rather than bytecode offset"
2022-03-24 14:57:57 -07:00
Michael Hansen
9fe5463c19
Merge pull request #246 from zrax/fix_msvc_ci
...
Fix MSVC CI configuration
2022-03-24 14:57:42 -07:00
Michael Hansen
c134280576
Update MSVC version to make CI happy
2022-03-24 14:53:00 -07:00
Nenad Čaklović
3039d8b410
Disassembler changes in 3.10 under BPO-27129
2022-03-24 22:06:35 +01:00
Nenad Čaklović
7160cf796c
Changes in 3.10 under BPO-27129: Use instruction offset, rather than bytecode offset
2022-03-24 20:59:15 +01:00
Michael Hansen
99b35a114a
Merge pull request #209 from dotjrich/pymultic-container-build
...
Adds support for building our own Python containers
2021-11-22 21:29:13 -08:00