diff options
author | Pedro Alves <palves@redhat.com> | 2014-03-14 00:06:45 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2014-03-14 00:06:45 +0000 |
commit | d6b6434614d9752d705d4f3199c3d59330938c66 (patch) | |
tree | 85a8fea4ccecc6bb1696aa5d89397bced5e8a32b /gdb/inf-child.c | |
parent | 221c28eceaa29411ef2f54f02f329c39c757e4ca (diff) | |
download | gdb-d6b6434614d9752d705d4f3199c3d59330938c66.zip gdb-d6b6434614d9752d705d4f3199c3d59330938c66.tar.gz gdb-d6b6434614d9752d705d4f3199c3d59330938c66.tar.bz2 |
Rename native-only terminal related functions.
Looking at target_terminal_inferior etc. in async mode, I realized
that the naming of the terminal_inferior, terminal_ours,
etc. functions doesn't really give a clue that they're meant for the
native target only. This patch renames them. There's already
child_terminal_info using the child_ prefix, and, they're most
prominently installed by inf-child.c, so I went with the child_
prefix. I dropped "inferior" from a couple to make the name match the
corresponding target method.
Tested on x86_64 Fedora 17, and cross built for mingw. I didn't test
gnu-nat.c, but I think the change is as obvious as it gets. I grepped
the tree looking for other potential spots that would need adjustment
but this is all I found. If something breaks, it should be trivial to
fix.
gdb/
2014-03-14 Pedro Alves <palves@redhat.com>
* inferior.h (terminal_ours_for_output): Rename to ...
(child_terminal_ours_for_output): ... this.
(terminal_save_ours): Rename to ...
(child_terminal_save_ours): ... this.
(terminal_ours): Rename to ...
(child_terminal_ours): ... this.
(terminal_inferior): Rename to ...
(child_terminal_inferior): ... this.
(terminal_init_inferior): Rename to ...
(child_terminal_init_inferior): ... this.
(terminal_init_inferior_with_pgrp): Rename to ...
(child_terminal_init_inferior_with_pgrp): ... this.
* inflow.c (terminal_init_inferior_with_pgrp): Rename to ...
(child_terminal_init_with_pgrp): ... this.
(terminal_save_ours): Rename to ...
(child_terminal_save_ours): ... this.
(terminal_init_inferior): Rename to ...
(child_terminal_init): ... this. Adjust.
(terminal_inferior): Rename to ...
(child_terminal_inferior): ... this.
(terminal_ours_for_output): Rename to ...
(child_terminal_ours_for_output): ... this. Adjust.
(terminal_ours): Rename to ...
(child_terminal_ours): ... this.
(terminal_ours_1): Rename to ...
(child_terminal_ours_1): ... this. Adjust.
* linux-nat.c (linux_nat_terminal_inferior): Adjust.
* windows-nat.c (do_initial_windows_stuff): Adjust.
* gnu-nat.c (gnu_terminal_init_inferior): Rename to ...
(gnu_terminal_init): ... this. Adjust.
(gnu_target): Adjust.
* inf-child.c (inf_child_target): Adjust.
Diffstat (limited to 'gdb/inf-child.c')
-rw-r--r-- | gdb/inf-child.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/inf-child.c b/gdb/inf-child.c index cc16b40..282467b 100644 --- a/gdb/inf-child.c +++ b/gdb/inf-child.c @@ -416,11 +416,11 @@ inf_child_target (void) t->to_prepare_to_store = inf_child_prepare_to_store; t->to_insert_breakpoint = memory_insert_breakpoint; t->to_remove_breakpoint = memory_remove_breakpoint; - t->to_terminal_init = terminal_init_inferior; - t->to_terminal_inferior = terminal_inferior; - t->to_terminal_ours_for_output = terminal_ours_for_output; - t->to_terminal_save_ours = terminal_save_ours; - t->to_terminal_ours = terminal_ours; + t->to_terminal_init = child_terminal_init; + t->to_terminal_inferior = child_terminal_inferior; + t->to_terminal_ours_for_output = child_terminal_ours_for_output; + t->to_terminal_save_ours = child_terminal_save_ours; + t->to_terminal_ours = child_terminal_ours; t->to_terminal_info = child_terminal_info; t->to_post_startup_inferior = inf_child_post_startup_inferior; t->to_follow_fork = inf_child_follow_fork; |