12 import MainControlWindow
16 def launchDebugger(clientCmd
, quitonclose
=True):
29 #Determine the closing callback func
31 destroycb
= gtk
.main_quit
33 destroycb
= hideWindows
36 dbgterm
= GdbTerminal
.GdbTerminal(clientCmd
, destroycb
)
39 mainCtrlWnd
= MainControlWindow
.MainControlWindow(dbgterm
, destroycb
)
40 statusWnd
= StatusWindow
.StatusWindow(mainCtrlWnd
, dbgterm
, destroycb
)
43 return dbgterm
, mainCtrlWnd
, statusWnd
47 if __name__
== "__main__":
49 #Check if enough arguments are given
50 if len(sys
.argv
) <= 1:
51 print "Please give executeable to debug."
55 clientCmd
= string
.join(sys
.argv
[1:])
56 launchDebugger(clientCmd
)