[nemiver/remote-cmdline: 14/14] Avoid error in setting solib-absolute-prefix parm



commit 9fe061659b73583a3c16bdc0e6a7e3e2bf8f87ef
Author: Dodji Seketeli <dodji seketeli org>
Date:   Mon Oct 11 21:05:15 2010 +0200

    Avoid error in setting solib-absolute-prefix parm
    
    	* src/dbgengine/nmv-gdb-engine.cc
    	(GDBEngine::set_solib_prefix_path): Avoid setting solib prefix to
    	an empty string.

 src/dbgengine/nmv-gdb-engine.cc |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/dbgengine/nmv-gdb-engine.cc b/src/dbgengine/nmv-gdb-engine.cc
index f24ad55..d7429ae 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -3481,6 +3481,8 @@ GDBEngine::set_solib_prefix_path (const UString &a_name)
 {
     LOG_FUNCTION_SCOPE_NORMAL_DD;
 
+    if (a_name.empty ())
+      return;
     set_debugger_parameter ("solib-absolute-prefix", a_name);
 }
 



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