Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Kazu Hirata <kazu@hxi.com>
To: gdb-patches@sources.redhat.com
Subject: [patch] Fix comment typos in h8300/compile.c.
Date: Thu, 20 Dec 2001 08:49:00 -0000	[thread overview]
Message-ID: <20011220084900.7VJ2hGdPK8m8yMu9tK1g8h9Q0G8XCHkh9SUQim1YDIg@z> (raw)

Hi,

Attached is a patch to fix comment typos in h8300/compile.c.
Committed as obvious.

Kazu Hirata

2001-12-20  Kazu Hirata  <kazu@hxi.com>

	* compile.c: Fix comment typos.

Index: compile.c
===================================================================
RCS file: /cvs/src/src/sim/h8300/compile.c,v
retrieving revision 1.6
diff -u -r1.6 compile.c
--- compile.c	2000/08/11 02:03:02	1.6
+++ compile.c	2001/12/20 16:37:59
@@ -466,8 +466,7 @@
 {
   int idx;
 
-  /* find the next cache entry to use */
-
+  /* Find the next cache entry to use.  */
   idx = cpu.cache_top + 1;
   cpu.compiles++;
   if (idx >= cpu.csize)
@@ -476,16 +475,16 @@
     }
   cpu.cache_top = idx;
 
-  /* Throw away its old meaning */
+  /* Throw away its old meaning.  */
   cpu.cache_idx[cpu.cache[idx].oldpc] = 0;
 
-  /* set to new address */
+  /* Set to new address.  */
   cpu.cache[idx].oldpc = pc;
 
-  /* fill in instruction info */
+  /* Fill in instruction info.  */
   decode (pc, cpu.memory + pc, cpu.cache + idx);
 
-  /* point to new cache entry */
+  /* Point to new cache entry.  */
   cpu.cache_idx[pc] = idx;
 }
 
@@ -713,7 +712,7 @@
       cpu.cache_idx = (unsigned short *) calloc (sizeof (short), memory_size);
       cpu.eightbit = (unsigned char *) calloc (sizeof (char), 256);
 
-      /* `msize' must be a power of two */
+      /* `msize' must be a power of two.  */
       if ((memory_size & (memory_size - 1)) != 0)
 	abort ();
       cpu.mask = memory_size - 1;
@@ -760,7 +759,7 @@
 
       lreg[8] = &cpu.regs[8];
 
-      /* initialize the seg registers */
+      /* Initialize the seg registers.  */
       if (!cpu.cache)
 	sim_set_simcache_size (CSIZE);
     }
@@ -1724,7 +1723,7 @@
 sim_trace (sd)
      SIM_DESC sd;
 {
-  /* FIXME: unfinished */
+  /* FIXME: Unfinished.  */
   abort ();
 }
 
@@ -1782,7 +1781,7 @@
 
 #define SP_REGNUM       R7_REGNUM	/* Contains address of top of stack */
 #define FP_REGNUM       R6_REGNUM	/* Contains address of executing
-					   * stack frame */
+					 * stack frame */
 
 #define CCR_REGNUM      8	/* Contains processor status */
 #define PC_REGNUM       9	/* Contains program counter */
@@ -1992,8 +1991,8 @@
 #endif
 }
 
-/* Indicate whether the cpu is an h8/300 or h8/300h.
-   FLAG is non-zero for the h8/300h.  */
+/* Indicate whether the cpu is an H8/300 or H8/300H.
+   FLAG is non-zero for the H8/300H.  */
 
 void
 set_h8300h (flag)
@@ -2001,7 +2000,7 @@
 {
   /* FIXME: Much of the code in sim_load can be moved to sim_open.
      This function being replaced by a sim_open:ARGV configuration
-     option */
+     option.  */
   h8300hmode = flag;
 }
 
@@ -2012,12 +2011,12 @@
      struct _bfd *abfd;
      char **argv;
 {
-  /* FIXME: Much of the code in sim_load can be moved here */
+  /* FIXME: Much of the code in sim_load can be moved here.  */
 
   sim_kind = kind;
   myname = argv[0];
   sim_callback = ptr;
-  /* fudge our descriptor */
+  /* Fudge our descriptor.  */
   return (SIM_DESC) 1;
 }
 
@@ -2026,7 +2025,7 @@
      SIM_DESC sd;
      int quitting;
 {
-  /* nothing to do */
+  /* Nothing to do.  */
 }
 
 /* Called by gdb to load a program into memory.  */
@@ -2040,10 +2039,10 @@
 {
   bfd *prog_bfd;
 
-  /* FIXME: The code below that sets a specific variant of the h8/300
-     being simulated should be moved to sim_open(). */
+  /* FIXME: The code below that sets a specific variant of the H8/300
+     being simulated should be moved to sim_open().  */
 
-  /* See if the file is for the h8/300 or h8/300h.  */
+  /* See if the file is for the H8/300 or H8/300H.  */
   /* ??? This may not be the most efficient way.  The z8k simulator
      does this via a different mechanism (INIT_EXTRA_SYMTAB_INFO).  */
   if (abfd != NULL)
@@ -2070,11 +2069,11 @@
      simulator memory.
 
      The problem is when we do that, we don't know whether we're
-     debugging an h8/300 or h8/300h program.
+     debugging an H8/300 or H8/300H program.
 
      This is the first point at which we can make that determination,
      so we just reallocate memory now; this will also allow us to handle
-     switching between h8/300 and h8/300h programs without exiting
+     switching between H8/300 and H8/300H programs without exiting
      gdb.  */
   if (h8300hmode)
     memory_size = H8300H_MSIZE;
@@ -2092,7 +2091,7 @@
   cpu.cache_idx = (unsigned short *) calloc (sizeof (short), memory_size);
   cpu.eightbit = (unsigned char *) calloc (sizeof (char), 256);
 
-  /* `msize' must be a power of two */
+  /* `msize' must be a power of two.  */
   if ((memory_size & (memory_size - 1)) != 0)
     abort ();
   cpu.mask = memory_size - 1;


             reply	other threads:[~2001-12-20 16:49 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-12-20  8:49 Kazu Hirata [this message]
  -- strict thread matches above, loose matches on Subject: below --
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata
2001-12-20  8:49 Kazu Hirata

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20011220084900.7VJ2hGdPK8m8yMu9tK1g8h9Q0G8XCHkh9SUQim1YDIg@z \
    --to=kazu@hxi.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox