[nemiver] Create varobjs for a given frame (Closes: #590833)



commit 0c778cd2cddb1ddc25a18a6e4d53218b84c13bcd
Author: Dodji Seketeli <dodji redhat com>
Date:   Wed Aug 5 13:18:48 2009 +0200

    Create varobjs for a given frame (Closes: #590833)
    
    	* (GDBEngine::create_variable): Let the -var-create
    	command always specify the frame number, instead of the "*"
    	that says "current frame". This is better because we don't always
    	know what the current frame is for GDB. This was creating subtle
    	bugs where Nemiver could not create varobjs for some variables.

 src/dbgengine/nmv-gdb-engine.cc |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/dbgengine/nmv-gdb-engine.cc b/src/dbgengine/nmv-gdb-engine.cc
index 2d6066b..18350f9 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -4124,7 +4124,9 @@ GDBEngine::create_variable (const UString &a_name ,
     }
 
     Command command ("create-variable",
-                     "-var-create - * " + a_name,
+                     "-var-create - "
+                     + UString::from_int (get_current_frame_level ())
+                     + " " + a_name,
                      a_cookie);
     command.tag0 (a_name);
     command.set_slot (a_slot);



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