diff options
author | Tom Tromey <tromey@adacore.com> | 2019-05-10 07:17:48 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2019-05-10 07:17:48 -0600 |
commit | 24c54127c5c4da81b9e6c248c8e918b3564b271a (patch) | |
tree | 04c796e80050928c3f6f02017e5b45e94009cfd4 /gdb/thread.c | |
parent | f3e606a3db56db3ce1ab172511a4ffe9310a496f (diff) | |
download | gdb-24c54127c5c4da81b9e6c248c8e918b3564b271a.zip gdb-24c54127c5c4da81b9e6c248c8e918b3564b271a.tar.gz gdb-24c54127c5c4da81b9e6c248c8e918b3564b271a.tar.bz2 |
Two minor constifications
I noticed a couple of spots where a "char *" was used where a
"const char *" made more sense. This patch fixes both of them.
Tested by rebuilding.
gdb/ChangeLog
2019-05-10 Tom Tromey <tromey@adacore.com>
* thread.c (print_thread_info): Make "requested_threads" const.
* gdbthread.h (print_thread_info): Make "requested_threads"
const.
* ada-tasks.c (print_ada_task_info): Make "taskno_str" const.
* ada-lang.h (print_ada_task_info): Make "taskno_str" const.
Diffstat (limited to 'gdb/thread.c')
-rw-r--r-- | gdb/thread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/thread.c b/gdb/thread.c index b6c9b95..9a6a773 100644 --- a/gdb/thread.c +++ b/gdb/thread.c @@ -1191,7 +1191,8 @@ No selected thread. See `help thread'.\n"); /* See gdbthread.h. */ void -print_thread_info (struct ui_out *uiout, char *requested_threads, int pid) +print_thread_info (struct ui_out *uiout, const char *requested_threads, + int pid) { print_thread_info_1 (uiout, requested_threads, 1, pid, 0); } |