forked from Imagelibrary/binutils-gdb
Turn remaining value_contents functions into methods
This turns the remaining value_contents functions -- value_contents, value_contents_all, value_contents_for_printing, and value_contents_for_printing_const -- into methods of value. It also converts the static functions require_not_optimized_out and require_available to be private methods. Approved-By: Simon Marchi <simon.marchi@efficios.com>
This commit is contained in:
@@ -2196,7 +2196,7 @@ setting_cmd (const char *fnname, struct cmd_list_element *showlist,
|
||||
&& type0->code () != TYPE_CODE_STRING)
|
||||
error (_("First argument of %s must be a string."), fnname);
|
||||
|
||||
const char *a0 = (const char *) value_contents (argv[0]).data ();
|
||||
const char *a0 = (const char *) argv[0]->contents ().data ();
|
||||
cmd_list_element *cmd = lookup_cmd (&a0, showlist, "", NULL, -1, 0);
|
||||
|
||||
if (cmd == nullptr || cmd->type != show_cmd)
|
||||
|
||||
Reference in New Issue
Block a user