diff options
author | Michael Snyder <msnyder@vmware.com> | 2007-08-14 21:20:09 +0000 |
---|---|---|
committer | Michael Snyder <msnyder@vmware.com> | 2007-08-14 21:20:09 +0000 |
commit | 1cc6d956c14542a182c11d5a5ee91d5a00a9af4a (patch) | |
tree | 5fd77f93eacf590243fcd88181f6df0508ca5540 /gdb/tui/tui-stack.c | |
parent | 5b6fe301a1769b1a5a062d8fbf17c89556c478e8 (diff) | |
download | gdb-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-stack.c')
-rw-r--r-- | gdb/tui/tui-stack.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index acbe5d7..89b8c1f 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -56,9 +56,9 @@ static void tui_set_locator_info (const char *filename, const char *procname, static void tui_update_command (char *, int); -/* Create the status line to display as much information as we - can on this single line: target name, process number, current - function, current line, current PC, SingleKey mode. */ +/* Create the status line to display as much information as we can on + this single line: target name, process number, current function, + current line, current PC, SingleKey mode. */ static char* tui_make_status_line (struct tui_locator_element *loc) { @@ -145,13 +145,13 @@ tui_make_status_line (struct tui_locator_element *loc) } } - /* Now convert elements to string form */ + /* Now convert elements to string form. */ pname = loc->proc_name; - /* Now create the locator line from the string version - of the elements. We could use sprintf() here but - that wouldn't ensure that we don't overrun the size - of the allocated buffer. strcat_to_buf() will. */ + /* Now create the locator line from the string version of the + elements. We could use sprintf() here but that wouldn't ensure + that we don't overrun the size of the allocated buffer. + strcat_to_buf() will. */ *string = (char) 0; if (target_width > 0) @@ -174,7 +174,7 @@ tui_make_status_line (struct tui_locator_element *loc) strcat_to_buf (string, status_size, " "); } - /* procedure/class name */ + /* Procedure/class name. */ if (proc_width > 0) { if (strlen (pname) > proc_width) @@ -207,9 +207,9 @@ tui_make_status_line (struct tui_locator_element *loc) return string; } -/* Get a printable name for the function at the address. - The symbol name is demangled if demangling is turned on. - Returns a pointer to a static area holding the result. */ +/* Get a printable name for the function at the address. The symbol + name is demangled if demangling is turned on. Returns a pointer to + a static area holding the result. */ static char* tui_get_function_from_frame (struct frame_info *fi) { @@ -220,9 +220,9 @@ tui_get_function_from_frame (struct frame_info *fi) print_address_symbolic (get_frame_pc (fi), stream, demangle, ""); p = tui_file_get_strbuf (stream); - /* Use simple heuristics to isolate the function name. The symbol can - be demangled and we can have function parameters. Remove them because - the status line is too short to display them. */ + /* Use simple heuristics to isolate the function name. The symbol + can be demangled and we can have function parameters. Remove + them because the status line is too short to display them. */ if (*p == '<') p++; strncpy (name, p, sizeof (name)); |