From: Michael Snyder Date: Sun, 27 Feb 2011 16:25:38 +0000 (+0000) Subject: 2011-02-27 Michael Snyder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=766062f62f6362cdee0cdd33170002adea365fb2;p=binutils-gdb.git 2011-02-27 Michael Snyder * darwin-nat-info.c: Fix comment typo. * dwarf2expr.h: Ditto. * fbsd-nat.c: Ditto. * fbsd-nat.h: Ditto. * frame-unwind.h: Ditto. * frame.h: Ditto. * hppa-hpux-tdep.c: Ditto. * i386-linux-nat.c: Ditto. * linux-nat.c: Ditto. * nbsd-nat.c: Ditto. * nbsd-nat.h: Ditto. * ppc-linux-tdep.c: Ditto. * serial.c: Ditto. * ui-file.h: Ditto. * tui/tui-winsource.c: Ditto. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1ae76bda924..51311e7239d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,21 @@ +2011-02-27 Michael Snyder + + * darwin-nat-info.c: Fix comment typo. + * dwarf2expr.h: Ditto. + * fbsd-nat.c: Ditto. + * fbsd-nat.h: Ditto. + * frame-unwind.h: Ditto. + * frame.h: Ditto. + * hppa-hpux-tdep.c: Ditto. + * i386-linux-nat.c: Ditto. + * linux-nat.c: Ditto. + * nbsd-nat.c: Ditto. + * nbsd-nat.h: Ditto. + * ppc-linux-tdep.c: Ditto. + * serial.c: Ditto. + * ui-file.h: Ditto. + * tui/tui-winsource.c: Ditto. + 2011-02-26 Michael Snyder * breakpoint.c (reattach_breakpoints): Avoid resource leak (ui_file). diff --git a/gdb/darwin-nat-info.c b/gdb/darwin-nat-info.c index b4074d45fd0..79173c5c48c 100644 --- a/gdb/darwin-nat-info.c +++ b/gdb/darwin-nat-info.c @@ -817,7 +817,7 @@ info_mach_exceptions_command (char *args, int from_tty) } else if (strcmp (args, "host") == 0) { - /* FIXME: This need a the privilegied host port! */ + /* FIXME: This need a privilegied host port! */ kret = host_get_exception_ports (darwin_host_self, EXC_MASK_ALL, info.masks, &info.count, info.ports, info.behaviors, info.flavors); diff --git a/gdb/dwarf2expr.h b/gdb/dwarf2expr.h index 620269fb101..78ff53fcf2f 100644 --- a/gdb/dwarf2expr.h +++ b/gdb/dwarf2expr.h @@ -126,7 +126,7 @@ struct dwarf_expr_context /* Location of the value. */ enum dwarf_value_location location; - /* For DWARF_VALUE_LITERAL, a the current literal value's length and + /* For DWARF_VALUE_LITERAL, the current literal value's length and data. For DWARF_VALUE_IMPLICIT_POINTER, LEN is the offset of the target DIE. */ ULONGEST len; diff --git a/gdb/fbsd-nat.c b/gdb/fbsd-nat.c index 3c3053c7428..2072e0e6f4f 100644 --- a/gdb/fbsd-nat.c +++ b/gdb/fbsd-nat.c @@ -34,7 +34,7 @@ #include "elf-bfd.h" #include "fbsd-nat.h" -/* Return a the name of file that can be opened to get the symbols for +/* Return the name of a file that can be opened to get the symbols for the child process identified by PID. */ char * diff --git a/gdb/fbsd-nat.h b/gdb/fbsd-nat.h index 625204e430c..c232a4fa2d9 100644 --- a/gdb/fbsd-nat.h +++ b/gdb/fbsd-nat.h @@ -21,7 +21,7 @@ #ifndef FBSD_NAT_H #define FBSD_NAT_H -/* Return a the name of file that can be opened to get the symbols for +/* Return the name of a file that can be opened to get the symbols for the child process identified by PID. */ extern char *fbsd_pid_to_exec_file (int pid); diff --git a/gdb/frame-unwind.h b/gdb/frame-unwind.h index 2bd8046b138..e449766b253 100644 --- a/gdb/frame-unwind.h +++ b/gdb/frame-unwind.h @@ -148,7 +148,7 @@ struct frame_unwind search list (so it is sniffed before previously registered unwinders). By using a prepend, later calls can install unwinders that override earlier calls. This allows, for instance, an OSABI - to install a a more specific sigtramp unwinder that overrides the + to install a more specific sigtramp unwinder that overrides the traditional brute-force unwinder. */ extern void frame_unwind_prepend_unwinder (struct gdbarch *, const struct frame_unwind *); diff --git a/gdb/frame.h b/gdb/frame.h index 4b50ad9ec07..2c5276e0fa6 100644 --- a/gdb/frame.h +++ b/gdb/frame.h @@ -344,7 +344,7 @@ void set_current_sal_from_frame (struct frame_info *, int); low-level unwinder, the stack part [typically] being the top-of-stack of the previous frame, and the function part being the function's start address. Since the correct identification of a - frameless function requires both the a stack and function address, + frameless function requires both a stack and function address, the old get_frame_base method was not sufficient. get_frame_base_address: get_frame_locals_address: diff --git a/gdb/hppa-hpux-tdep.c b/gdb/hppa-hpux-tdep.c index 4e21c69f5f6..b9761c36bd0 100644 --- a/gdb/hppa-hpux-tdep.c +++ b/gdb/hppa-hpux-tdep.c @@ -1073,7 +1073,7 @@ static CORE_ADDR hppa_hpux_find_dummy_bpaddr (CORE_ADDR addr) { /* In order for us to restore the space register to its starting state, - we need the dummy trampoline to return to the an instruction address in + we need the dummy trampoline to return to an instruction address in the same space as where we started the call. We used to place the breakpoint near the current pc, however, this breaks nested dummy calls as the nested call will hit the breakpoint address and terminate diff --git a/gdb/i386-linux-nat.c b/gdb/i386-linux-nat.c index c3cbbccba03..e32a119b1ad 100644 --- a/gdb/i386-linux-nat.c +++ b/gdb/i386-linux-nat.c @@ -794,7 +794,7 @@ ps_get_thread_area (const struct ps_prochandle *ph, call. Is this function needed? I'm guessing that the `base' is the - address of a a descriptor that libthread_db uses to find the + address of a descriptor that libthread_db uses to find the thread local address base that GDB needs. Perhaps that descriptor is defined by the ABI. Anyway, given that libthread_db calls this function without prompting (gdb diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index bb0dd18d12f..98e85e913a7 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -2828,7 +2828,7 @@ status_callback (struct lwp_info *lp, void *data) if (lp->waitstatus.kind != TARGET_WAITKIND_IGNORE) { /* A ptrace event, like PTRACE_FORK|VFORK|EXEC, syscall event, - or a a pending process exit. Note that `W_EXITCODE(0,0) == + or a pending process exit. Note that `W_EXITCODE(0,0) == 0', so a clean process exit can not be stored pending in lp->status, it is indistinguishable from no-pending-status. */ diff --git a/gdb/nbsd-nat.c b/gdb/nbsd-nat.c index 777a476faf8..50ba3c5a723 100644 --- a/gdb/nbsd-nat.c +++ b/gdb/nbsd-nat.c @@ -24,7 +24,7 @@ #include "nbsd-nat.h" -/* Return a the name of file that can be opened to get the symbols for +/* Return the name of a file that can be opened to get the symbols for the child process identified by PID. */ char * diff --git a/gdb/nbsd-nat.h b/gdb/nbsd-nat.h index 999e4939383..998b69407f2 100644 --- a/gdb/nbsd-nat.h +++ b/gdb/nbsd-nat.h @@ -21,7 +21,7 @@ #ifndef NBSD_NAT_H #define NBSD_NAT_H -/* Return a the name of file that can be opened to get the symbols for +/* Return the name of a file that can be opened to get the symbols for the child process identified by PID. */ extern char *nbsd_pid_to_exec_file (int pid); diff --git a/gdb/ppc-linux-tdep.c b/gdb/ppc-linux-tdep.c index 4800fd4688b..ba70ffdd988 100644 --- a/gdb/ppc-linux-tdep.c +++ b/gdb/ppc-linux-tdep.c @@ -167,7 +167,7 @@ word) to be written back to the now initialized PLT entry thus destroying a portion of the initialization that had occurred only a short time ago. When execution continued, the zero word would be - executed as an instruction an an illegal instruction trap was + executed as an instruction an illegal instruction trap was generated instead. (0 is not a legal instruction.) The fix for this problem was fairly straightforward. The function diff --git a/gdb/serial.c b/gdb/serial.c index 8809abda2f3..954d22a20c8 100644 --- a/gdb/serial.c +++ b/gdb/serial.c @@ -214,7 +214,7 @@ serial_open (const char *name) scb->bufp = scb->buf; scb->error_fd = -1; - /* `...->open (...)' would get expanded by an the open(2) syscall macro. */ + /* `...->open (...)' would get expanded by the open(2) syscall macro. */ if ((*scb->ops->open) (scb, open_name)) { xfree (scb); diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 139c669d82b..9556cf12f0e 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -642,7 +642,7 @@ tui_alloc_source_buffer (struct tui_win_info *win_info) } -/* Answer whether the a particular line number or address is displayed +/* Answer whether a particular line number or address is displayed in the current source window. */ int tui_line_is_displayed (int line, @@ -673,7 +673,7 @@ tui_line_is_displayed (int line, } -/* Answer whether the a particular line number or address is displayed +/* Answer whether a particular line number or address is displayed in the current source window. */ int tui_addr_is_displayed (CORE_ADDR addr, diff --git a/gdb/ui-file.h b/gdb/ui-file.h index 01cee1f1b85..219668a7359 100644 --- a/gdb/ui-file.h +++ b/gdb/ui-file.h @@ -106,7 +106,7 @@ extern struct ui_file *mem_fileopen (void); -/* Open/create a an STDIO based UI_FILE using the already open FILE. */ +/* Open/create a STDIO based UI_FILE using the already open FILE. */ extern struct ui_file *stdio_fileopen (FILE *file); /* Open NAME returning an STDIO based UI_FILE. */