config root man

Current Path : /usr/local/lib/python2.5/idlelib/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //usr/local/lib/python2.5/idlelib/RemoteDebugger.pyo

³ò
h”Rc@s(dZddkZddkZddkZddkZdZdadZhZhZ	hZ
hZd„Zd„Z
ddd	„ƒYZd
dd„ƒYZd„Zd
dd„ƒYZddd„ƒYZddd„ƒYZdd d„ƒYZdd!d„ƒYZd„Zd„Zd„Zd„ZdS("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ÿÿÿÿNitidb_adaptertgui_adaptercCst|ƒ}|t|<|S(N(tidt
frametable(tframetfid((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt
wrap_frame*s
cCsT|djodSn<|d}t|ƒ}|t|<|d|d|f}|SdS(s0replace info[2], a traceback instance, by its IDiiiN(tNoneRttracebacktable(tinfot	tracebackttraceback_idt
modified_info((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt	wrap_info/s


tGUIProxycBseZd„Zdd„ZRS(cCs||_||_dS(N(tconntoid(tselfRtgui_adap_oid((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt__init__=s	cCs5|ii|id|t|ƒt|ƒfhƒdS(Ntinteraction(Rt
remotecallRRR
(RtmessageRR	((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRAsN(t__name__t
__module__RRR(((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR;s	t
IdbAdaptercBs³eZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
d„Zd
„Zd„Zd„Zd„Zd„Zd„ZRS(cCs
||_dS(N(tidb(RR((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRJscCs|iiƒdS(N(Rtset_step(R((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyROscCs|iiƒdS(N(Rtset_quit(R((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRRscCs|iiƒdS(N(Rtset_continue(R((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRUscCst|}|ii|ƒdS(N(RRtset_next(RRR((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRXs
cCst|}|ii|ƒdS(N(RRt
set_return(RRR((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR\s
c	Csƒt|}|djo
d}nt|}|ii||ƒ\}}g}|D]\}}|t|ƒ|fqQ~}||fS(N(RRRRt	get_stackR(	RRttbidRttbtstacktit_[1]tk((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR `s



3cCs&ddk}|ii||iƒdS(Niÿÿÿÿ(t__main__Rtrunt__dict__(RtcmdR'((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR(mscCs|ii||ƒ}|S(N(Rt	set_break(Rtfilenametlinenotmsg((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR+qscCs|ii||ƒ}|S(N(Rtclear_break(RR,R-R.((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR/uscCs|ii|ƒ}|S(N(Rtclear_all_file_breaks(RR,R.((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR0yscCst|}t||ƒS(N(Rtgetattr(RRtnameR((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt
frame_attrs
cCs-t|}|i}t|ƒ}|t|<|S(N(Rt	f_globalsRt	dicttable(RRRtdicttdid((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt
frame_globalsƒs

	
cCs-t|}|i}t|ƒ}|t|<|S(N(Rtf_localsRR5(RRRR6R7((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pytframe_localsŠs

	
cCs-t|}|i}t|ƒ}|t|<|S(N(Rtf_codeRt	codetable(RRRtcodetcid((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt
frame_code‘s

	
cCst|}|iS(N(R<tco_name(RR>R=((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt	code_namešs
cCst|}|iS(N(R<tco_filename(RR>R=((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt
code_filenamežs
cCst|}|iƒS(N(R5tkeys(RR7R6((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt	dict_keys¤s
cCs$t|}||}t|ƒ}|S(N(R5trepr(RR7tkeyR6tvalue((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt	dict_item¨s

(RRRRRRRRR R(R+R/R0R3R8R:R?RARCRERI(((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRHs&							
												cCs>t||ƒ}ti|ƒ}t|ƒ}|it|ƒtS(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.

    (RtDebuggertIdbRtregistertidb_adap_oid(t
rpchandlerRt	gui_proxyRtidb_adap((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pytstart_debugger±s

t
FrameProxycBs>eZd„Zd„Zd„Zd„Zd„Zd„ZRS(cCs(||_||_d|_h|_dS(NR(t_connt_fidt_oidt
_dictcache(RRR((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRÉs			cCs”|d djo
t|‚n|djo|iƒSn|djo|iƒSn|djo|iƒSn|ii|id|i|fhƒS(Nit_R;R4R9R3(tAttributeErrort_get_f_codet_get_f_globalst
_get_f_localsRSRRURT(RR2((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt__getattr__Ïs



cCs:|ii|id|ifhƒ}t|i|i|ƒS(NR?(RSRRURTt	CodeProxy(RR>((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRYÛs$cCs1|ii|id|ifhƒ}|i|ƒS(NR8(RSRRURTt_get_dict_proxy(RR7((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRZßscCs1|ii|id|ifhƒ}|i|ƒS(NR:(RSRRURTR^(RR7((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR[äscCsK|ii|ƒo|i|Snt|i|i|ƒ}||i|<|S(N(RVthas_keyt	DictProxyRSRU(RR7tdp((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR^és

(RRRR\RYRZR[R^(((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRRÇs					R]cBseZd„Zd„ZRS(cCs||_||_||_dS(N(RSRUt_cid(RRRR>((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRós		cCsj|djo&|ii|id|ifhƒSn|djo&|ii|id|ifhƒSndS(NR@RARBRC(RSRRURb(RR2((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR\øs

(RRRR\(((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR]ñs	R`cBs,eZd„Zd„Zd„Zd„ZRS(cCs||_||_||_dS(N(RSRUt_did(RRRR7((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRs		cCs"|ii|id|ifhƒS(NRE(RSRRURc(R((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRDscCs%|ii|id|i|fhƒS(NRI(RSRRURc(RRG((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyt__getitem__scCs
t|‚dS(N(RX(RR2((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR\s(RRRRDRdR\(((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR`s			t
GUIAdaptercBseZd„Zd„ZRS(cCs||_||_dS(N(Rtgui(RRRf((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRs	cCs,t|i|ƒ}|ii|||ƒdS(N(RRRRfR(RRRRR((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRs(RRRR(((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRes	tIdbProxycBsteZd„Zd„Zd„Zd„Zd„Zd„Zd„Zd„Z	d„Z
d	„Zd
„Zd„Z
RS(cCs||_||_||_dS(N(RRtshell(RRRhR((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR"s		cOs"|ii|i|||ƒ}|S(N(RRR(Rt
methodnametargstkwargsRH((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pytcall'scCs4|ii|id|fhƒ}||ii_dS(NR((Rt
asyncqueueRRhtinterpt
active_seq(RR*tlocalstseq((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR(-s!cCsa|id|i|ƒ\}}g}|D]%\}}|t|i|ƒ|fq)~}||fS(NR (RlRTRRR(RRR!R#R$R%RR&((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR 2s9cCs|idƒdS(NR(Rl(R((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR8scCs|idƒdS(NR(Rl(R((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR;scCs|id|iƒdS(NR(RlRT(RR((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR>scCs|id|iƒdS(NR(RlRT(RR((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRAscCs|idƒdS(NR(Rl(R((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRDscCs|id||ƒ}|S(NR+(Rl(RR,R-R.((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR+GscCs|id||ƒ}|S(NR/(Rl(RR,R-R.((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR/KscCs|id|ƒ}|S(NR0(Rl(RR,R.((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyR0Os(RRRRlR(R RRRRRR+R/R0(((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRg s											cCsb|iddtfhƒat||tƒ}ti||ƒ}t||ƒ}|it|ƒ|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.

    texectstart_the_debugger(RRRMRgRJReRL(trpcclttpyshellt	idb_proxyRftgui_adap((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pytstart_remote_debuggerSscCst|ƒ|itƒdS(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(tclose_subprocess_debuggert
unregisterR(Rt((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pytclose_remote_debuggerks	
cCs|iddtfhƒdS(NRrtstop_the_debugger(RRM(Rt((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pyRywscCs|iddtfhƒ}dS(NRrRs(RR(Rttidb_adap_oid_ret((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pytrestart_subprocess_debuggerzs((((((((t__doc__tsysttypestrpcRJt	debuggingRMRRR5R<RRR
RRRQRRR]R`ReRgRxR{RyR~(((s2/usr/local/lib/python2.5/idlelib/RemoteDebugger.pys<module>s2		
i	*3			

Man Man