diff options
author | Tom Tromey <tromey@redhat.com> | 2013-05-14 20:32:15 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2013-05-14 20:32:15 +0000 |
commit | 503ebb2c1de7f1710f8f9633feb60821f6aac552 (patch) | |
tree | 03a15d09933f1d85308c842b8f96412a581f55dd /gdb/target.c | |
parent | 85e1311a3cf4df0eafe2886a29fc753054b71e37 (diff) | |
download | gdb-503ebb2c1de7f1710f8f9633feb60821f6aac552.zip gdb-503ebb2c1de7f1710f8f9633feb60821f6aac552.tar.gz gdb-503ebb2c1de7f1710f8f9633feb60821f6aac552.tar.bz2 |
* go32-nat.c (go32_terminal_info): Make 'args' const.
* inferior.h (child_terminal_info): Update.
* inflow.c (child_terminal_info): Make 'args' const.
* target.c (default_terminal_info): Make 'args' const.
(debug_to_terminal_save_ours): Likewise.
* target.h (struct target_ops) <to_terminal_info>: Make argument
const.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/gdb/target.c b/gdb/target.c index 8eadd63..1c0134f 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -46,7 +46,7 @@ static void target_info (char *, int); -static void default_terminal_info (char *, int); +static void default_terminal_info (const char *, int); static int default_watchpoint_addr_within_range (struct target_ops *, CORE_ADDR, CORE_ADDR, int); @@ -142,8 +142,6 @@ static void debug_to_terminal_save_ours (void); static void debug_to_terminal_ours (void); -static void debug_to_terminal_info (char *, int); - static void debug_to_load (char *, int); static int debug_to_can_run (void); @@ -557,7 +555,7 @@ noprocess (void) } static void -default_terminal_info (char *args, int from_tty) +default_terminal_info (const char *args, int from_tty) { printf_unfiltered (_("No saved terminal information.\n")); } @@ -4787,7 +4785,7 @@ debug_to_terminal_save_ours (void) } static void -debug_to_terminal_info (char *arg, int from_tty) +debug_to_terminal_info (const char *arg, int from_tty) { debug_target.to_terminal_info (arg, from_tty); |