[PATCH] comment spelling corrections

David Anderson davea@quasar.engr.sgi.com
Thu Oct 7 19:46:00 GMT 2004



The ti_lid field is used: the proposed comment is identical to the comment
in glibc/nptl_db/thread_db.h.

2004-10-07  David Anderson  <davea@sgi.com>

	* regcache.c (regcache_raw_read): Comment was missing "to".
	Extraneous ' removed.
	* gdb_thread_db.h (struct td_thrinfo): ti_lid field 
	comment now describes use.

These comment changes seem 'obvious' but I'll wait at least 48 hours 
in case someone objects or has a better idea.


Index: gdb_thread_db.h
===================================================================
RCS file: /cvs/src/src/gdb/gdb_thread_db.h,v
retrieving revision 1.5
diff -p -u -r1.5 gdb_thread_db.h
--- gdb_thread_db.h     26 Feb 2003 17:24:12 -0000      1.5
+++ gdb_thread_db.h     7 Oct 2004 19:04:32 -0000
@@ -292,7 +292,7 @@ typedef struct td_thrinfo
   intptr_t ti_sp;                      /* Unused.  */
   short int ti_flags;                  /* Unused.  */
   int ti_pri;                          /* Thread priority.  */
-  lwpid_t ti_lid;                      /* Unused.  */
+  lwpid_t ti_lid;                      /* Kernel pid for this thread.  */
   sigset_t ti_sigmask;                 /* Signal mask.  */
   unsigned char ti_traceme;            /* Nonzero if event reporting
            

Index: regcache.c
===================================================================
RCS file: /cvs/src/src/gdb/regcache.c,v
retrieving revision 1.127
diff -p -u -r1.127 regcache.c
--- regcache.c  7 Aug 2004 16:33:54 -0000       1.127
+++ regcache.c  7 Oct 2004 19:12:51 -0000
@@ -616,8 +616,8 @@ regcache_raw_read (struct regcache *regc
        target_fetch_registers (regnum);
 #if 0
       /* FIXME: cagney/2004-08-07: At present a number of targets
-        forget (or didn't know that they needed) set this leading to
-        panics.  Also is the problem that target's need to indicate
+        forget (or didn't know that they needed) to set this leading to
+        panics.  Also is the problem that targets need to indicate
         that a register is in one of the possible states: valid,
         undefined, unknown.  The last of which isn't yet
         possible.  */




Regards,
David B. Anderson davea at sgi dot com http://reality.sgiweb.org/davea



More information about the Gdb-patches mailing list