aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-layout.c
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-14 21:20:09 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-14 21:20:09 +0000
commit1cc6d956c14542a182c11d5a5ee91d5a00a9af4a (patch)
tree5fd77f93eacf590243fcd88181f6df0508ca5540 /gdb/tui/tui-layout.c
parent5b6fe301a1769b1a5a062d8fbf17c89556c478e8 (diff)
downloadgdb-1cc6d956c14542a182c11d5a5ee91d5a00a9af4a.zip
gdb-1cc6d956c14542a182c11d5a5ee91d5a00a9af4a.tar.gz
gdb-1cc6d956c14542a182c11d5a5ee91d5a00a9af4a.tar.bz2
2007-08-14 Michael Snyder <msnyder@access-company.com>
* tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c, tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c, tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h, tui.c, tui.h: Comment reformatting to coding standard (capitals, spaces after periods, etc).
Diffstat (limited to 'gdb/tui/tui-layout.c')
-rw-r--r--gdb/tui/tui-layout.c41
1 files changed, 20 insertions, 21 deletions
diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c
index 2c349d4..d7cf31b 100644
--- a/gdb/tui/tui-layout.c
+++ b/gdb/tui/tui-layout.c
@@ -84,7 +84,7 @@ show_layout (enum tui_layout_type layout)
/*
** Since the new layout may cause changes in window size, we
** should free the content and reallocate on next display of
- ** source/asm
+ ** source/asm.
*/
tui_free_all_source_wins_content ();
tui_clear_source_windows ();
@@ -95,13 +95,13 @@ show_layout (enum tui_layout_type layout)
}
else
{
- /* First make the current layout be invisible */
+ /* First make the current layout be invisible. */
tui_make_all_invisible ();
tui_make_invisible (tui_locator_win_info_ptr ());
switch (layout)
{
- /* Now show the new layout */
+ /* Now show the new layout. */
case SRC_COMMAND:
show_source_command ();
tui_add_to_source_windows (TUI_SRC_WIN);
@@ -166,7 +166,7 @@ tui_set_layout (enum tui_layout_type layout_type,
{
show_layout (new_layout);
/*
- ** Now determine where focus should be
+ ** Now determine where focus should be.
*/
if (win_with_focus != TUI_CMD_WIN)
{
@@ -178,7 +178,7 @@ tui_set_layout (enum tui_layout_type layout_type,
layout_def->split = FALSE;
break;
case DISASSEM_COMMAND:
- /* the previous layout was not showing
+ /* The previous layout was not showing
** code. this can happen if there is no
** source available:
** 1. if the source file is in another dir OR
@@ -191,7 +191,7 @@ tui_set_layout (enum tui_layout_type layout_type,
layout_def->split = FALSE;
break;
case SRC_DISASSEM_COMMAND:
- /* the previous layout was not showing
+ /* The previous layout was not showing
** code. this can happen if there is no
** source available:
** 1. if the source file is in another dir OR
@@ -214,7 +214,7 @@ tui_set_layout (enum tui_layout_type layout_type,
layout_def->split = FALSE;
break;
case DISASSEM_DATA_COMMAND:
- /* the previous layout was not showing
+ /* The previous layout was not showing
** code. this can happen if there is no
** source available:
** 1. if the source file is in another dir OR
@@ -417,7 +417,7 @@ tui_set_layout_for_display_command (const char *layout_name)
for (i = 0; (i < strlen (layout_name)); i++)
buf_ptr[i] = toupper (buf_ptr[i]);
- /* First check for ambiguous input */
+ /* First check for ambiguous input. */
if (strlen (buf_ptr) <= 1 && (*buf_ptr == 'S' || *buf_ptr == '$'))
{
warning (_("Ambiguous command input."));
@@ -442,11 +442,11 @@ tui_set_layout_for_display_command (const char *layout_name)
else
new_layout = DISASSEM_DATA_COMMAND;
-/* could ifdef out the following code. when compile with -z, there are null
- pointer references that cause a core dump if 'layout regs' is the first
- layout command issued by the user. HP has asked us to hook up this code
- - edie epstein
- */
+ /* Could ifdef out the following code. when compile with
+ -z, there are null pointer references that cause a
+ core dump if 'layout regs' is the first layout
+ command issued by the user. HP has asked us to hook
+ up this code. - edie epstein */
if (subset_compare (buf_ptr, TUI_FLOAT_REGS_NAME))
{
if (TUI_DATA_WIN->detail.data_display_info.regs_display_type !=
@@ -475,15 +475,14 @@ tui_set_layout_for_display_command (const char *layout_name)
dpy_type = TUI_GENERAL_REGS;
}
-/* end of potential ifdef
- */
+ /* End of potential ifdef.
+ */
-/* if ifdefed out code above, then assume that the user wishes to display the
- general purpose registers
- */
+ /* If ifdefed out code above, then assume that the user
+ wishes to display the general purpose registers .
+ */
-/* dpy_type = TUI_GENERAL_REGS;
- */
+ /* dpy_type = TUI_GENERAL_REGS; */
}
else if (subset_compare (buf_ptr, "NEXT"))
new_layout = next_layout ();
@@ -978,7 +977,7 @@ make_source_or_disasm_window (struct tui_win_info **win_info_ptr, enum tui_win_t
}
-/* Show the Source/Command or the Disassem layout. */
+/* Show the Source/Command or the Disassem layout. */
static void
show_source_or_disasm_and_command (enum tui_layout_type layout_type)
{