aboutsummaryrefslogtreecommitdiff
path: root/gdb/varobj.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2017-05-03 17:26:47 -0600
committerTom Tromey <tom@tromey.com>2017-09-29 21:12:12 -0600
commit2d6960b4568869baaa3cb40f75caed4021938e1c (patch)
tree79b3e0b7d8941661ab76757be74adf5d8b68953b /gdb/varobj.h
parent784c453a4f1aeee237203dd6257a6ed24bee28c3 (diff)
downloadgdb-2d6960b4568869baaa3cb40f75caed4021938e1c.zip
gdb-2d6960b4568869baaa3cb40f75caed4021938e1c.tar.gz
gdb-2d6960b4568869baaa3cb40f75caed4021938e1c.tar.bz2
Remove cleanups from mi-cmd-var.c
This removes some cleanups from mi-cmd-var.c. varobj_gen_name now returns a string, simplifying mi_cmd_var_create. In mi_cmd_var_delete, a string copy is apparently unnecessary, so it's simply removed. gdb/ChangeLog 2017-09-29 Tom Tromey <tom@tromey.com> * varobj.h (varobj_gen_name): Return std::string. * varobj.c (varobj_gen_name): Return std::string. * mi/mi-cmd-var.c (mi_cmd_var_create): Use std::string. (mi_cmd_var_delete): Don't copy "name".
Diffstat (limited to 'gdb/varobj.h')
-rw-r--r--gdb/varobj.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/varobj.h b/gdb/varobj.h
index e35c1b8..0d4a537 100644
--- a/gdb/varobj.h
+++ b/gdb/varobj.h
@@ -233,7 +233,7 @@ extern struct varobj *varobj_create (const char *objname,
const char *expression, CORE_ADDR frame,
enum varobj_type type);
-extern char *varobj_gen_name (void);
+extern std::string varobj_gen_name (void);
extern struct varobj *varobj_get_handle (const char *name);