• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

GNU Binutils with patches for OS216


Commit MetaInfo

Revision7776370010db4d85a89a0dfde391aa9170ac1bbe (tree)
Time2017-09-27 23:45:06
AuthorTom Tromey <tom@trom...>
CommiterTom Tromey

Log Message

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.

Change Summary

Incremental Difference

--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
11 2017-09-27 Tom Tromey <tom@tromey.com>
22
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+
39 * breakpoint.h (delete_command): Don't declare.
410 * breakpoint.c (delete_command, enable_once_command)
511 (enable_count_command, enable_delete_command, breakpoint_1)
--- a/gdb/printcmd.c
+++ b/gdb/printcmd.c
@@ -1795,7 +1795,7 @@ delete_display (struct display *display)
17951795 ARGS. DATA is passed unmodified to FUNCTION. */
17961796
17971797 static void
1798-map_display_numbers (char *args,
1798+map_display_numbers (const char *args,
17991799 void (*function) (struct display *,
18001800 void *),
18011801 void *data)
@@ -1840,7 +1840,7 @@ do_delete_display (struct display *d, void *data)
18401840 /* "undisplay" command. */
18411841
18421842 static void
1843-undisplay_command (char *args, int from_tty)
1843+undisplay_command (const char *args, int from_tty)
18441844 {
18451845 if (args == NULL)
18461846 {
@@ -2085,7 +2085,7 @@ do_enable_disable_display (struct display *d, void *data)
20852085 commands. ENABLE decides what to do. */
20862086
20872087 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)
20892089 {
20902090 if (args == NULL)
20912091 {
@@ -2102,7 +2102,7 @@ enable_disable_display_command (char *args, int from_tty, int enable)
21022102 /* The "enable display" command. */
21032103
21042104 static void
2105-enable_display_command (char *args, int from_tty)
2105+enable_display_command (const char *args, int from_tty)
21062106 {
21072107 enable_disable_display_command (args, from_tty, 1);
21082108 }
@@ -2110,7 +2110,7 @@ enable_display_command (char *args, int from_tty)
21102110 /* The "disable display" command. */
21112111
21122112 static void
2113-disable_display_command (char *args, int from_tty)
2113+disable_display_command (const char *args, int from_tty)
21142114 {
21152115 enable_disable_display_command (args, from_tty, 0);
21162116 }