This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

[PATCH] spelling correction in gdbarch.


2000-11-08  Michael Snyder  <msnyder@cleaver.cygnus.com>

        * gdbarch.sh: Spelling correction: registrary -> registry.
        * gdbarch.c: Ditto.

Index: gdbarch.sh
===================================================================
RCS file: /cvs/src/src/gdb/gdbarch.sh,v
retrieving revision 1.47
diff -c -r1.47 gdbarch.sh
*** gdbarch.sh	2000/10/30 21:50:57	1.47
--- gdbarch.sh	2000/11/08 23:57:58
***************
*** 1470,1476 ****
  cat <<EOF
  
  
! /* Keep a registrary of per-architecture data-pointers required by GDB
     modules. */
  
  struct gdbarch_data
--- 1470,1476 ----
  cat <<EOF
  
  
! /* Keep a registry of per-architecture data-pointers required by GDB
     modules. */
  
  struct gdbarch_data
***************
*** 1485,1497 ****
    struct gdbarch_data_registration *next;
  };
  
! struct gdbarch_data_registrary
  {
    int nr;
    struct gdbarch_data_registration *registrations;
  };
  
! struct gdbarch_data_registrary gdbarch_data_registrary =
  {
    0, NULL,
  };
--- 1485,1497 ----
    struct gdbarch_data_registration *next;
  };
  
! struct gdbarch_data_registry
  {
    int nr;
    struct gdbarch_data_registration *registrations;
  };
  
! struct gdbarch_data_registry gdbarch_data_registry =
  {
    0, NULL,
  };
***************
*** 1500,1513 ****
  register_gdbarch_data (gdbarch_data_ftype *init)
  {
    struct gdbarch_data_registration **curr;
!   for (curr = &gdbarch_data_registrary.registrations;
         (*curr) != NULL;
         curr = &(*curr)->next);
    (*curr) = XMALLOC (struct gdbarch_data_registration);
    (*curr)->next = NULL;
    (*curr)->init = init;
    (*curr)->data = XMALLOC (struct gdbarch_data);
!   (*curr)->data->index = gdbarch_data_registrary.nr++;
    return (*curr)->data;
  }
  
--- 1500,1513 ----
  register_gdbarch_data (gdbarch_data_ftype *init)
  {
    struct gdbarch_data_registration **curr;
!   for (curr = &gdbarch_data_registry.registrations;
         (*curr) != NULL;
         curr = &(*curr)->next);
    (*curr) = XMALLOC (struct gdbarch_data_registration);
    (*curr)->next = NULL;
    (*curr)->init = init;
    (*curr)->data = XMALLOC (struct gdbarch_data);
!   (*curr)->data->index = gdbarch_data_registry.nr++;
    return (*curr)->data;
  }
  
