Constify get_disassembler_options
This changes get_disassembler_options to return a const char *. Approved-By: John Baldwin <jhb@FreeBSD.org>
This commit is contained in:
parent
319719bb29
commit
9f1c94481f
3 changed files with 3 additions and 3 deletions
|
@ -9640,7 +9640,7 @@ show_disassembly_style_sfunc (struct ui_file *file, int from_tty,
|
|||
struct cmd_list_element *c, const char *value)
|
||||
{
|
||||
struct gdbarch *gdbarch = get_current_arch ();
|
||||
char *options = get_disassembler_options (gdbarch);
|
||||
const char *options = get_disassembler_options (gdbarch);
|
||||
const char *style = "";
|
||||
int len = 0;
|
||||
const char *opt;
|
||||
|
|
|
@ -1291,7 +1291,7 @@ gdb_buffered_insn_length (struct gdbarch *gdbarch,
|
|||
return result;
|
||||
}
|
||||
|
||||
char *
|
||||
const char *
|
||||
get_disassembler_options (struct gdbarch *gdbarch)
|
||||
{
|
||||
char **disassembler_options = gdbarch_disassembler_options (gdbarch);
|
||||
|
|
|
@ -385,7 +385,7 @@ extern int gdb_buffered_insn_length (struct gdbarch *gdbarch,
|
|||
|
||||
/* Returns GDBARCH's disassembler options. */
|
||||
|
||||
extern char *get_disassembler_options (struct gdbarch *gdbarch);
|
||||
extern const char *get_disassembler_options (struct gdbarch *gdbarch);
|
||||
|
||||
/* Sets the active gdbarch's disassembler options to OPTIONS. */
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue