diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-08 00:05:16 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-08 00:05:16 +0000 |
commit | 6ba8e26f707d4fe30bf0ce56f521b7d6509b125b (patch) | |
tree | eab1dc218819cd320e2b2e4c0493b9b981811248 /gdb/tui/tui-stack.c | |
parent | 6d26006ec89fecd98f08fd1b81916ac70be94402 (diff) | |
download | gdb-6ba8e26f707d4fe30bf0ce56f521b7d6509b125b.zip gdb-6ba8e26f707d4fe30bf0ce56f521b7d6509b125b.tar.gz gdb-6ba8e26f707d4fe30bf0ce56f521b7d6509b125b.tar.bz2 |
2004-02-07 Andrew Cagney <cagney@redhat.com>
* tui/tui-command.c: Change variable and function names to lower
case.
* tui/tui-data.c, tui/tui-disasm.c: Ditto.
* tui/tui-hooks.c, tui/tui-io.c, tui/tui-layout.c: Ditto.
* tui/tui-regs.c, tui/tui-source.c, tui/tui-stack.c: Ditto.
* tui/tui-win.c, tui/tui-windata.c, tui/tui-wingeneral.c: Ditto.
* tui/tui-winsource.c, tui/tui.c: Ditto.
Diffstat (limited to 'gdb/tui/tui-stack.c')
-rw-r--r-- | gdb/tui/tui-stack.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index 7183bc2..601e2fd 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -244,7 +244,6 @@ tui_get_function_from_frame (struct frame_info *fi) return name; } -/* tuiShowLocatorContent(). */ void tui_show_locator_content (void) { @@ -334,12 +333,12 @@ tui_show_frame_info (struct frame_info *fi) register int start_line, i; CORE_ADDR low; struct tui_gen_win_info * locator = tui_locator_win_info_ptr (); - int sourceAlreadyDisplayed; + int source_already_displayed; struct symtab_and_line sal; find_frame_sal (fi, &sal); - sourceAlreadyDisplayed = sal.symtab != 0 + source_already_displayed = sal.symtab != 0 && tui_source_is_displayed (sal.symtab->filename); tui_set_locator_info (sal.symtab == 0 ? "??" : sal.symtab->filename, tui_get_function_from_frame (fi), @@ -373,7 +372,7 @@ tui_show_frame_info (struct frame_info *fi) { union tui_line_or_address l; l.line_no = start_line; - if (!(sourceAlreadyDisplayed + if (!(source_already_displayed && tui_line_is_displayed (item->locator.line_no, win_info, TRUE))) tui_update_source_window (win_info, sal.symtab, l, TRUE); else @@ -413,9 +412,10 @@ tui_show_frame_info (struct frame_info *fi) } } -/* Function to initialize gdb commands, for tui window stack manipulation. */ +/* Function to initialize gdb commands, for tui window stack + manipulation. */ void -_initialize_tuiStack (void) +_initialize_tui_stack (void) { add_com ("update", class_tui, tui_update_command, "Update the source window and locator to display the current " |