aboutsummaryrefslogtreecommitdiff
path: root/gdb/unittests/command-def-selftests.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/unittests/command-def-selftests.c')
-rw-r--r--gdb/unittests/command-def-selftests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/unittests/command-def-selftests.c b/gdb/unittests/command-def-selftests.c
index e6aadf3..040e22b 100644
--- a/gdb/unittests/command-def-selftests.c
+++ b/gdb/unittests/command-def-selftests.c
@@ -87,7 +87,7 @@ check_doc (struct cmd_list_element *commandlist, const char *prefix)
{
/* Recursively call ourselves on the subcommand list,
passing the right prefix in. */
- check_doc (*c->prefixlist, c->prefixname);
+ check_doc (*c->prefixlist, c->prefixname ().c_str ());
}
}
}
@@ -159,7 +159,7 @@ traverse_command_structure (struct cmd_list_element **list,
{
/* Recursively call ourselves on the subcommand list,
passing the right prefix in. */
- traverse_command_structure (c->prefixlist, c->prefixname);
+ traverse_command_structure (c->prefixlist, c->prefixname ().c_str ());
}
if (prefixcmd != c->prefix
|| (prefixcmd == nullptr && *list != cmdlist))