[Python-checkins] r47127 - sandbox/trunk/pdb/mconnection.py sandbox/trunk/pdb/mpdb.py
matt.fleming
python-checkins at python.org
Tue Jun 27 14:30:11 CEST 2006
Author: matt.fleming
Date: Tue Jun 27 14:30:10 2006
New Revision: 47127
Modified:
sandbox/trunk/pdb/mconnection.py
sandbox/trunk/pdb/mpdb.py
Log:
Fix for sending numbers across a remote connection.
Modified: sandbox/trunk/pdb/mconnection.py
==============================================================================
--- sandbox/trunk/pdb/mconnection.py (original)
+++ sandbox/trunk/pdb/mconnection.py Tue Jun 27 14:30:10 2006
@@ -136,7 +136,7 @@
line = self.input.recv(bufsize)
except socket.error, e:
raise ReadError, e[1]
- if line[-1].isalpha(): line += '\n'
+ if line[-1] != '\n': line += '\n'
return line
def write(self, msg):
Modified: sandbox/trunk/pdb/mpdb.py
==============================================================================
--- sandbox/trunk/pdb/mpdb.py (original)
+++ sandbox/trunk/pdb/mpdb.py Tue Jun 27 14:30:10 2006
@@ -57,6 +57,7 @@
self.threads = []
self.current_thread = threading.currentThread()
self._info_cmds.append('target')
+ self._info_cmds.append('thread')
def _rebind_input(self, new_input):
""" This method rebinds the debugger's input to the object specified
@@ -151,7 +152,6 @@
self.msg('Thread debugging on')
self.debug_thread = True
return
-
def thread_trace_dispatch(self, frame, event, arg):
""" Create an MTracer object so trace the thread. """
@@ -339,7 +339,7 @@
self.target = 'remote'
self._rebind_input(self.connection)
self._rebind_output(self.connection)
-
+
def do_rquit(self, arg):
""" Quit a remote debugging session. The program being executed
is aborted.
More information about the Python-checkins
mailing list