Make Telnet Debugger Notify About Loaded Files
by J "hplus" W · 11/13/2006 (4:44 pm) · 2 comments
Index: console/telnetDebugger.cc
===================================================================
--- console/telnetDebugger.cc (revision 609)
+++ console/telnetDebugger.cc (working copy)
@@ -501,6 +501,10 @@
if(mState == NotConnected)
return;
+ char buffer[MaxCommandSize];
+ dSprintf(buffer, MaxCommandSize, "LOAD %s\r\n", code->name);
+ send(buffer);
+
// Find the breakpoints for this code block and attach them.
Breakpoint **walk = &mBreakpoints;
Breakpoint *cur;
@@ -517,7 +521,6 @@
{
walk = &cur->next;
- char buffer[MaxCommandSize];
dSprintf(buffer, MaxCommandSize, "BRKCLR %s %d\r\n", cur->fileName, cur->lineNumber);
send(buffer);
@@ -530,8 +533,6 @@
// the client.
if (newLine != cur->lineNumber)
{
- char buffer[MaxCommandSize];
-
// If we already have a line at this breapoint then
// tell the client to clear the breakpoint.
if ( findBreakpoint(cur->fileName, newLine) ) {
Associate Kyle Carter