GNU Binutils with patches for OS216
Revision | 7776370010db4d85a89a0dfde391aa9170ac1bbe (tree) |
---|---|
Time | 2017-09-27 23:45:06 |
Author | Tom Tromey <tom@trom...> |
Commiter | Tom Tromey |
Constify some commands in printcmd.c
gdb/ChangeLog
2017-09-27 Tom Tromey <tom@tromey.com>
* printcmd.c (map_display_numbers, undisplay_command)
(enable_disable_display_command, enable_display_command)
(disable_display_command): Constify.
@@ -1,5 +1,11 @@ | ||
1 | 1 | 2017-09-27 Tom Tromey <tom@tromey.com> |
2 | 2 | |
3 | + * printcmd.c (map_display_numbers, undisplay_command) | |
4 | + (enable_disable_display_command, enable_display_command) | |
5 | + (disable_display_command): Constify. | |
6 | + | |
7 | +2017-09-27 Tom Tromey <tom@tromey.com> | |
8 | + | |
3 | 9 | * breakpoint.h (delete_command): Don't declare. |
4 | 10 | * breakpoint.c (delete_command, enable_once_command) |
5 | 11 | (enable_count_command, enable_delete_command, breakpoint_1) |
@@ -1795,7 +1795,7 @@ delete_display (struct display *display) | ||
1795 | 1795 | ARGS. DATA is passed unmodified to FUNCTION. */ |
1796 | 1796 | |
1797 | 1797 | static void |
1798 | -map_display_numbers (char *args, | |
1798 | +map_display_numbers (const char *args, | |
1799 | 1799 | void (*function) (struct display *, |
1800 | 1800 | void *), |
1801 | 1801 | void *data) |
@@ -1840,7 +1840,7 @@ do_delete_display (struct display *d, void *data) | ||
1840 | 1840 | /* "undisplay" command. */ |
1841 | 1841 | |
1842 | 1842 | static void |
1843 | -undisplay_command (char *args, int from_tty) | |
1843 | +undisplay_command (const char *args, int from_tty) | |
1844 | 1844 | { |
1845 | 1845 | if (args == NULL) |
1846 | 1846 | { |
@@ -2085,7 +2085,7 @@ do_enable_disable_display (struct display *d, void *data) | ||
2085 | 2085 | commands. ENABLE decides what to do. */ |
2086 | 2086 | |
2087 | 2087 | static void |
2088 | -enable_disable_display_command (char *args, int from_tty, int enable) | |
2088 | +enable_disable_display_command (const char *args, int from_tty, int enable) | |
2089 | 2089 | { |
2090 | 2090 | if (args == NULL) |
2091 | 2091 | { |
@@ -2102,7 +2102,7 @@ enable_disable_display_command (char *args, int from_tty, int enable) | ||
2102 | 2102 | /* The "enable display" command. */ |
2103 | 2103 | |
2104 | 2104 | static void |
2105 | -enable_display_command (char *args, int from_tty) | |
2105 | +enable_display_command (const char *args, int from_tty) | |
2106 | 2106 | { |
2107 | 2107 | enable_disable_display_command (args, from_tty, 1); |
2108 | 2108 | } |
@@ -2110,7 +2110,7 @@ enable_display_command (char *args, int from_tty) | ||
2110 | 2110 | /* The "disable display" command. */ |
2111 | 2111 | |
2112 | 2112 | static void |
2113 | -disable_display_command (char *args, int from_tty) | |
2113 | +disable_display_command (const char *args, int from_tty) | |
2114 | 2114 | { |
2115 | 2115 | enable_disable_display_command (args, from_tty, 0); |
2116 | 2116 | } |