[nemiver] Allow pointer variable values to be editable
- From: Dodji Seketeli <dodji src gnome org>
- To: svn-commits-list gnome org
- Subject: [nemiver] Allow pointer variable values to be editable
- Date: Fri, 5 Jun 2009 16:23:33 -0400 (EDT)
commit 57686e009c0a5ea88bb9001e7e58c417782d37e9
Author: Dodji Seketeli <dodji redhat com>
Date: Fri Jun 5 22:18:31 2009 +0200
Allow pointer variable values to be editable
* src/dbgengine/nmv-gdb-engine.cc (GDBEngine::is_variable_editable):
Allow pointer variable values to be editable.
---
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 4b2e82e..821a5a7 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -3172,7 +3172,9 @@ GDBEngine::is_variable_editable (const VariableSafePtr a_var) const
// variables.
if (!a_var)
return false;
- if (a_var->members ().empty () && !a_var->has_expected_children ())
+ if (!a_var->value ().empty ()
+ && !const_cast<GDBEngine*>
+ (this)->get_language_trait ().is_variable_compound (a_var))
return true;
return false;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]