Changeset 247
- Timestamp:
- 01/29/07 01:43:27 (2 years ago)
- Author:
- bob
- Message:
-
- Location:
- artub
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r226
|
r247
|
|
| 31 | 31 | gui_adap_oid = "gui_adapter" |
| 32 | 32 | |
| | 33 | import __main__ |
| | 34 | |
| 33 | 35 | #======================================= |
| 34 | 36 | # |
| … |
… |
|
| 108 | 110 | |
| 109 | 111 | def run(self, cmd): |
| 110 | | import __main__ |
| 111 | 112 | self.idb.run(cmd, __main__.__dict__) |
| 112 | 113 | |
-
|
r240
|
r247
|
|
| 416 | 416 | self.owner.debugframe.crust.filling.tree.setText =self.owner.debugframe.crust.filling.text.SetText |
| 417 | 417 | while not self.command: |
| | 418 | print "wait" |
| 418 | 419 | time.sleep(0.2) |
| 419 | 420 | schedule() |
| … |
… |
|
| 625 | 626 | |
| 626 | 627 | while not self.command: |
| | 628 | print "wait" |
| 627 | 629 | if self.end_mainloop: |
| 628 | 630 | return |
| … |
… |
|
| 700 | 702 | import time |
| 701 | 703 | while not self.end_mainloop: |
| | 704 | print "wait" |
| 702 | 705 | schedule() |
| 703 | 706 | clt = self.interp.rpcclt |
| … |
… |
|
| 707 | 710 | response = clt.pollresponse(self.interp.active_seq, wait=0.1) |
| 708 | 711 | except: |
| 709 | | pass |
| 710 | | |
| | 712 | self.on_stop() |
| 711 | 713 | self.go_to_cursor = None |
| 712 | 714 | self.debug_cursor = None |
| … |
… |
|
| 719 | 721 | open(filename, "wt").write(listing) |
| 720 | 722 | idb.run("execfile(" + repr(filename) + "); global exit_now; global quitting; exit_now = quitting = True", None) |
| 721 | | #idb.run("print >> sys.__stderr__, 'Toto' * 1000", None) |
| 722 | 723 | |
| 723 | 724 | """ |
-
|
r235
|
r247
|
|
| 51 | 51 | |
| 52 | 52 | seq, method, args, kwargs = request |
| 53 | | print >> sys.__stderr__, "stackless_task", globals(), __main__.__dict__ |
| 54 | | print >> sys.__stderr__, method, args, kwargs |
| 55 | | print >> sys.__stderr__ |
| | 53 | #print >> sys.__stderr__, "stackless_task", globals(), __main__.__dict__ |
| | 54 | #print >> sys.__stderr__, method, args, kwargs |
| | 55 | #print >> sys.__stderr__ |
| 56 | 56 | type, value, tb = sys.exc_info() |
| 57 | 57 | try: |
| … |
… |
|
| 71 | 71 | rpc.response_queue.put((seq, ret)) |
| 72 | 72 | stackless.schedule() |
| | 73 | try: |
| | 74 | if RemoteDebugger.__main__.exit_now: |
| | 75 | global exit_now |
| | 76 | exit_now = True |
| | 77 | except: print "EXCEPTION" |
| 73 | 78 | |
| 74 | 79 | def main(del_exitfunc=False): |
-
|
r246
|
r247
|
|
| 32 | 32 | PropertiesBarChangeValue(self.resource, self.obj, name, 'None') |
| 33 | 33 | else: |
| 34 | | PropertiesBarChangeValue(self.resource, self.obj, name, value.__name__) |
| | 34 | PropertiesBarChangeValue(self.resource, self.obj, name, value) |
| 35 | 35 | else: |
| 36 | 36 | PropertiesBarChangeValue(self.resource, self.obj, name, value) |
-
|
r208
|
r247
|
|
| 1038 | 1038 | |
| 1039 | 1039 | def getDisplayValue(self): |
| 1040 | | return str(self.valueToIECValue()) |
| | 1040 | klass = self.script.__class__ |
| | 1041 | for parent in klass.__bases__: |
| | 1042 | if getattr(parent, self.value.func_name, None).im_func is self.value: |
| | 1043 | return _('Inherited from ') + parent.__name__ |
| | 1044 | return "Defined line " + str(self.value.func_code.co_firstlineno) # str(self.valueToIECValue()) |
| 1041 | 1045 | |
| 1042 | 1046 | def getValues(self): |
| … |
… |
|
| 1087 | 1091 | """ Return current value, or if a special (*) value is selected, |
| 1088 | 1092 | process it, and return previous 'current value' """ |
| 1089 | | return self.value |
| | 1093 | return self.value.func_code.co_firstlineno #self.value |
| 1090 | 1094 | if self.editorCtrl: |
| 1091 | 1095 | oldVal = defVal = self.value |
Download in other formats:
|
|