aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbthread.h
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2019-05-10 07:17:48 -0600
committerTom Tromey <tromey@adacore.com>2019-05-10 07:17:48 -0600
commit24c54127c5c4da81b9e6c248c8e918b3564b271a (patch)
tree04c796e80050928c3f6f02017e5b45e94009cfd4 /gdb/gdbthread.h
parentf3e606a3db56db3ce1ab172511a4ffe9310a496f (diff)
downloadbinutils-24c54127c5c4da81b9e6c248c8e918b3564b271a.zip
binutils-24c54127c5c4da81b9e6c248c8e918b3564b271a.tar.gz
binutils-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/gdbthread.h')
-rw-r--r--gdb/gdbthread.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/gdbthread.h b/gdb/gdbthread.h
index b9d8d7f..ffd4bf5 100644
--- a/gdb/gdbthread.h
+++ b/gdb/gdbthread.h
@@ -632,7 +632,8 @@ extern int print_thread_events;
all attached PIDs are printed. If both REQUESTED_THREADS is not
NULL and PID is not -1, then the thread is printed if it belongs to
the specified process. Otherwise, an error is raised. */
-extern void print_thread_info (struct ui_out *uiout, char *requested_threads,
+extern void print_thread_info (struct ui_out *uiout,
+ const char *requested_threads,
int pid);
/* Save/restore current inferior/thread/frame. */