projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Set varobj->path_expr in varobj_get_path_expr
[deliverable/binutils-gdb.git]
/
gdb
/
c-varobj.c
diff --git
a/gdb/c-varobj.c
b/gdb/c-varobj.c
index 1db0957f38c0e15149c8e610c51194ed08629841..bd0e5fb9d3b4079305c8f4be1780e7c5c9cf6c34 100644
(file)
--- a/
gdb/c-varobj.c
+++ b/
gdb/c-varobj.c
@@
-433,9
+433,11
@@
c_name_of_child (struct varobj *parent, int index)
static char *
c_path_expr_of_child (struct varobj *child)
{
static char *
c_path_expr_of_child (struct varobj *child)
{
+ char *path_expr;
+
c_describe_child (child->parent, child->index, NULL, NULL, NULL,
c_describe_child (child->parent, child->index, NULL, NULL, NULL,
- &
child->
path_expr);
- return
child->
path_expr;
+ &path_expr);
+ return path_expr;
}
static struct value *
}
static struct value *
@@
-906,9
+908,11
@@
cplus_name_of_child (struct varobj *parent, int index)
static char *
cplus_path_expr_of_child (struct varobj *child)
{
static char *
cplus_path_expr_of_child (struct varobj *child)
{
+ char *path_expr;
+
cplus_describe_child (child->parent, child->index, NULL, NULL, NULL,
cplus_describe_child (child->parent, child->index, NULL, NULL, NULL,
- &
child->
path_expr);
- return
child->
path_expr;
+ &path_expr);
+ return path_expr;
}
static struct value *
}
static struct value *
This page took
0.027817 seconds
and
4
git commands to generate.