]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit - gdbserver/utils.cc
gdbsupport: constify some return values in print-utils.{h,cc}
authorSimon Marchi <simon.marchi@polymtl.ca>
Wed, 17 Apr 2024 20:55:28 +0000 (16:55 -0400)
committerSimon Marchi <simon.marchi@polymtl.ca>
Thu, 18 Apr 2024 14:31:54 +0000 (10:31 -0400)
commit523e454fab831e07c83a648c5d07370375a1c376
treeb8d5751d5d9215243ae787c6da707f246f0b65bb
parent31d5afc19d98869aa13c3197f55b8a208fd19da2
gdbsupport: constify some return values in print-utils.{h,cc}

There is no reason the callers of these functions need to change the
returned string, so change the `char *` return types to `const char *`.

Update a few callers to also use `const char *`.

Change-Id: I94adff574d5e1b326e8cc688cf1817a15b408b96
Approved-By: Tom Tromey <tom@tromey.com>
gdb/dwarf2/types.h
gdb/symtab.c
gdbserver/utils.cc
gdbserver/utils.h
gdbsupport/print-utils.cc
gdbsupport/print-utils.h