diff options
author | Simon Marchi <simon.marchi@polymtl.ca> | 2024-04-17 16:55:28 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@polymtl.ca> | 2024-04-18 10:31:54 -0400 |
commit | 523e454fab831e07c83a648c5d07370375a1c376 (patch) | |
tree | b8d5751d5d9215243ae787c6da707f246f0b65bb /gdbserver/utils.h | |
parent | 31d5afc19d98869aa13c3197f55b8a208fd19da2 (diff) | |
download | gdb-523e454fab831e07c83a648c5d07370375a1c376.zip gdb-523e454fab831e07c83a648c5d07370375a1c376.tar.gz gdb-523e454fab831e07c83a648c5d07370375a1c376.tar.bz2 |
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>
Diffstat (limited to 'gdbserver/utils.h')
-rw-r--r-- | gdbserver/utils.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdbserver/utils.h b/gdbserver/utils.h index 7a6d0fd..ad1f82c 100644 --- a/gdbserver/utils.h +++ b/gdbserver/utils.h @@ -19,6 +19,6 @@ #ifndef GDBSERVER_UTILS_H #define GDBSERVER_UTILS_H -char *paddress (CORE_ADDR addr); +const char *paddress (CORE_ADDR addr); #endif /* GDBSERVER_UTILS_H */ |