debugpy 1.8.5__zip → 1.8.7__zip
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {debugpy-1.8.5/src/debugpy.egg-info → debugpy-1.8.7}/PKG-INFO +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_calltip_util.py +19 -21
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_completer.py +30 -30
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_execfile.py +3 -1
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +43 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_getopt.py +35 -32
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_imports_tipper.py +83 -84
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_jy_imports_tipper.py +92 -99
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_log.py +2 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_saved_modules.py +51 -27
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_sys_patch.py +11 -7
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_tipper_common.py +6 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/fsnotify/__init__.py +34 -38
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_console_utils.py +71 -69
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_import_hook.py +1 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_imports.py +0 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console.py +14 -16
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_ipython_console_011.py +81 -93
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_is_thread_alive.py +3 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_localhost.py +9 -8
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_log.py +33 -25
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey.py +183 -170
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_monkey_qt.py +33 -29
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_override.py +6 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_umd.py +19 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/pydev_versioncheck.py +3 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles.py +165 -138
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +77 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_nose.py +35 -36
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel.py +22 -23
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_parallel_client.py +37 -57
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_pytest2.py +54 -52
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_unittest.py +28 -37
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_xml_rpc.py +56 -53
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +604 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocol.json +551 -445
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_base_schema.py +25 -29
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +17458 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema_log.py +11 -12
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevconsole_code.py +18 -19
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +41 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +328 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_api.py +263 -214
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_breakpoints.py +7 -10
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils.py +187 -92
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_bytecode_utils_py311.py +105 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_code_to_source.py +46 -51
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_collect_bytecode_info.py +239 -176
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm.py +370 -297
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_comm_constants.py +78 -86
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_command_line_handling.py +55 -59
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_concurrency_logger.py +194 -58
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/pydevd_thread_wrappers.py +2 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_console.py +18 -23
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_constants.py +159 -127
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_custom_frames.py +10 -12
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +55527 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pxd +15 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.pyx +803 -511
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython_wrapper.py +18 -7
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_daemon_thread.py +32 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_defaults.py +11 -13
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace.py +16 -16
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_dont_trace_files.py +27 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_exec2.py +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_api.py +4 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_extension_utils.py +8 -10
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_filtering.py +50 -45
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame.py +462 -407
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_frame_utils.py +69 -61
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_gevent_integration.py +14 -16
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_import_class.py +27 -25
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_io.py +40 -42
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +200 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command.py +20 -19
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_json.py +199 -108
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_net_command_factory_xml.py +121 -73
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +208 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command.py +206 -159
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_process_net_command_json.py +346 -334
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_referrers.py +75 -80
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_reload.py +35 -35
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_resolver.py +116 -124
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_runpy.py +44 -58
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_safe_repr.py +51 -55
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_save_locals.py +4 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_signature.py +24 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_source_mapping.py +19 -20
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_stackless.py +45 -49
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_suspended_frames.py +61 -58
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_thread_lifecycle.py +23 -13
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_timeout.py +29 -31
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch.py +41 -11
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_dispatch_regular.py +117 -55
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_traceproperty.py +11 -14
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_utils.py +90 -89
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vars.py +106 -97
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +40 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_xml.py +56 -46
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_cython_wrapper.py +5 -5
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +71 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.c +11165 -5326
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_tracing.py +5 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_modify_bytecode.py +53 -56
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/bytecode.py +4 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/cfg.py +6 -26
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/concrete.py +7 -21
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/flags.py +5 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/instr.py +10 -34
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/peephole_opt.py +1 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/__init__.py +2 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_bytecode.py +3 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_cfg.py +11 -31
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_code.py +2 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_concrete.py +14 -41
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_flags.py +2 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_instr.py +7 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_misc.py +6 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/test_peephole_opt.py +7 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/bytecode/tests/util_annotation.py +1 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/pydevd_fix_code.py +14 -19
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring.py +1929 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.c +43253 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pxd +46 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/_pydevd_sys_monitoring_cython.pyx +1935 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/_pydevd_sys_monitoring/pydevd_sys_monitoring.py +16 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_app_engine_debug_startup.py +12 -11
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_coverage.py +30 -32
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhook.py +58 -54
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookglut.py +20 -24
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk.py +8 -7
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookgtk3.py +8 -6
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookpyglet.py +11 -8
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt4.py +21 -18
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt5.py +17 -15
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookqt6.py +17 -15
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhooktk.py +6 -4
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/inputhookwx.py +14 -10
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/matplotlibtools.py +30 -26
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +24 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_for_kernel.py +37 -34
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/qt_loaders.py +86 -73
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/version.py +7 -7
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_pysrc.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_run_in_console.py +23 -24
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +267 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevconsole.py +55 -47
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd.py +732 -508
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +40 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_check.py +1 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +11 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +75 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/add_code_to_python_process.py +130 -125
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +89 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_script.py +41 -32
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_utils.hpp +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_version.hpp +9 -1
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.exe +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/lldb_prepare.py +10 -9
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/__init__.py +103 -119
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/breakpoint.py +457 -516
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/compat.py +33 -15
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/crash.py +336 -281
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/debug.py +101 -131
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/disasm.py +148 -153
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/event.py +310 -302
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/interactive.py +235 -208
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/module.py +185 -218
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/process.py +428 -564
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/registry.py +54 -53
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/search.py +69 -73
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/sql.py +158 -170
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/system.py +143 -213
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/textio.py +302 -333
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/thread.py +220 -239
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/util.py +198 -177
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/__init__.py +11 -11
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/advapi32.py +1191 -713
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_amd64.py +248 -194
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/context_i386.py +132 -120
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/dbghelp.py +450 -346
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/defines.py +305 -286
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +526 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/kernel32.py +1479 -1097
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +579 -0
- debugpy-1.8.7/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +3517 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/psapi.py +54 -31
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shell32.py +170 -149
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/shlwapi.py +190 -108
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/user32.py +542 -437
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/version.py +489 -442
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/wtsapi32.py +83 -65
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/window.py +70 -76
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.cpp +17 -9
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/compile_windows.bat +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_file_utils.py +141 -120
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/django_debug.py +175 -149
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/__init__.py +1 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_helpers.py +5 -5
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_numpy_types.py +28 -28
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugin_pandas_types.py +22 -30
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/types/pydevd_plugins_django_form_str.py +3 -2
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/jinja2_debug.py +130 -108
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/pydevd_line_validation.py +27 -14
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_tracing.py +85 -66
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/setup_pydevd_cython.py +96 -59
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_version.py +3 -3
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/messaging.py +2 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/cli.py +32 -17
- {debugpy-1.8.5 → debugpy-1.8.7/src/debugpy.egg-info}/PKG-INFO +1 -1
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/SOURCES.txt +6 -1
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_bundle/_pydev_filesystem_encoding.py +0 -41
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydev_runfiles/pydev_runfiles_coverage.py +0 -76
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__main__pydevd_gen_debug_adapter_protocol.py +0 -592
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/pydevd_schema.py +0 -19514
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info.py +0 -19
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_additional_thread_info_regular.py +0 -153
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_cython.c +0 -43377
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_json_debug_options.py +0 -204
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_plugin_utils.py +0 -91
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_trace_api.py +0 -62
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_vm_type.py +0 -41
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_eval_main.py +0 -48
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_ipython/qt.py +0 -23
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_pysrc.py +0 -1
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydev_sitecustomize/sitecustomize.py +0 -237
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_always_live_program.py +0 -32
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process.py +0 -9
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/_test_attach_to_process_linux.py +0 -74
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_amd64.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_pydevd.py +0 -79
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/attach_x86.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.exe +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_amd64.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/inject_dll_x86.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_amd64.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.dll +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/run_code_on_dllmain_x86.pdb +0 -0
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/gdi32.py +0 -507
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py +0 -539
- debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/peb_teb.py +0 -3435
- {debugpy-1.8.5 → debugpy-1.8.7}/DESCRIPTION.md +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/LICENSE +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/MANIFEST.in +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/README.md +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/pyproject.toml +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/setup.cfg +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/setup.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/ThirdPartyNotices.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/__main__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_pydevd_packaging.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/_util.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/force_pydevd.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_bundle/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydev_runfiles/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/_debug_adapter/debugProtocolCustom.json +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_bundle/pydevd_concurrency_analyser/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/.gitignore +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pxd +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.pyx +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/pydevd_frame_evaluator.template.pyx +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/release_mem.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/README.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/_pydevd_frame_eval/vendored/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/README +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_ipython/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydev_sitecustomize/__not_in_default_pythonpath.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/README.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_310.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_311.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_custom_pyeval_settrace_common.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/py_settrace.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/python.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/common/ref_utils.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/.gitignore +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/attach.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_linux.sh +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_mac.sh +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/linux_and_mac/compile_manylinux.cmd +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/attach.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/inject_dll.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/py_win_helpers.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_in_memory.hpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/run_code_on_dllmain.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.cpp +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/stdafx.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/targetver.h +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/_vendored/pydevd/pydevd_plugins/extensions/README.md +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/__main__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/clients.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/components.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/launchers.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/servers.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/adapter/sessions.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/json.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/log.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/singleton.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/sockets.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/stacks.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/timestamp.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/common/util.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/__main__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/debuggee.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/handlers.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/output.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/launcher/winapi.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/public_api.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/__init__.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/api.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy/server/attach_pid_injected.py +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/dependency_links.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/entry_points.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/src/debugpy.egg-info/top_level.txt +0 -0
- {debugpy-1.8.5 → debugpy-1.8.7}/versioneer.py +0 -0
debugpy-1.8.5/src/debugpy/_vendored/pydevd/pydevd_attach_to_process/winappdbg/win32/ntdll.py
DELETED
|
@@ -1,539 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env python
|
|
2
|
-
# -*- coding: utf-8 -*-
|
|
3
|
-
|
|
4
|
-
# Copyright (c) 2009-2014, Mario Vilas
|
|
5
|
-
# All rights reserved.
|
|
6
|
-
#
|
|
7
|
-
# Redistribution and use in source and binary forms, with or without
|
|
8
|
-
# modification, are permitted provided that the following conditions are met:
|
|
9
|
-
#
|
|
10
|
-
# * Redistributions of source code must retain the above copyright notice,
|
|
11
|
-
# this list of conditions and the following disclaimer.
|
|
12
|
-
# * Redistributions in binary form must reproduce the above copyright
|
|
13
|
-
# notice,this list of conditions and the following disclaimer in the
|
|
14
|
-
# documentation and/or other materials provided with the distribution.
|
|
15
|
-
# * Neither the name of the copyright holder nor the names of its
|
|
16
|
-
# contributors may be used to endorse or promote products derived from
|
|
17
|
-
# this software without specific prior written permission.
|
|
18
|
-
#
|
|
19
|
-
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
20
|
-
# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
21
|
-
# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
22
|
-
# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
23
|
-
# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
24
|
-
# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
25
|
-
# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
26
|
-
# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
27
|
-
# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
28
|
-
# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
29
|
-
# POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
-
|
|
31
|
-
"""
|
|
32
|
-
Wrapper for ntdll.dll in ctypes.
|
|
33
|
-
"""
|
|
34
|
-
|
|
35
|
-
__revision__ = "$Id$"
|
|
36
|
-
|
|
37
|
-
from winappdbg.win32.defines import *
|
|
38
|
-
|
|
39
|
-
#==============================================================================
|
|
40
|
-
# This is used later on to calculate the list of exported symbols.
|
|
41
|
-
_all = None
|
|
42
|
-
_all = set(vars().keys())
|
|
43
|
-
_all.add('peb_teb')
|
|
44
|
-
#==============================================================================
|
|
45
|
-
|
|
46
|
-
from winappdbg.win32.peb_teb import *
|
|
47
|
-
|
|
48
|
-
#--- Types --------------------------------------------------------------------
|
|
49
|
-
|
|
50
|
-
SYSDBG_COMMAND = DWORD
|
|
51
|
-
PROCESSINFOCLASS = DWORD
|
|
52
|
-
THREADINFOCLASS = DWORD
|
|
53
|
-
FILE_INFORMATION_CLASS = DWORD
|
|
54
|
-
|
|
55
|
-
#--- Constants ----------------------------------------------------------------
|
|
56
|
-
|
|
57
|
-
# DEP flags for ProcessExecuteFlags
|
|
58
|
-
MEM_EXECUTE_OPTION_ENABLE = 1
|
|
59
|
-
MEM_EXECUTE_OPTION_DISABLE = 2
|
|
60
|
-
MEM_EXECUTE_OPTION_ATL7_THUNK_EMULATION = 4
|
|
61
|
-
MEM_EXECUTE_OPTION_PERMANENT = 8
|
|
62
|
-
|
|
63
|
-
# SYSTEM_INFORMATION_CLASS
|
|
64
|
-
# http://www.informit.com/articles/article.aspx?p=22442&seqNum=4
|
|
65
|
-
SystemBasicInformation = 1 # 0x002C
|
|
66
|
-
SystemProcessorInformation = 2 # 0x000C
|
|
67
|
-
SystemPerformanceInformation = 3 # 0x0138
|
|
68
|
-
SystemTimeInformation = 4 # 0x0020
|
|
69
|
-
SystemPathInformation = 5 # not implemented
|
|
70
|
-
SystemProcessInformation = 6 # 0x00F8 + per process
|
|
71
|
-
SystemCallInformation = 7 # 0x0018 + (n * 0x0004)
|
|
72
|
-
SystemConfigurationInformation = 8 # 0x0018
|
|
73
|
-
SystemProcessorCounters = 9 # 0x0030 per cpu
|
|
74
|
-
SystemGlobalFlag = 10 # 0x0004
|
|
75
|
-
SystemInfo10 = 11 # not implemented
|
|
76
|
-
SystemModuleInformation = 12 # 0x0004 + (n * 0x011C)
|
|
77
|
-
SystemLockInformation = 13 # 0x0004 + (n * 0x0024)
|
|
78
|
-
SystemInfo13 = 14 # not implemented
|
|
79
|
-
SystemPagedPoolInformation = 15 # checked build only
|
|
80
|
-
SystemNonPagedPoolInformation = 16 # checked build only
|
|
81
|
-
SystemHandleInformation = 17 # 0x0004 + (n * 0x0010)
|
|
82
|
-
SystemObjectInformation = 18 # 0x0038+ + (n * 0x0030+)
|
|
83
|
-
SystemPagefileInformation = 19 # 0x0018+ per page file
|
|
84
|
-
SystemInstemulInformation = 20 # 0x0088
|
|
85
|
-
SystemInfo20 = 21 # invalid info class
|
|
86
|
-
SystemCacheInformation = 22 # 0x0024
|
|
87
|
-
SystemPoolTagInformation = 23 # 0x0004 + (n * 0x001C)
|
|
88
|
-
SystemProcessorStatistics = 24 # 0x0000, or 0x0018 per cpu
|
|
89
|
-
SystemDpcInformation = 25 # 0x0014
|
|
90
|
-
SystemMemoryUsageInformation1 = 26 # checked build only
|
|
91
|
-
SystemLoadImage = 27 # 0x0018, set mode only
|
|
92
|
-
SystemUnloadImage = 28 # 0x0004, set mode only
|
|
93
|
-
SystemTimeAdjustmentInformation = 29 # 0x000C, 0x0008 writeable
|
|
94
|
-
SystemMemoryUsageInformation2 = 30 # checked build only
|
|
95
|
-
SystemInfo30 = 31 # checked build only
|
|
96
|
-
SystemInfo31 = 32 # checked build only
|
|
97
|
-
SystemCrashDumpInformation = 33 # 0x0004
|
|
98
|
-
SystemExceptionInformation = 34 # 0x0010
|
|
99
|
-
SystemCrashDumpStateInformation = 35 # 0x0008
|
|
100
|
-
SystemDebuggerInformation = 36 # 0x0002
|
|
101
|
-
SystemThreadSwitchInformation = 37 # 0x0030
|
|
102
|
-
SystemRegistryQuotaInformation = 38 # 0x000C
|
|
103
|
-
SystemLoadDriver = 39 # 0x0008, set mode only
|
|
104
|
-
SystemPrioritySeparationInformation = 40 # 0x0004, set mode only
|
|
105
|
-
SystemInfo40 = 41 # not implemented
|
|
106
|
-
SystemInfo41 = 42 # not implemented
|
|
107
|
-
SystemInfo42 = 43 # invalid info class
|
|
108
|
-
SystemInfo43 = 44 # invalid info class
|
|
109
|
-
SystemTimeZoneInformation = 45 # 0x00AC
|
|
110
|
-
SystemLookasideInformation = 46 # n * 0x0020
|
|
111
|
-
# info classes specific to Windows 2000
|
|
112
|
-
# WTS = Windows Terminal Server
|
|
113
|
-
SystemSetTimeSlipEvent = 47 # set mode only
|
|
114
|
-
SystemCreateSession = 48 # WTS, set mode only
|
|
115
|
-
SystemDeleteSession = 49 # WTS, set mode only
|
|
116
|
-
SystemInfo49 = 50 # invalid info class
|
|
117
|
-
SystemRangeStartInformation = 51 # 0x0004
|
|
118
|
-
SystemVerifierInformation = 52 # 0x0068
|
|
119
|
-
SystemAddVerifier = 53 # set mode only
|
|
120
|
-
SystemSessionProcessesInformation = 54 # WTS
|
|
121
|
-
|
|
122
|
-
# NtQueryInformationProcess constants (from MSDN)
|
|
123
|
-
##ProcessBasicInformation = 0
|
|
124
|
-
##ProcessDebugPort = 7
|
|
125
|
-
##ProcessWow64Information = 26
|
|
126
|
-
##ProcessImageFileName = 27
|
|
127
|
-
|
|
128
|
-
# PROCESS_INFORMATION_CLASS
|
|
129
|
-
# http://undocumented.ntinternals.net/UserMode/Undocumented%20Functions/NT%20Objects/Process/PROCESS_INFORMATION_CLASS.html
|
|
130
|
-
ProcessBasicInformation = 0
|
|
131
|
-
ProcessQuotaLimits = 1
|
|
132
|
-
ProcessIoCounters = 2
|
|
133
|
-
ProcessVmCounters = 3
|
|
134
|
-
ProcessTimes = 4
|
|
135
|
-
ProcessBasePriority = 5
|
|
136
|
-
ProcessRaisePriority = 6
|
|
137
|
-
ProcessDebugPort = 7
|
|
138
|
-
ProcessExceptionPort = 8
|
|
139
|
-
ProcessAccessToken = 9
|
|
140
|
-
ProcessLdtInformation = 10
|
|
141
|
-
ProcessLdtSize = 11
|
|
142
|
-
ProcessDefaultHardErrorMode = 12
|
|
143
|
-
ProcessIoPortHandlers = 13
|
|
144
|
-
ProcessPooledUsageAndLimits = 14
|
|
145
|
-
ProcessWorkingSetWatch = 15
|
|
146
|
-
ProcessUserModeIOPL = 16
|
|
147
|
-
ProcessEnableAlignmentFaultFixup = 17
|
|
148
|
-
ProcessPriorityClass = 18
|
|
149
|
-
ProcessWx86Information = 19
|
|
150
|
-
ProcessHandleCount = 20
|
|
151
|
-
ProcessAffinityMask = 21
|
|
152
|
-
ProcessPriorityBoost = 22
|
|
153
|
-
|
|
154
|
-
ProcessWow64Information = 26
|
|
155
|
-
ProcessImageFileName = 27
|
|
156
|
-
|
|
157
|
-
# http://www.codeproject.com/KB/security/AntiReverseEngineering.aspx
|
|
158
|
-
ProcessDebugObjectHandle = 30
|
|
159
|
-
|
|
160
|
-
ProcessExecuteFlags = 34
|
|
161
|
-
|
|
162
|
-
# THREAD_INFORMATION_CLASS
|
|
163
|
-
ThreadBasicInformation = 0
|
|
164
|
-
ThreadTimes = 1
|
|
165
|
-
ThreadPriority = 2
|
|
166
|
-
ThreadBasePriority = 3
|
|
167
|
-
ThreadAffinityMask = 4
|
|
168
|
-
ThreadImpersonationToken = 5
|
|
169
|
-
ThreadDescriptorTableEntry = 6
|
|
170
|
-
ThreadEnableAlignmentFaultFixup = 7
|
|
171
|
-
ThreadEventPair = 8
|
|
172
|
-
ThreadQuerySetWin32StartAddress = 9
|
|
173
|
-
ThreadZeroTlsCell = 10
|
|
174
|
-
ThreadPerformanceCount = 11
|
|
175
|
-
ThreadAmILastThread = 12
|
|
176
|
-
ThreadIdealProcessor = 13
|
|
177
|
-
ThreadPriorityBoost = 14
|
|
178
|
-
ThreadSetTlsArrayAddress = 15
|
|
179
|
-
ThreadIsIoPending = 16
|
|
180
|
-
ThreadHideFromDebugger = 17
|
|
181
|
-
|
|
182
|
-
# OBJECT_INFORMATION_CLASS
|
|
183
|
-
ObjectBasicInformation = 0
|
|
184
|
-
ObjectNameInformation = 1
|
|
185
|
-
ObjectTypeInformation = 2
|
|
186
|
-
ObjectAllTypesInformation = 3
|
|
187
|
-
ObjectHandleInformation = 4
|
|
188
|
-
|
|
189
|
-
# FILE_INFORMATION_CLASS
|
|
190
|
-
FileDirectoryInformation = 1
|
|
191
|
-
FileFullDirectoryInformation = 2
|
|
192
|
-
FileBothDirectoryInformation = 3
|
|
193
|
-
FileBasicInformation = 4
|
|
194
|
-
FileStandardInformation = 5
|
|
195
|
-
FileInternalInformation = 6
|
|
196
|
-
FileEaInformation = 7
|
|
197
|
-
FileAccessInformation = 8
|
|
198
|
-
FileNameInformation = 9
|
|
199
|
-
FileRenameInformation = 10
|
|
200
|
-
FileLinkInformation = 11
|
|
201
|
-
FileNamesInformation = 12
|
|
202
|
-
FileDispositionInformation = 13
|
|
203
|
-
FilePositionInformation = 14
|
|
204
|
-
FileFullEaInformation = 15
|
|
205
|
-
FileModeInformation = 16
|
|
206
|
-
FileAlignmentInformation = 17
|
|
207
|
-
FileAllInformation = 18
|
|
208
|
-
FileAllocationInformation = 19
|
|
209
|
-
FileEndOfFileInformation = 20
|
|
210
|
-
FileAlternateNameInformation = 21
|
|
211
|
-
FileStreamInformation = 22
|
|
212
|
-
FilePipeInformation = 23
|
|
213
|
-
FilePipeLocalInformation = 24
|
|
214
|
-
FilePipeRemoteInformation = 25
|
|
215
|
-
FileMailslotQueryInformation = 26
|
|
216
|
-
FileMailslotSetInformation = 27
|
|
217
|
-
FileCompressionInformation = 28
|
|
218
|
-
FileCopyOnWriteInformation = 29
|
|
219
|
-
FileCompletionInformation = 30
|
|
220
|
-
FileMoveClusterInformation = 31
|
|
221
|
-
FileQuotaInformation = 32
|
|
222
|
-
FileReparsePointInformation = 33
|
|
223
|
-
FileNetworkOpenInformation = 34
|
|
224
|
-
FileObjectIdInformation = 35
|
|
225
|
-
FileTrackingInformation = 36
|
|
226
|
-
FileOleDirectoryInformation = 37
|
|
227
|
-
FileContentIndexInformation = 38
|
|
228
|
-
FileInheritContentIndexInformation = 37
|
|
229
|
-
FileOleInformation = 39
|
|
230
|
-
FileMaximumInformation = 40
|
|
231
|
-
|
|
232
|
-
# From http://www.nirsoft.net/kernel_struct/vista/EXCEPTION_DISPOSITION.html
|
|
233
|
-
# typedef enum _EXCEPTION_DISPOSITION
|
|
234
|
-
# {
|
|
235
|
-
# ExceptionContinueExecution = 0,
|
|
236
|
-
# ExceptionContinueSearch = 1,
|
|
237
|
-
# ExceptionNestedException = 2,
|
|
238
|
-
# ExceptionCollidedUnwind = 3
|
|
239
|
-
# } EXCEPTION_DISPOSITION;
|
|
240
|
-
ExceptionContinueExecution = 0
|
|
241
|
-
ExceptionContinueSearch = 1
|
|
242
|
-
ExceptionNestedException = 2
|
|
243
|
-
ExceptionCollidedUnwind = 3
|
|
244
|
-
|
|
245
|
-
#--- PROCESS_BASIC_INFORMATION structure --------------------------------------
|
|
246
|
-
|
|
247
|
-
# From MSDN:
|
|
248
|
-
#
|
|
249
|
-
# typedef struct _PROCESS_BASIC_INFORMATION {
|
|
250
|
-
# PVOID Reserved1;
|
|
251
|
-
# PPEB PebBaseAddress;
|
|
252
|
-
# PVOID Reserved2[2];
|
|
253
|
-
# ULONG_PTR UniqueProcessId;
|
|
254
|
-
# PVOID Reserved3;
|
|
255
|
-
# } PROCESS_BASIC_INFORMATION;
|
|
256
|
-
##class PROCESS_BASIC_INFORMATION(Structure):
|
|
257
|
-
## _fields_ = [
|
|
258
|
-
## ("Reserved1", PVOID),
|
|
259
|
-
## ("PebBaseAddress", PPEB),
|
|
260
|
-
## ("Reserved2", PVOID * 2),
|
|
261
|
-
## ("UniqueProcessId", ULONG_PTR),
|
|
262
|
-
## ("Reserved3", PVOID),
|
|
263
|
-
##]
|
|
264
|
-
|
|
265
|
-
# From http://catch22.net/tuts/tips2
|
|
266
|
-
# (Only valid for 32 bits)
|
|
267
|
-
#
|
|
268
|
-
# typedef struct
|
|
269
|
-
# {
|
|
270
|
-
# ULONG ExitStatus;
|
|
271
|
-
# PVOID PebBaseAddress;
|
|
272
|
-
# ULONG AffinityMask;
|
|
273
|
-
# ULONG BasePriority;
|
|
274
|
-
# ULONG_PTR UniqueProcessId;
|
|
275
|
-
# ULONG_PTR InheritedFromUniqueProcessId;
|
|
276
|
-
# } PROCESS_BASIC_INFORMATION;
|
|
277
|
-
|
|
278
|
-
# My own definition follows:
|
|
279
|
-
class PROCESS_BASIC_INFORMATION(Structure):
|
|
280
|
-
_fields_ = [
|
|
281
|
-
("ExitStatus", SIZE_T),
|
|
282
|
-
("PebBaseAddress", PVOID), # PPEB
|
|
283
|
-
("AffinityMask", KAFFINITY),
|
|
284
|
-
("BasePriority", SDWORD),
|
|
285
|
-
("UniqueProcessId", ULONG_PTR),
|
|
286
|
-
("InheritedFromUniqueProcessId", ULONG_PTR),
|
|
287
|
-
]
|
|
288
|
-
|
|
289
|
-
#--- THREAD_BASIC_INFORMATION structure ---------------------------------------
|
|
290
|
-
|
|
291
|
-
# From http://undocumented.ntinternals.net/UserMode/Structures/THREAD_BASIC_INFORMATION.html
|
|
292
|
-
#
|
|
293
|
-
# typedef struct _THREAD_BASIC_INFORMATION {
|
|
294
|
-
# NTSTATUS ExitStatus;
|
|
295
|
-
# PVOID TebBaseAddress;
|
|
296
|
-
# CLIENT_ID ClientId;
|
|
297
|
-
# KAFFINITY AffinityMask;
|
|
298
|
-
# KPRIORITY Priority;
|
|
299
|
-
# KPRIORITY BasePriority;
|
|
300
|
-
# } THREAD_BASIC_INFORMATION, *PTHREAD_BASIC_INFORMATION;
|
|
301
|
-
class THREAD_BASIC_INFORMATION(Structure):
|
|
302
|
-
_fields_ = [
|
|
303
|
-
("ExitStatus", NTSTATUS),
|
|
304
|
-
("TebBaseAddress", PVOID), # PTEB
|
|
305
|
-
("ClientId", CLIENT_ID),
|
|
306
|
-
("AffinityMask", KAFFINITY),
|
|
307
|
-
("Priority", SDWORD),
|
|
308
|
-
("BasePriority", SDWORD),
|
|
309
|
-
]
|
|
310
|
-
|
|
311
|
-
#--- FILE_NAME_INFORMATION structure ------------------------------------------
|
|
312
|
-
|
|
313
|
-
# typedef struct _FILE_NAME_INFORMATION {
|
|
314
|
-
# ULONG FileNameLength;
|
|
315
|
-
# WCHAR FileName[1];
|
|
316
|
-
# } FILE_NAME_INFORMATION, *PFILE_NAME_INFORMATION;
|
|
317
|
-
class FILE_NAME_INFORMATION(Structure):
|
|
318
|
-
_fields_ = [
|
|
319
|
-
("FileNameLength", ULONG),
|
|
320
|
-
("FileName", WCHAR * 1),
|
|
321
|
-
]
|
|
322
|
-
|
|
323
|
-
#--- SYSDBG_MSR structure and constants ---------------------------------------
|
|
324
|
-
|
|
325
|
-
SysDbgReadMsr = 16
|
|
326
|
-
SysDbgWriteMsr = 17
|
|
327
|
-
|
|
328
|
-
class SYSDBG_MSR(Structure):
|
|
329
|
-
_fields_ = [
|
|
330
|
-
("Address", ULONG),
|
|
331
|
-
("Data", ULONGLONG),
|
|
332
|
-
]
|
|
333
|
-
|
|
334
|
-
#--- IO_STATUS_BLOCK structure ------------------------------------------------
|
|
335
|
-
|
|
336
|
-
# typedef struct _IO_STATUS_BLOCK {
|
|
337
|
-
# union {
|
|
338
|
-
# NTSTATUS Status;
|
|
339
|
-
# PVOID Pointer;
|
|
340
|
-
# };
|
|
341
|
-
# ULONG_PTR Information;
|
|
342
|
-
# } IO_STATUS_BLOCK, *PIO_STATUS_BLOCK;
|
|
343
|
-
class IO_STATUS_BLOCK(Structure):
|
|
344
|
-
_fields_ = [
|
|
345
|
-
("Status", NTSTATUS),
|
|
346
|
-
("Information", ULONG_PTR),
|
|
347
|
-
]
|
|
348
|
-
def __get_Pointer(self):
|
|
349
|
-
return PVOID(self.Status)
|
|
350
|
-
def __set_Pointer(self, ptr):
|
|
351
|
-
self.Status = ptr.value
|
|
352
|
-
Pointer = property(__get_Pointer, __set_Pointer)
|
|
353
|
-
|
|
354
|
-
PIO_STATUS_BLOCK = POINTER(IO_STATUS_BLOCK)
|
|
355
|
-
|
|
356
|
-
#--- ntdll.dll ----------------------------------------------------------------
|
|
357
|
-
|
|
358
|
-
# ULONG WINAPI RtlNtStatusToDosError(
|
|
359
|
-
# __in NTSTATUS Status
|
|
360
|
-
# );
|
|
361
|
-
def RtlNtStatusToDosError(Status):
|
|
362
|
-
_RtlNtStatusToDosError = windll.ntdll.RtlNtStatusToDosError
|
|
363
|
-
_RtlNtStatusToDosError.argtypes = [NTSTATUS]
|
|
364
|
-
_RtlNtStatusToDosError.restype = ULONG
|
|
365
|
-
return _RtlNtStatusToDosError(Status)
|
|
366
|
-
|
|
367
|
-
# NTSYSAPI NTSTATUS NTAPI NtSystemDebugControl(
|
|
368
|
-
# IN SYSDBG_COMMAND Command,
|
|
369
|
-
# IN PVOID InputBuffer OPTIONAL,
|
|
370
|
-
# IN ULONG InputBufferLength,
|
|
371
|
-
# OUT PVOID OutputBuffer OPTIONAL,
|
|
372
|
-
# IN ULONG OutputBufferLength,
|
|
373
|
-
# OUT PULONG ReturnLength OPTIONAL
|
|
374
|
-
# );
|
|
375
|
-
def NtSystemDebugControl(Command, InputBuffer = None, InputBufferLength = None, OutputBuffer = None, OutputBufferLength = None):
|
|
376
|
-
_NtSystemDebugControl = windll.ntdll.NtSystemDebugControl
|
|
377
|
-
_NtSystemDebugControl.argtypes = [SYSDBG_COMMAND, PVOID, ULONG, PVOID, ULONG, PULONG]
|
|
378
|
-
_NtSystemDebugControl.restype = NTSTATUS
|
|
379
|
-
|
|
380
|
-
# Validate the input buffer
|
|
381
|
-
if InputBuffer is None:
|
|
382
|
-
if InputBufferLength is None:
|
|
383
|
-
InputBufferLength = 0
|
|
384
|
-
else:
|
|
385
|
-
raise ValueError(
|
|
386
|
-
"Invalid call to NtSystemDebugControl: "
|
|
387
|
-
"input buffer length given but no input buffer!")
|
|
388
|
-
else:
|
|
389
|
-
if InputBufferLength is None:
|
|
390
|
-
InputBufferLength = sizeof(InputBuffer)
|
|
391
|
-
InputBuffer = byref(InputBuffer)
|
|
392
|
-
|
|
393
|
-
# Validate the output buffer
|
|
394
|
-
if OutputBuffer is None:
|
|
395
|
-
if OutputBufferLength is None:
|
|
396
|
-
OutputBufferLength = 0
|
|
397
|
-
else:
|
|
398
|
-
OutputBuffer = ctypes.create_string_buffer("", OutputBufferLength)
|
|
399
|
-
elif OutputBufferLength is None:
|
|
400
|
-
OutputBufferLength = sizeof(OutputBuffer)
|
|
401
|
-
|
|
402
|
-
# Make the call (with an output buffer)
|
|
403
|
-
if OutputBuffer is not None:
|
|
404
|
-
ReturnLength = ULONG(0)
|
|
405
|
-
ntstatus = _NtSystemDebugControl(Command, InputBuffer, InputBufferLength, byref(OutputBuffer), OutputBufferLength, byref(ReturnLength))
|
|
406
|
-
if ntstatus != 0:
|
|
407
|
-
raise ctypes.WinError( RtlNtStatusToDosError(ntstatus) )
|
|
408
|
-
ReturnLength = ReturnLength.value
|
|
409
|
-
if ReturnLength != OutputBufferLength:
|
|
410
|
-
raise ctypes.WinError(ERROR_BAD_LENGTH)
|
|
411
|
-
return OutputBuffer, ReturnLength
|
|
412
|
-
|
|
413
|
-
# Make the call (without an output buffer)
|
|
414
|
-
ntstatus = _NtSystemDebugControl(Command, InputBuffer, InputBufferLength, OutputBuffer, OutputBufferLength, None)
|
|
415
|
-
if ntstatus != 0:
|
|
416
|
-
raise ctypes.WinError( RtlNtStatusToDosError(ntstatus) )
|
|
417
|
-
|
|
418
|
-
ZwSystemDebugControl = NtSystemDebugControl
|
|
419
|
-
|
|
420
|
-
# NTSTATUS WINAPI NtQueryInformationProcess(
|
|
421
|
-
# __in HANDLE ProcessHandle,
|
|
422
|
-
# __in PROCESSINFOCLASS ProcessInformationClass,
|
|
423
|
-
# __out PVOID ProcessInformation,
|
|
424
|
-
# __in ULONG ProcessInformationLength,
|
|
425
|
-
# __out_opt PULONG ReturnLength
|
|
426
|
-
# );
|
|
427
|
-
def NtQueryInformationProcess(ProcessHandle, ProcessInformationClass, ProcessInformationLength = None):
|
|
428
|
-
_NtQueryInformationProcess = windll.ntdll.NtQueryInformationProcess
|
|
429
|
-
_NtQueryInformationProcess.argtypes = [HANDLE, PROCESSINFOCLASS, PVOID, ULONG, PULONG]
|
|
430
|
-
_NtQueryInformationProcess.restype = NTSTATUS
|
|
431
|
-
if ProcessInformationLength is not None:
|
|
432
|
-
ProcessInformation = ctypes.create_string_buffer("", ProcessInformationLength)
|
|
433
|
-
else:
|
|
434
|
-
if ProcessInformationClass == ProcessBasicInformation:
|
|
435
|
-
ProcessInformation = PROCESS_BASIC_INFORMATION()
|
|
436
|
-
ProcessInformationLength = sizeof(PROCESS_BASIC_INFORMATION)
|
|
437
|
-
elif ProcessInformationClass == ProcessImageFileName:
|
|
438
|
-
unicode_buffer = ctypes.create_unicode_buffer(u"", 0x1000)
|
|
439
|
-
ProcessInformation = UNICODE_STRING(0, 0x1000, addressof(unicode_buffer))
|
|
440
|
-
ProcessInformationLength = sizeof(UNICODE_STRING)
|
|
441
|
-
elif ProcessInformationClass in (ProcessDebugPort, ProcessWow64Information, ProcessWx86Information, ProcessHandleCount, ProcessPriorityBoost):
|
|
442
|
-
ProcessInformation = DWORD()
|
|
443
|
-
ProcessInformationLength = sizeof(DWORD)
|
|
444
|
-
else:
|
|
445
|
-
raise Exception("Unknown ProcessInformationClass, use an explicit ProcessInformationLength value instead")
|
|
446
|
-
ReturnLength = ULONG(0)
|
|
447
|
-
ntstatus = _NtQueryInformationProcess(ProcessHandle, ProcessInformationClass, byref(ProcessInformation), ProcessInformationLength, byref(ReturnLength))
|
|
448
|
-
if ntstatus != 0:
|
|
449
|
-
raise ctypes.WinError( RtlNtStatusToDosError(ntstatus) )
|
|
450
|
-
if ProcessInformationClass == ProcessBasicInformation:
|
|
451
|
-
retval = ProcessInformation
|
|
452
|
-
elif ProcessInformationClass in (ProcessDebugPort, ProcessWow64Information, ProcessWx86Information, ProcessHandleCount, ProcessPriorityBoost):
|
|
453
|
-
retval = ProcessInformation.value
|
|
454
|
-
elif ProcessInformationClass == ProcessImageFileName:
|
|
455
|
-
vptr = ctypes.c_void_p(ProcessInformation.Buffer)
|
|
456
|
-
cptr = ctypes.cast( vptr, ctypes.c_wchar * ProcessInformation.Length )
|
|
457
|
-
retval = cptr.contents.raw
|
|
458
|
-
else:
|
|
459
|
-
retval = ProcessInformation.raw[:ReturnLength.value]
|
|
460
|
-
return retval
|
|
461
|
-
|
|
462
|
-
ZwQueryInformationProcess = NtQueryInformationProcess
|
|
463
|
-
|
|
464
|
-
# NTSTATUS WINAPI NtQueryInformationThread(
|
|
465
|
-
# __in HANDLE ThreadHandle,
|
|
466
|
-
# __in THREADINFOCLASS ThreadInformationClass,
|
|
467
|
-
# __out PVOID ThreadInformation,
|
|
468
|
-
# __in ULONG ThreadInformationLength,
|
|
469
|
-
# __out_opt PULONG ReturnLength
|
|
470
|
-
# );
|
|
471
|
-
def NtQueryInformationThread(ThreadHandle, ThreadInformationClass, ThreadInformationLength = None):
|
|
472
|
-
_NtQueryInformationThread = windll.ntdll.NtQueryInformationThread
|
|
473
|
-
_NtQueryInformationThread.argtypes = [HANDLE, THREADINFOCLASS, PVOID, ULONG, PULONG]
|
|
474
|
-
_NtQueryInformationThread.restype = NTSTATUS
|
|
475
|
-
if ThreadInformationLength is not None:
|
|
476
|
-
ThreadInformation = ctypes.create_string_buffer("", ThreadInformationLength)
|
|
477
|
-
else:
|
|
478
|
-
if ThreadInformationClass == ThreadBasicInformation:
|
|
479
|
-
ThreadInformation = THREAD_BASIC_INFORMATION()
|
|
480
|
-
elif ThreadInformationClass == ThreadHideFromDebugger:
|
|
481
|
-
ThreadInformation = BOOLEAN()
|
|
482
|
-
elif ThreadInformationClass == ThreadQuerySetWin32StartAddress:
|
|
483
|
-
ThreadInformation = PVOID()
|
|
484
|
-
elif ThreadInformationClass in (ThreadAmILastThread, ThreadPriorityBoost):
|
|
485
|
-
ThreadInformation = DWORD()
|
|
486
|
-
elif ThreadInformationClass == ThreadPerformanceCount:
|
|
487
|
-
ThreadInformation = LONGLONG() # LARGE_INTEGER
|
|
488
|
-
else:
|
|
489
|
-
raise Exception("Unknown ThreadInformationClass, use an explicit ThreadInformationLength value instead")
|
|
490
|
-
ThreadInformationLength = sizeof(ThreadInformation)
|
|
491
|
-
ReturnLength = ULONG(0)
|
|
492
|
-
ntstatus = _NtQueryInformationThread(ThreadHandle, ThreadInformationClass, byref(ThreadInformation), ThreadInformationLength, byref(ReturnLength))
|
|
493
|
-
if ntstatus != 0:
|
|
494
|
-
raise ctypes.WinError( RtlNtStatusToDosError(ntstatus) )
|
|
495
|
-
if ThreadInformationClass == ThreadBasicInformation:
|
|
496
|
-
retval = ThreadInformation
|
|
497
|
-
elif ThreadInformationClass == ThreadHideFromDebugger:
|
|
498
|
-
retval = bool(ThreadInformation.value)
|
|
499
|
-
elif ThreadInformationClass in (ThreadQuerySetWin32StartAddress, ThreadAmILastThread, ThreadPriorityBoost, ThreadPerformanceCount):
|
|
500
|
-
retval = ThreadInformation.value
|
|
501
|
-
else:
|
|
502
|
-
retval = ThreadInformation.raw[:ReturnLength.value]
|
|
503
|
-
return retval
|
|
504
|
-
|
|
505
|
-
ZwQueryInformationThread = NtQueryInformationThread
|
|
506
|
-
|
|
507
|
-
# NTSTATUS
|
|
508
|
-
# NtQueryInformationFile(
|
|
509
|
-
# IN HANDLE FileHandle,
|
|
510
|
-
# OUT PIO_STATUS_BLOCK IoStatusBlock,
|
|
511
|
-
# OUT PVOID FileInformation,
|
|
512
|
-
# IN ULONG Length,
|
|
513
|
-
# IN FILE_INFORMATION_CLASS FileInformationClass
|
|
514
|
-
# );
|
|
515
|
-
def NtQueryInformationFile(FileHandle, FileInformationClass, FileInformation, Length):
|
|
516
|
-
_NtQueryInformationFile = windll.ntdll.NtQueryInformationFile
|
|
517
|
-
_NtQueryInformationFile.argtypes = [HANDLE, PIO_STATUS_BLOCK, PVOID, ULONG, DWORD]
|
|
518
|
-
_NtQueryInformationFile.restype = NTSTATUS
|
|
519
|
-
IoStatusBlock = IO_STATUS_BLOCK()
|
|
520
|
-
ntstatus = _NtQueryInformationFile(FileHandle, byref(IoStatusBlock), byref(FileInformation), Length, FileInformationClass)
|
|
521
|
-
if ntstatus != 0:
|
|
522
|
-
raise ctypes.WinError( RtlNtStatusToDosError(ntstatus) )
|
|
523
|
-
return IoStatusBlock
|
|
524
|
-
|
|
525
|
-
ZwQueryInformationFile = NtQueryInformationFile
|
|
526
|
-
|
|
527
|
-
# DWORD STDCALL CsrGetProcessId (VOID);
|
|
528
|
-
def CsrGetProcessId():
|
|
529
|
-
_CsrGetProcessId = windll.ntdll.CsrGetProcessId
|
|
530
|
-
_CsrGetProcessId.argtypes = []
|
|
531
|
-
_CsrGetProcessId.restype = DWORD
|
|
532
|
-
return _CsrGetProcessId()
|
|
533
|
-
|
|
534
|
-
#==============================================================================
|
|
535
|
-
# This calculates the list of exported symbols.
|
|
536
|
-
_all = set(vars().keys()).difference(_all)
|
|
537
|
-
__all__ = [_x for _x in _all if not _x.startswith('_')]
|
|
538
|
-
__all__.sort()
|
|
539
|
-
#==============================================================================
|