aboutsummaryrefslogtreecommitdiff
path: root/gdb/ada-lang.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/ada-lang.h
parentf3e606a3db56db3ce1ab172511a4ffe9310a496f (diff)
downloadfsf-binutils-gdb-24c54127c5c4da81b9e6c248c8e918b3564b271a.zip
fsf-binutils-gdb-24c54127c5c4da81b9e6c248c8e918b3564b271a.tar.gz
fsf-binutils-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/ada-lang.h')
-rw-r--r--gdb/ada-lang.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/ada-lang.h b/gdb/ada-lang.h
index 8740916..52d597e 100644
--- a/gdb/ada-lang.h
+++ b/gdb/ada-lang.h
@@ -412,7 +412,7 @@ extern void iterate_over_live_ada_tasks
extern const char *ada_get_tcb_types_info (void);
extern void print_ada_task_info (struct ui_out *uiout,
- char *taskno_str,
+ const char *taskno_str,
struct inferior *inf);
#endif