OwlCyberSecurity - MANAGER
Edit File: RemoteDebugger.pyc
� {fc�����������@���s��d��Z��d�d�l�Z�d�d�l�m�Z�d�Z�d�a�d�Z�i��Z�i��Z�i��Z �i��Z �d����Z�d����Z�d �d�d �������YZ �d�d�d�������YZ�d ����Z�d�d�d�������YZ�d�d�d�������YZ�d�d �d�������YZ�d�d!�d�������YZ�d�d"�d�������YZ�d����Z�d����Z�d����Z�d����Z�d�S(#���s���Support for remote Python debugging. Some ASCII art to describe the structure: IN PYTHON SUBPROCESS # IN IDLE PROCESS # # oid='gui_adapter' +----------+ # +------------+ +-----+ | GUIProxy |--remote#call-->| GUIAdapter |--calls-->| GUI | +-----+--calls-->+----------+ # +------------+ +-----+ | Idb | # / +-----+<-calls--+------------+ # +----------+<--calls-/ | IdbAdapter |<--remote#call--| IdbProxy | +------------+ # +----------+ oid='idb_adapter' # The purpose of the Proxy and Adapter classes is to translate certain arguments and return values that cannot be transported through the RPC barrier, in particular frame and traceback objects. i����N(���t���Debuggeri����t���idb_adaptert���gui_adapterc���������C���s���t��|����}�|��t�|�<|�S(���N(���t���idt ���frametable(���t���framet���fid(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt ���wrap_frame(���s���� c���������C���sg���|��d�k�r�d�S|��d�}�t�|�t�j���s2�t���t�|���}�|�t�|�<|��d�|��d�|�f�}�|�Sd�S(���s0���replace info[2], a traceback instance, by its IDi���i����i���N(���t���Nonet ���isinstancet���typest ���TracebackTypet���AssertionErrorR���t���tracebacktable(���t���infot ���tracebackt���traceback_idt ���modified_info(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt ���wrap_info-���s���� t���GUIProxyc�����������B���s���e��Z�d�����Z�d�d���Z�RS(���c���������C���s���|�|��_��|�|��_�d��S(���N(���t���connt���oid(���t���selfR���t���gui_adap_oid(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���__init__;���s���� c���������C���s5���|��j��j�|��j�d�|�t�|���t�|���f�i����d��S(���Nt���interaction(���R���t ���remotecallR���R���R���(���R���t���messageR���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR���?���s����N(���t���__name__t ���__module__R���R���R���(����(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR���9���s��� t ���IdbAdapterc�����������B���s����e��Z�d�����Z�d����Z�d����Z�d����Z�d����Z�d����Z�d����Z�d����Z �d����Z �d ����Z�d ����Z�d����Z �d����Z�d ����Z�d����Z�d����Z�d����Z�d����Z�d����Z�RS(���c���������C���s ���|�|��_��d��S(���N(���t���idb(���R���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR���H���s����c���������C���s���|��j��j����d��S(���N(���R���t���set_step(���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR ���M���s����c���������C���s���|��j��j����d��S(���N(���R���t���set_quit(���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR!���P���s����c���������C���s���|��j��j����d��S(���N(���R���t���set_continue(���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR"���S���s����c���������C���s���t��|�}�|��j�j�|���d��S(���N(���R���R���t���set_next(���R���R���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR#���V���s���� c���������C���s���t��|�}�|��j�j�|���d��S(���N(���R���R���t ���set_return(���R���R���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR$���Z���s���� c��� ������C���sy���t��|�}�|�d��k�r�d��}�n �t�|�}�|��j�j�|�|���\�}�}�g��|�D]�\�}�}�t�|���|�f�^�qK�}�|�|�f�S(���N(���R���R���R ���R���t ���get_stackR���( ���R���R���t���tbidR���t���tbt���stackt���it���frame2t���k(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR%���^���s���� +c���������C���s&���d�d��l��}�|��j�j�|�|�j���d��S(���Ni����(���t���__main__R���t���runt���__dict__(���R���t���cmdR,���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR-���k���s����c���������C���s���|��j��j�|�|���}�|�S(���N(���R���t ���set_break(���R���t���filenamet���linenot���msg(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR0���o���s����c���������C���s���|��j��j�|�|���}�|�S(���N(���R���t���clear_break(���R���R1���R2���R3���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR4���s���s����c���������C���s���|��j��j�|���}�|�S(���N(���R���t���clear_all_file_breaks(���R���R1���R3���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR5���w���s����c���������C���s���t��|�}�t�|�|���S(���N(���R���t���getattr(���R���R���t���nameR���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt ���frame_attr}���s���� c���������C���s-���t��|�}�|�j�}�t�|���}�|�t�|�<|�S(���N(���R���t ���f_globalsR���t ���dicttable(���R���R���R���t���dictt���did(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt ���frame_globals����s ���� c���������C���s-���t��|�}�|�j�}�t�|���}�|�t�|�<|�S(���N(���R���t���f_localsR���R:���(���R���R���R���R;���R<���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���frame_locals����s ���� c���������C���s-���t��|�}�|�j�}�t�|���}�|�t�|�<|�S(���N(���R���t���f_codeR���t ���codetable(���R���R���R���t���codet���cid(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt ���frame_code����s ���� c���������C���s���t��|�}�|�j�S(���N(���RA���t���co_name(���R���RC���RB���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt ���code_name����s���� c���������C���s���t��|�}�|�j�S(���N(���RA���t���co_filename(���R���RC���RB���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt ���code_filename����s���� c���������C���s���t��|�}�|�j����S(���N(���R:���t���keys(���R���R<���R;���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt ���dict_keys����s���� c���������C���s$���t��|�}�|�|�}�t�|���}�|�S(���N(���R:���t���repr(���R���R<���t���keyR;���t���value(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt ���dict_item����s���� (���R���R���R���R ���R!���R"���R#���R$���R%���R-���R0���R4���R5���R8���R=���R?���RD���RF���RH���RJ���RN���(����(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR���F���s&��� c���������C���s>���t��|��|���}�t�j�|���}�t�|���}�|��j�t�|���t�S(���s|��Start the debugger and its RPC link in the Python subprocess Start the subprocess side of the split debugger and set up that side of the RPC link by instantiating the GUIProxy, Idb debugger, and IdbAdapter objects and linking them together. Register the IdbAdapter with the RPCServer to handle RPC requests from the split debugger GUI via the IdbProxy. (���R���R����t���IdbR���t���registert���idb_adap_oid(���t ���rpchandlerR���t ���gui_proxyR���t���idb_adap(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���start_debugger����s ���� t ���FrameProxyc�����������B���s>���e��Z�d�����Z�d����Z�d����Z�d����Z�d����Z�d����Z�RS(���c���������C���s(���|�|��_��|�|��_�d�|��_�i��|��_�d��S(���NR���(���t���_connt���_fidt���_oidt ���_dictcache(���R���R���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR�������s���� c���������C���s����|�d� d�k�r�t��|���n��|�d�k�r2�|��j����S|�d�k�rH�|��j����S|�d�k�r^�|��j����S|��j�j�|��j�d�|��j�|�f�i����S(���Ni���t���_R@���R9���R>���R8���(���t���AttributeErrort���_get_f_codet���_get_f_globalst ���_get_f_localsRW���R���RY���RX���(���R���R7���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���__getattr__����s���� c���������C���s:���|��j��j�|��j�d�|��j�f�i����}�t�|��j��|��j�|���S(���NRD���(���RW���R���RY���RX���t ���CodeProxy(���R���RC���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR]�������s����$c���������C���s1���|��j��j�|��j�d�|��j�f�i����}�|��j�|���S(���NR=���(���RW���R���RY���RX���t���_get_dict_proxy(���R���R<���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR^�������s����c���������C���s1���|��j��j�|��j�d�|��j�f�i����}�|��j�|���S(���NR?���(���RW���R���RY���RX���Rb���(���R���R<���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR_�������s����c���������C���sC���|�|��j��k�r�|��j��|�St�|��j�|��j�|���}�|�|��j��|�<|�S(���N(���RZ���t ���DictProxyRW���RY���(���R���R<���t���dp(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyRb�������s ���� (���R���R���R���R`���R]���R^���R_���Rb���(����(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyRV�������s��� Ra���c�����������B���s���e��Z�d�����Z�d����Z�RS(���c���������C���s���|�|��_��|�|��_�|�|��_�d��S(���N(���RW���RY���t���_cid(���R���R���R���RC���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR�������s���� c���������C���s`���|�d�k�r.�|��j��j�|��j�d�|��j�f�i����S|�d�k�r\�|��j��j�|��j�d�|��j�f�i����Sd��S(���NRE���RF���RG���RH���(���RW���R���RY���Re���(���R���R7���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR`�������s����(���R���R���R���R`���(����(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyRa�������s��� Rc���c�����������B���s,���e��Z�d�����Z�d����Z�d����Z�d����Z�RS(���c���������C���s���|�|��_��|�|��_�|�|��_�d��S(���N(���RW���RY���t���_did(���R���R���R���R<���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR�����s���� c���������C���s"���|��j��j�|��j�d�|��j�f�i����S(���NRJ���(���RW���R���RY���Rf���(���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyRI�����s����c���������C���s%���|��j��j�|��j�d�|��j�|�f�i����S(���NRN���(���RW���R���RY���Rf���(���R���RL���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���__getitem__ ��s����c���������C���s ���t��|���d��S(���N(���R\���(���R���R7���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR`��� ��s����(���R���R���R���RI���Rg���R`���(����(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyRc�������s��� t ���GUIAdapterc�����������B���s���e��Z�d�����Z�d����Z�RS(���c���������C���s���|�|��_��|�|��_�d��S(���N(���R���t���gui(���R���R���Ri���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR�����s���� c���������C���s,���t��|��j�|���}�|��j�j�|�|�|���d��S(���N(���RV���R���Ri���R���(���R���R���R���R���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR�����s����(���R���R���R���R���(����(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyRh�����s��� t���IdbProxyc�����������B���st���e��Z�d�����Z�d����Z�d����Z�d����Z�d����Z�d����Z�d����Z�d����Z �d����Z �d ����Z�d ����Z�d����Z �RS(���c���������C���s���|�|��_��|�|��_�|�|��_�d��S(���N(���R���R���t���shell(���R���R���Rk���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR��� ��s���� c���������O���s"���|��j��j�|��j�|�|�|���}�|�S(���N(���R���R���R���(���R���t ���methodnamet���argst���kwargsRM���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���call%��s����c���������C���s4���|��j��j�|��j�d�|�f�i����}�|�|��j�j�_�d��S(���NR-���(���R���t ���asyncqueueR���Rk���t���interpt ���active_seq(���R���R/���t���localst���seq(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR-���+��s����!c���������C���sY���|��j��d�|�j�|���\�}�}�g��|�D]$�\�}�}�t�|��j�|���|�f�^�q%�}�|�|�f�S(���NR%���(���Ro���RX���RV���R���(���R���R���R&���R(���R)���R���R+���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR%���0��s����1c���������C���s���|��j��d���d��S(���NR"���(���Ro���(���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR"���6��s����c���������C���s���|��j��d���d��S(���NR ���(���Ro���(���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR ���9��s����c���������C���s���|��j��d�|�j���d��S(���NR#���(���Ro���RX���(���R���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR#���<��s����c���������C���s���|��j��d�|�j���d��S(���NR$���(���Ro���RX���(���R���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR$���?��s����c���������C���s���|��j��d���d��S(���NR!���(���Ro���(���R���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR!���B��s����c���������C���s���|��j��d�|�|���}�|�S(���NR0���(���Ro���(���R���R1���R2���R3���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR0���E��s����c���������C���s���|��j��d�|�|���}�|�S(���NR4���(���Ro���(���R���R1���R2���R3���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR4���I��s����c���������C���s���|��j��d�|���}�|�S(���NR5���(���Ro���(���R���R1���R3���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR5���M��s����(���R���R���R���Ro���R-���R%���R"���R ���R#���R$���R!���R0���R4���R5���(����(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyRj�����s��� c���������C���sb���|��j��d�d�t�f�i����a�t�|��|�t���}�t�j�|�|���}�t�|��|���}�|��j�t�|���|�S(���s]��Start the subprocess debugger, initialize the debugger GUI and RPC link Request the RPCServer start the Python subprocess debugger and link. Set up the Idle side of the split debugger by instantiating the IdbProxy, debugger GUI, and debugger GUIAdapter objects and linking them together. Register the GUIAdapter with the RPCClient to handle debugger GUI interaction requests coming from the subprocess debugger via the GUIProxy. The IdbAdapter will pass execution and environment requests coming from the Idle debugger GUI to the subprocess debugger via the IdbProxy. t���exect���start_the_debugger(���R���R���RQ���Rj���R����Rh���RP���(���t���rpccltt���pyshellt ���idb_proxyRi���t���gui_adap(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���start_remote_debuggerQ��s����c���������C���s���t��|����|��j�t���d�S(���s]��Shut down subprocess debugger and Idle side of debugger RPC link Request that the RPCServer shut down the subprocess debugger and link. Unregister the GUIAdapter, which will cause a GC on the Idle process debugger and RPC link objects. (The second reference to the debugger GUI is deleted in PyShell.close_remote_debugger().) N(���t���close_subprocess_debuggert ���unregisterR���(���Rw���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���close_remote_debuggeri��s���� c���������C���s���|��j��d�d�t�f�i����d��S(���NRu���t���stop_the_debugger(���R���RQ���(���Rw���(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyR|���u��s����c���������C���s7���|��j��d�d�t�f�i����}�|�t�k�s3�t�d�����d��S(���NRu���Rv���s ���Idb restarted with different oid(���R���R���RQ���R���(���Rw���t���idb_adap_oid_ret(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���restart_subprocess_debuggerx��s����(����(����(����(����(����(����(����(���t���__doc__R ���t���idlelibR����t ���debuggingRQ���R���R���R:���RA���R ���R���R���R���R���RU���RV���Ra���Rc���Rh���Rj���R{���R~���R|���R����(����(����(����s.���/usr/lib64/python2.7/idlelib/RemoteDebugger.pyt���<module>���s.��� i *3