aboutsummaryrefslogtreecommitdiff
path: root/gdb/arm-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2024-03-21 11:02:10 -0600
committerTom Tromey <tromey@adacore.com>2024-03-22 13:17:43 -0600
commit9f1c94481f875134df177bfc6ba1ad4e4e50b478 (patch)
treeb6237e308403b883f1b6a60e99a621c8f0eec633 /gdb/arm-tdep.c
parent319719bb2921e978738acd408e6b16dabf0e7f5e (diff)
downloadbinutils-9f1c94481f875134df177bfc6ba1ad4e4e50b478.zip
binutils-9f1c94481f875134df177bfc6ba1ad4e4e50b478.tar.gz
binutils-9f1c94481f875134df177bfc6ba1ad4e4e50b478.tar.bz2
Constify get_disassembler_options
This changes get_disassembler_options to return a const char *. Approved-By: John Baldwin <jhb@FreeBSD.org>
Diffstat (limited to 'gdb/arm-tdep.c')
-rw-r--r--gdb/arm-tdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c
index 3b4ae15..82b06f6 100644
--- a/gdb/arm-tdep.c
+++ b/gdb/arm-tdep.c
@@ -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;