***************
*** 1518,1526 ****
  init_gdbarch_data (struct gdbarch *gdbarch)
  {
    struct gdbarch_data_registration *rego;
!   gdbarch->nr_data = gdbarch_data_registrary.nr + 1;
    gdbarch->data = xmalloc (sizeof (void*) * gdbarch->nr_data);
!   for (rego = gdbarch_data_registrary.registrations;
         rego != NULL;
         rego = rego->next)
      {
--- 1518,1526 ----
  init_gdbarch_data (struct gdbarch *gdbarch)
  {
    struct gdbarch_data_registration *rego;
!   gdbarch->nr_data = gdbarch_data_registry.nr + 1;
    gdbarch->data = xmalloc (sizeof (void*) * gdbarch->nr_data);
!   for (rego = gdbarch_data_registry.registrations;
         rego != NULL;
         rego = rego->next)
      {
***************
*** 1543,1549 ****
  
  
  
! /* Keep a registrary of swapped data required by GDB modules. */
  
  struct gdbarch_swap
  {
--- 1543,1549 ----
  
  
  
! /* Keep a registry of swapped data required by GDB modules. */
  
  struct gdbarch_swap
  {
***************
*** 1560,1572 ****
    struct gdbarch_swap_registration *next;
  };
  
! struct gdbarch_swap_registrary
  {
    int nr;
    struct gdbarch_swap_registration *registrations;
  };
  
! struct gdbarch_swap_registrary gdbarch_swap_registrary = 
  {
    0, NULL,
  };
--- 1560,1572 ----
    struct gdbarch_swap_registration *next;
  };
  
! struct gdbarch_swap_registry
  {
    int nr;
    struct gdbarch_swap_registration *registrations;
  };
  
! struct gdbarch_swap_registry gdbarch_swap_registry = 
  {
    0, NULL,
  };
***************
*** 1577,1583 ****
  		       gdbarch_swap_ftype *init)
  {
    struct gdbarch_swap_registration **rego;
!   for (rego = &gdbarch_swap_registrary.registrations;
         (*rego) != NULL;
         rego = &(*rego)->next);
    (*rego) = XMALLOC (struct gdbarch_swap_registration);
--- 1577,1583 ----
  		       gdbarch_swap_ftype *init)
  {
    struct gdbarch_swap_registration **rego;
!   for (rego = &gdbarch_swap_registry.registrations;
         (*rego) != NULL;
         rego = &(*rego)->next);
    (*rego) = XMALLOC (struct gdbarch_swap_registration);
***************
*** 1593,1599 ****
  {
    struct gdbarch_swap_registration *rego;
    struct gdbarch_swap **curr = &gdbarch->swap;
!   for (rego = gdbarch_swap_registrary.registrations;
         rego != NULL;
         rego = rego->next)
      {
--- 1593,1599 ----
  {
    struct gdbarch_swap_registration *rego;
    struct gdbarch_swap **curr = &gdbarch->swap;
!   for (rego = gdbarch_swap_registry.registrations;
         rego != NULL;
         rego = rego->next)
      {
***************
*** 1632,1638 ****
  }
  
  
! /* Keep a registrary of the architectures known by GDB. */
  
  struct gdbarch_registration
  {
--- 1632,1638 ----
  }
  
  
! /* Keep a registry of the architectures known by GDB. */
  
  struct gdbarch_registration
  {
***************
*** 1643,1649 ****
    struct gdbarch_registration *next;
  };
  
! static struct gdbarch_registration *gdbarch_registrary = NULL;
  
  static void
  append_name (const char ***buf, int *nr, const char *name)
--- 1643,1649 ----
    struct gdbarch_registration *next;
  };
  
! static struct gdbarch_registration *gdbarch_registry = NULL;
  
  static void
  append_name (const char ***buf, int *nr, const char *name)
***************
*** 1664,1670 ****
        int nr_arches = 0;
        const char **arches = NULL;
        struct gdbarch_registration *rego;
!       for (rego = gdbarch_registrary;
  	   rego != NULL;
  	   rego = rego->next)
  	{
--- 1664,1670 ----
        int nr_arches = 0;
        const char **arches = NULL;
        struct gdbarch_registration *rego;
!       for (rego = gdbarch_registry;
  	   rego != NULL;
  	   rego = rego->next)
  	{
***************
*** 1703,1709 ****
        internal_error ("gdbarch: Attempt to register unknown architecture (%d)", bfd_architecture);
      }
    /* Check that we haven't seen this architecture before */
!   for (curr = &gdbarch_registrary;
         (*curr) != NULL;
         curr = &(*curr)->next)
      {
--- 1703,1709 ----
        internal_error ("gdbarch: Attempt to register unknown architecture (%d)", bfd_architecture);
      }
    /* Check that we haven't seen this architecture before */
!   for (curr = &gdbarch_registry;
         (*curr) != NULL;
         curr = &(*curr)->next)
      {
***************
*** 1800,1806 ****
    /* A default for abfd? */
  
    /* Find the target that knows about this architecture. */
!   for (rego = gdbarch_registrary;
         rego != NULL;
         rego = rego->next)
      if (rego->bfd_architecture == info.bfd_architecture)
--- 1800,1806 ----
    /* A default for abfd? */
  
    /* Find the target that knows about this architecture. */
!   for (rego = gdbarch_registry;
         rego != NULL;
         rego = rego->next)
      if (rego->bfd_architecture == info.bfd_architecture)

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]