gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] gnash/server debugger.cpp


From: Rob Savoye
Subject: [Gnash-commit] gnash/server debugger.cpp
Date: Tue, 06 Feb 2007 21:16:30 +0000

CVSROOT:        /sources/gnash
Module name:    gnash
Changes by:     Rob Savoye <rsavoye>    07/02/06 21:16:30

Modified files:
        server         : debugger.cpp 

Log message:
        Coorect stupid typo that keeps this from building.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/gnash/server/debugger.cpp?cvsroot=gnash&r1=1.1&r2=1.2

Patches:
Index: debugger.cpp
===================================================================
RCS file: /sources/gnash/gnash/server/debugger.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -b -r1.1 -r1.2
--- debugger.cpp        6 Feb 2007 21:10:08 -0000       1.1
+++ debugger.cpp        6 Feb 2007 21:16:30 -0000       1.2
@@ -527,6 +527,7 @@
 Debugger::lookupSymbol(std::string &name)
 {
     GNASH_REPORT_FUNCTION;
+    if (_symbols.size()) {
     std::map<void *, std::string>::const_iterator it;
     for (it=_symbols.begin(); it != _symbols.end(); it++) {
        if (it->second == name) {
@@ -534,6 +535,7 @@
            return it->first;
        }
     }
+    }
     return static_cast<void *>(0);
 }
 
@@ -551,12 +553,15 @@
 Debugger::lookupSymbol(void *ptr)
 {
     GNASH_REPORT_FUNCTION;
+
+    if (_symbols.size()) {
     std::map<void *, std::string>::const_iterator it;
     it = _symbols.find(ptr);
     if (it != _symbols.end()) {
        dbglogfile << "Found symbol " << it->second.c_str() << " at address: " 
<< ptr << endl;
        return it->second;
     }    
+    }
 }
 
 void




reply via email to

[Prev in Thread] Current Thread [Next in Thread]