This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Constify display_tib
- From: Tom Tromey <tromey at sourceware dot org>
- To: gdb-cvs at sourceware dot org
- Date: 27 Sep 2017 14:54:09 -0000
- Subject: [binutils-gdb] Constify display_tib
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=c281872eec33c92db0565afdbfdee91558e5d8e0
commit c281872eec33c92db0565afdbfdee91558e5d8e0
Author: Tom Tromey <tom@tromey.com>
Date: Sat Sep 9 21:22:05 2017 -0600
Constify display_tib
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* windows-tdep.c (display_tib): Constify.
Diff:
---
gdb/ChangeLog | 4 ++++
gdb/windows-tdep.c | 2 +-
2 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 00de27b..676aadd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,9 @@
2017-09-27 Tom Tromey <tom@tromey.com>
+ * windows-tdep.c (display_tib): Constify.
+
+2017-09-27 Tom Tromey <tom@tromey.com>
+
* linux-fork.c (delete_checkpoint_command)
(detach_checkpoint_command): Constify.
diff --git a/gdb/windows-tdep.c b/gdb/windows-tdep.c
index 197d779..49402d3 100644
--- a/gdb/windows-tdep.c
+++ b/gdb/windows-tdep.c
@@ -361,7 +361,7 @@ display_one_tib (ptid_t ptid)
/* Display thread information block of the current thread. */
static void
-display_tib (char * args, int from_tty)
+display_tib (const char * args, int from_tty)
{
if (!ptid_equal (inferior_ptid, null_ptid))
display_one_tib (inferior_ptid);