gdb/memattr.c - gdb

Global variables defined

Functions defined

Source code

  1. /* Memory attributes support, for GDB.

  2.    Copyright (C) 2001-2015 Free Software Foundation, Inc.

  3.    This file is part of GDB.

  4.    This program is free software; you can redistribute it and/or modify
  5.    it under the terms of the GNU General Public License as published by
  6.    the Free Software Foundation; either version 3 of the License, or
  7.    (at your option) any later version.

  8.    This program is distributed in the hope that it will be useful,
  9.    but WITHOUT ANY WARRANTY; without even the implied warranty of
  10.    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  11.    GNU General Public License for more details.

  12.    You should have received a copy of the GNU General Public License
  13.    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */

  14. #include "defs.h"
  15. #include "command.h"
  16. #include "gdbcmd.h"
  17. #include "memattr.h"
  18. #include "target.h"
  19. #include "target-dcache.h"
  20. #include "value.h"
  21. #include "language.h"
  22. #include "vec.h"
  23. #include "breakpoint.h"
  24. #include "cli/cli-utils.h"

  25. const struct mem_attrib default_mem_attrib =
  26. {
  27.   MEM_RW,                        /* mode */
  28.   MEM_WIDTH_UNSPECIFIED,
  29.   0,                                /* hwbreak */
  30.   0,                                /* cache */
  31.   0,                                /* verify */
  32.   -1 /* Flash blocksize not specified.  */
  33. };

  34. const struct mem_attrib unknown_mem_attrib =
  35. {
  36.   MEM_NONE,                        /* mode */
  37.   MEM_WIDTH_UNSPECIFIED,
  38.   0,                                /* hwbreak */
  39.   0,                                /* cache */
  40.   0,                                /* verify */
  41.   -1 /* Flash blocksize not specified.  */
  42. };


  43. VEC(mem_region_s) *mem_region_list, *target_mem_region_list;
  44. static int mem_number = 0;

  45. /* If this flag is set, the memory region list should be automatically
  46.    updated from the target.  If it is clear, the list is user-controlled
  47.    and should be left alone.  */
  48. static int mem_use_target = 1;

  49. /* If this flag is set, we have tried to fetch the target memory regions
  50.    since the last time it was invalidated.  If that list is still
  51.    empty, then the target can't supply memory regions.  */
  52. static int target_mem_regions_valid;

  53. /* If this flag is set, gdb will assume that memory ranges not
  54.    specified by the memory map have type MEM_NONE, and will
  55.    emit errors on all accesses to that memory.  */
  56. static int inaccessible_by_default = 1;

  57. static void
  58. show_inaccessible_by_default (struct ui_file *file, int from_tty,
  59.                               struct cmd_list_element *c,
  60.                               const char *value)
  61. {
  62.   if (inaccessible_by_default)
  63.     fprintf_filtered (file, _("Unknown memory addresses will "
  64.                               "be treated as inaccessible.\n"));
  65.   else
  66.     fprintf_filtered (file, _("Unknown memory addresses "
  67.                               "will be treated as RAM.\n"));
  68. }


  69. /* Predicate function which returns true if LHS should sort before RHS
  70.    in a list of memory regions, useful for VEC_lower_bound.  */

  71. static int
  72. mem_region_lessthan (const struct mem_region *lhs,
  73.                      const struct mem_region *rhs)
  74. {
  75.   return lhs->lo < rhs->lo;
  76. }

  77. /* A helper function suitable for qsort, used to sort a
  78.    VEC(mem_region_s) by starting address.  */

  79. int
  80. mem_region_cmp (const void *untyped_lhs, const void *untyped_rhs)
  81. {
  82.   const struct mem_region *lhs = untyped_lhs;
  83.   const struct mem_region *rhs = untyped_rhs;

  84.   if (lhs->lo < rhs->lo)
  85.     return -1;
  86.   else if (lhs->lo == rhs->lo)
  87.     return 0;
  88.   else
  89.     return 1;
  90. }

  91. /* Allocate a new memory region, with default settings.  */

  92. void
  93. mem_region_init (struct mem_region *new)
  94. {
  95.   memset (new, 0, sizeof (struct mem_region));
  96.   new->enabled_p = 1;
  97.   new->attrib = default_mem_attrib;
  98. }

  99. /* This function should be called before any command which would
  100.    modify the memory region list.  It will handle switching from
  101.    a target-provided list to a local list, if necessary.  */

  102. static void
  103. require_user_regions (int from_tty)
  104. {
  105.   struct mem_region *m;
  106.   int ix, length;

  107.   /* If we're already using a user-provided list, nothing to do.  */
  108.   if (!mem_use_target)
  109.     return;

  110.   /* Switch to a user-provided list (possibly a copy of the current
  111.      one).  */
  112.   mem_use_target = 0;

  113.   /* If we don't have a target-provided region list yet, then
  114.      no need to warn.  */
  115.   if (mem_region_list == NULL)
  116.     return;

  117.   /* Otherwise, let the user know how to get back.  */
  118.   if (from_tty)
  119.     warning (_("Switching to manual control of memory regions; use "
  120.                "\"mem auto\" to fetch regions from the target again."));

  121.   /* And create a new list for the user to modify.  */
  122.   length = VEC_length (mem_region_s, target_mem_region_list);
  123.   mem_region_list = VEC_alloc (mem_region_s, length);
  124.   for (ix = 0; VEC_iterate (mem_region_s, target_mem_region_list, ix, m); ix++)
  125.     VEC_quick_push (mem_region_s, mem_region_list, m);
  126. }

  127. /* This function should be called before any command which would
  128.    read the memory region list, other than those which call
  129.    require_user_regions.  It will handle fetching the
  130.    target-provided list, if necessary.  */

  131. static void
  132. require_target_regions (void)
  133. {
  134.   if (mem_use_target && !target_mem_regions_valid)
  135.     {
  136.       target_mem_regions_valid = 1;
  137.       target_mem_region_list = target_memory_map ();
  138.       mem_region_list = target_mem_region_list;
  139.     }
  140. }

  141. static void
  142. create_mem_region (CORE_ADDR lo, CORE_ADDR hi,
  143.                    const struct mem_attrib *attrib)
  144. {
  145.   struct mem_region new;
  146.   int i, ix;

  147.   /* lo == hi is a useless empty region.  */
  148.   if (lo >= hi && hi != 0)
  149.     {
  150.       printf_unfiltered (_("invalid memory region: low >= high\n"));
  151.       return;
  152.     }

  153.   mem_region_init (&new);
  154.   new.lo = lo;
  155.   new.hi = hi;

  156.   ix = VEC_lower_bound (mem_region_s, mem_region_list, &new,
  157.                         mem_region_lessthan);

  158.   /* Check for an overlapping memory region.  We only need to check
  159.      in the vicinity - at most one before and one after the
  160.      insertion point.  */
  161.   for (i = ix - 1; i < ix + 1; i++)
  162.     {
  163.       struct mem_region *n;

  164.       if (i < 0)
  165.         continue;
  166.       if (i >= VEC_length (mem_region_s, mem_region_list))
  167.         continue;

  168.       n = VEC_index (mem_region_s, mem_region_list, i);

  169.       if ((lo >= n->lo && (lo < n->hi || n->hi == 0))
  170.           || (hi > n->lo && (hi <= n->hi || n->hi == 0))
  171.           || (lo <= n->lo && ((hi >= n->hi && n->hi != 0) || hi == 0)))
  172.         {
  173.           printf_unfiltered (_("overlapping memory region\n"));
  174.           return;
  175.         }
  176.     }

  177.   new.number = ++mem_number;
  178.   new.attrib = *attrib;
  179.   VEC_safe_insert (mem_region_s, mem_region_list, ix, &new);
  180. }

  181. /*
  182. * Look up the memory region cooresponding to ADDR.
  183. */
  184. struct mem_region *
  185. lookup_mem_region (CORE_ADDR addr)
  186. {
  187.   static struct mem_region region;
  188.   struct mem_region *m;
  189.   CORE_ADDR lo;
  190.   CORE_ADDR hi;
  191.   int ix;

  192.   require_target_regions ();

  193.   /* First we initialize LO and HI so that they describe the entire
  194.      memory space.  As we process the memory region chain, they are
  195.      redefined to describe the minimal region containing ADDR.  LO
  196.      and HI are used in the case where no memory region is defined
  197.      that contains ADDR.  If a memory region is disabled, it is
  198.      treated as if it does not exist.  The initial values for LO
  199.      and HI represent the bottom and top of memory.  */

  200.   lo = 0;
  201.   hi = 0;

  202.   /* Either find memory range containing ADDRESS, or set LO and HI
  203.      to the nearest boundaries of an existing memory range.

  204.      If we ever want to support a huge list of memory regions, this
  205.      check should be replaced with a binary search (probably using
  206.      VEC_lower_bound).  */
  207.   for (ix = 0; VEC_iterate (mem_region_s, mem_region_list, ix, m); ix++)
  208.     {
  209.       if (m->enabled_p == 1)
  210.         {
  211.           /* If the address is in the memory region, return that
  212.              memory range.  */
  213.           if (addr >= m->lo && (addr < m->hi || m->hi == 0))
  214.             return m;

  215.           /* This (correctly) won't match if m->hi == 0, representing
  216.              the top of the address space, because CORE_ADDR is unsigned;
  217.              no value of LO is less than zero.  */
  218.           if (addr >= m->hi && lo < m->hi)
  219.             lo = m->hi;

  220.           /* This will never set HI to zero; if we're here and ADDR
  221.              is at or below M, and the region starts at zero, then ADDR
  222.              would have been in the region.  */
  223.           if (addr <= m->lo && (hi == 0 || hi > m->lo))
  224.             hi = m->lo;
  225.         }
  226.     }

  227.   /* Because no region was found, we must cons up one based on what
  228.      was learned above.  */
  229.   region.lo = lo;
  230.   region.hi = hi;

  231.   /* When no memory map is defined at all, we always return
  232.      'default_mem_attrib', so that we do not make all memory
  233.      inaccessible for targets that don't provide a memory map.  */
  234.   if (inaccessible_by_default && !VEC_empty (mem_region_s, mem_region_list))
  235.     region.attrib = unknown_mem_attrib;
  236.   else
  237.     region.attrib = default_mem_attrib;

  238.   return &region;
  239. }

  240. /* Invalidate any memory regions fetched from the target.  */

  241. void
  242. invalidate_target_mem_regions (void)
  243. {
  244.   if (!target_mem_regions_valid)
  245.     return;

  246.   target_mem_regions_valid = 0;
  247.   VEC_free (mem_region_s, target_mem_region_list);
  248.   if (mem_use_target)
  249.     mem_region_list = NULL;
  250. }

  251. /* Clear memory region list.  */

  252. static void
  253. mem_clear (void)
  254. {
  255.   VEC_free (mem_region_s, mem_region_list);
  256. }


  257. static void
  258. mem_command (char *args, int from_tty)
  259. {
  260.   CORE_ADDR lo, hi;
  261.   char *tok;
  262.   struct mem_attrib attrib;

  263.   if (!args)
  264.     error_no_arg (_("No mem"));

  265.   /* For "mem auto", switch back to using a target provided list.  */
  266.   if (strcmp (args, "auto") == 0)
  267.     {
  268.       if (mem_use_target)
  269.         return;

  270.       if (mem_region_list != target_mem_region_list)
  271.         {
  272.           mem_clear ();
  273.           mem_region_list = target_mem_region_list;
  274.         }

  275.       mem_use_target = 1;
  276.       return;
  277.     }

  278.   require_user_regions (from_tty);

  279.   tok = strtok (args, " \t");
  280.   if (!tok)
  281.     error (_("no lo address"));
  282.   lo = parse_and_eval_address (tok);

  283.   tok = strtok (NULL, " \t");
  284.   if (!tok)
  285.     error (_("no hi address"));
  286.   hi = parse_and_eval_address (tok);

  287.   attrib = default_mem_attrib;
  288.   while ((tok = strtok (NULL, " \t")) != NULL)
  289.     {
  290.       if (strcmp (tok, "rw") == 0)
  291.         attrib.mode = MEM_RW;
  292.       else if (strcmp (tok, "ro") == 0)
  293.         attrib.mode = MEM_RO;
  294.       else if (strcmp (tok, "wo") == 0)
  295.         attrib.mode = MEM_WO;

  296.       else if (strcmp (tok, "8") == 0)
  297.         attrib.width = MEM_WIDTH_8;
  298.       else if (strcmp (tok, "16") == 0)
  299.         {
  300.           if ((lo % 2 != 0) || (hi % 2 != 0))
  301.             error (_("region bounds not 16 bit aligned"));
  302.           attrib.width = MEM_WIDTH_16;
  303.         }
  304.       else if (strcmp (tok, "32") == 0)
  305.         {
  306.           if ((lo % 4 != 0) || (hi % 4 != 0))
  307.             error (_("region bounds not 32 bit aligned"));
  308.           attrib.width = MEM_WIDTH_32;
  309.         }
  310.       else if (strcmp (tok, "64") == 0)
  311.         {
  312.           if ((lo % 8 != 0) || (hi % 8 != 0))
  313.             error (_("region bounds not 64 bit aligned"));
  314.           attrib.width = MEM_WIDTH_64;
  315.         }

  316. #if 0
  317.       else if (strcmp (tok, "hwbreak") == 0)
  318.         attrib.hwbreak = 1;
  319.       else if (strcmp (tok, "swbreak") == 0)
  320.         attrib.hwbreak = 0;
  321. #endif

  322.       else if (strcmp (tok, "cache") == 0)
  323.         attrib.cache = 1;
  324.       else if (strcmp (tok, "nocache") == 0)
  325.         attrib.cache = 0;

  326. #if 0
  327.       else if (strcmp (tok, "verify") == 0)
  328.         attrib.verify = 1;
  329.       else if (strcmp (tok, "noverify") == 0)
  330.         attrib.verify = 0;
  331. #endif

  332.       else
  333.         error (_("unknown attribute: %s"), tok);
  334.     }

  335.   create_mem_region (lo, hi, &attrib);
  336. }


  337. static void
  338. mem_info_command (char *args, int from_tty)
  339. {
  340.   struct mem_region *m;
  341.   struct mem_attrib *attrib;
  342.   int ix;

  343.   if (mem_use_target)
  344.     printf_filtered (_("Using memory regions provided by the target.\n"));
  345.   else
  346.     printf_filtered (_("Using user-defined memory regions.\n"));

  347.   require_target_regions ();

  348.   if (!mem_region_list)
  349.     {
  350.       printf_unfiltered (_("There are no memory regions defined.\n"));
  351.       return;
  352.     }

  353.   printf_filtered ("Num ");
  354.   printf_filtered ("Enb ");
  355.   printf_filtered ("Low Addr   ");
  356.   if (gdbarch_addr_bit (target_gdbarch ()) > 32)
  357.     printf_filtered ("        ");
  358.   printf_filtered ("High Addr  ");
  359.   if (gdbarch_addr_bit (target_gdbarch ()) > 32)
  360.     printf_filtered ("        ");
  361.   printf_filtered ("Attrs ");
  362.   printf_filtered ("\n");

  363.   for (ix = 0; VEC_iterate (mem_region_s, mem_region_list, ix, m); ix++)
  364.     {
  365.       char *tmp;

  366.       printf_filtered ("%-3d %-3c\t",
  367.                        m->number,
  368.                        m->enabled_p ? 'y' : 'n');
  369.       if (gdbarch_addr_bit (target_gdbarch ()) <= 32)
  370.         tmp = hex_string_custom (m->lo, 8);
  371.       else
  372.         tmp = hex_string_custom (m->lo, 16);

  373.       printf_filtered ("%s ", tmp);

  374.       if (gdbarch_addr_bit (target_gdbarch ()) <= 32)
  375.         {
  376.           if (m->hi == 0)
  377.             tmp = "0x100000000";
  378.           else
  379.             tmp = hex_string_custom (m->hi, 8);
  380.         }
  381.       else
  382.         {
  383.           if (m->hi == 0)
  384.             tmp = "0x10000000000000000";
  385.           else
  386.             tmp = hex_string_custom (m->hi, 16);
  387.         }

  388.       printf_filtered ("%s ", tmp);

  389.       /* Print a token for each attribute.

  390.        * FIXME: Should we output a comma after each token?  It may
  391.        * make it easier for users to read, but we'd lose the ability
  392.        * to cut-and-paste the list of attributes when defining a new
  393.        * region.  Perhaps that is not important.
  394.        *
  395.        * FIXME: If more attributes are added to GDB, the output may
  396.        * become cluttered and difficult for users to read.  At that
  397.        * time, we may want to consider printing tokens only if they
  398.        * are different from the default attribute.  */

  399.       attrib = &m->attrib;
  400.       switch (attrib->mode)
  401.         {
  402.         case MEM_RW:
  403.           printf_filtered ("rw ");
  404.           break;
  405.         case MEM_RO:
  406.           printf_filtered ("ro ");
  407.           break;
  408.         case MEM_WO:
  409.           printf_filtered ("wo ");
  410.           break;
  411.         case MEM_FLASH:
  412.           printf_filtered ("flash blocksize 0x%x ", attrib->blocksize);
  413.           break;
  414.         }

  415.       switch (attrib->width)
  416.         {
  417.         case MEM_WIDTH_8:
  418.           printf_filtered ("8 ");
  419.           break;
  420.         case MEM_WIDTH_16:
  421.           printf_filtered ("16 ");
  422.           break;
  423.         case MEM_WIDTH_32:
  424.           printf_filtered ("32 ");
  425.           break;
  426.         case MEM_WIDTH_64:
  427.           printf_filtered ("64 ");
  428.           break;
  429.         case MEM_WIDTH_UNSPECIFIED:
  430.           break;
  431.         }

  432. #if 0
  433.       if (attrib->hwbreak)
  434.         printf_filtered ("hwbreak");
  435.       else
  436.         printf_filtered ("swbreak");
  437. #endif

  438.       if (attrib->cache)
  439.         printf_filtered ("cache ");
  440.       else
  441.         printf_filtered ("nocache ");

  442. #if 0
  443.       if (attrib->verify)
  444.         printf_filtered ("verify ");
  445.       else
  446.         printf_filtered ("noverify ");
  447. #endif

  448.       printf_filtered ("\n");

  449.       gdb_flush (gdb_stdout);
  450.     }
  451. }


  452. /* Enable the memory region number NUM.  */

  453. static void
  454. mem_enable (int num)
  455. {
  456.   struct mem_region *m;
  457.   int ix;

  458.   for (ix = 0; VEC_iterate (mem_region_s, mem_region_list, ix, m); ix++)
  459.     if (m->number == num)
  460.       {
  461.         m->enabled_p = 1;
  462.         return;
  463.       }
  464.   printf_unfiltered (_("No memory region number %d.\n"), num);
  465. }

  466. static void
  467. mem_enable_command (char *args, int from_tty)
  468. {
  469.   int num;
  470.   struct mem_region *m;
  471.   int ix;

  472.   require_user_regions (from_tty);

  473.   target_dcache_invalidate ();

  474.   if (args == NULL || *args == '\0')
  475.     { /* Enable all mem regions.  */
  476.       for (ix = 0; VEC_iterate (mem_region_s, mem_region_list, ix, m); ix++)
  477.         m->enabled_p = 1;
  478.     }
  479.   else
  480.     {
  481.       struct get_number_or_range_state state;

  482.       init_number_or_range (&state, args);
  483.       while (!state.finished)
  484.         {
  485.           num = get_number_or_range (&state);
  486.           mem_enable (num);
  487.         }
  488.     }
  489. }


  490. /* Disable the memory region number NUM.  */

  491. static void
  492. mem_disable (int num)
  493. {
  494.   struct mem_region *m;
  495.   int ix;

  496.   for (ix = 0; VEC_iterate (mem_region_s, mem_region_list, ix, m); ix++)
  497.     if (m->number == num)
  498.       {
  499.         m->enabled_p = 0;
  500.         return;
  501.       }
  502.   printf_unfiltered (_("No memory region number %d.\n"), num);
  503. }

  504. static void
  505. mem_disable_command (char *args, int from_tty)
  506. {
  507.   int num;
  508.   struct mem_region *m;
  509.   int ix;

  510.   require_user_regions (from_tty);

  511.   target_dcache_invalidate ();

  512.   if (args == NULL || *args == '\0')
  513.     {
  514.       for (ix = 0; VEC_iterate (mem_region_s, mem_region_list, ix, m); ix++)
  515.         m->enabled_p = 0;
  516.     }
  517.   else
  518.     {
  519.       struct get_number_or_range_state state;

  520.       init_number_or_range (&state, args);
  521.       while (!state.finished)
  522.         {
  523.           num = get_number_or_range (&state);
  524.           mem_disable (num);
  525.         }
  526.     }
  527. }

  528. /* Delete the memory region number NUM.  */

  529. static void
  530. mem_delete (int num)
  531. {
  532.   struct mem_region *m;
  533.   int ix;

  534.   if (!mem_region_list)
  535.     {
  536.       printf_unfiltered (_("No memory region number %d.\n"), num);
  537.       return;
  538.     }

  539.   for (ix = 0; VEC_iterate (mem_region_s, mem_region_list, ix, m); ix++)
  540.     if (m->number == num)
  541.       break;

  542.   if (m == NULL)
  543.     {
  544.       printf_unfiltered (_("No memory region number %d.\n"), num);
  545.       return;
  546.     }

  547.   VEC_ordered_remove (mem_region_s, mem_region_list, ix);
  548. }

  549. static void
  550. mem_delete_command (char *args, int from_tty)
  551. {
  552.   int num;
  553.   struct get_number_or_range_state state;

  554.   require_user_regions (from_tty);

  555.   target_dcache_invalidate ();

  556.   if (args == NULL || *args == '\0')
  557.     {
  558.       if (query (_("Delete all memory regions? ")))
  559.         mem_clear ();
  560.       dont_repeat ();
  561.       return;
  562.     }

  563.   init_number_or_range (&state, args);
  564.   while (!state.finished)
  565.     {
  566.       num = get_number_or_range (&state);
  567.       mem_delete (num);
  568.     }

  569.   dont_repeat ();
  570. }

  571. static void
  572. dummy_cmd (char *args, int from_tty)
  573. {
  574. }

  575. extern initialize_file_ftype _initialize_mem; /* -Wmissing-prototype */

  576. static struct cmd_list_element *mem_set_cmdlist;
  577. static struct cmd_list_element *mem_show_cmdlist;

  578. void
  579. _initialize_mem (void)
  580. {
  581.   add_com ("mem", class_vars, mem_command, _("\
  582. Define attributes for memory region or reset memory region handling to\n\
  583. target-based.\n\
  584. Usage: mem auto\n\
  585.        mem <lo addr> <hi addr> [<mode> <width> <cache>],\n\
  586. where <mode>  may be rw (read/write), ro (read-only) or wo (write-only),\n\
  587.       <width> may be 8, 16, 32, or 64, and\n\
  588.       <cache> may be cache or nocache"));

  589.   add_cmd ("mem", class_vars, mem_enable_command, _("\
  590. Enable memory region.\n\
  591. Arguments are the code numbers of the memory regions to enable.\n\
  592. Usage: enable mem <code number>...\n\
  593. Do \"info mem\" to see current list of code numbers."), &enablelist);

  594.   add_cmd ("mem", class_vars, mem_disable_command, _("\
  595. Disable memory region.\n\
  596. Arguments are the code numbers of the memory regions to disable.\n\
  597. Usage: disable mem <code number>...\n\
  598. Do \"info mem\" to see current list of code numbers."), &disablelist);

  599.   add_cmd ("mem", class_vars, mem_delete_command, _("\
  600. Delete memory region.\n\
  601. Arguments are the code numbers of the memory regions to delete.\n\
  602. Usage: delete mem <code number>...\n\
  603. Do \"info mem\" to see current list of code numbers."), &deletelist);

  604.   add_info ("mem", mem_info_command,
  605.             _("Memory region attributes"));

  606.   add_prefix_cmd ("mem", class_vars, dummy_cmd, _("\
  607. Memory regions settings"),
  608.                   &mem_set_cmdlist, "set mem ",
  609.                   0/* allow-unknown */, &setlist);
  610.   add_prefix_cmd ("mem", class_vars, dummy_cmd, _("\
  611. Memory regions settings"),
  612.                   &mem_show_cmdlist, "show mem  ",
  613.                   0/* allow-unknown */, &showlist);

  614.   add_setshow_boolean_cmd ("inaccessible-by-default", no_class,
  615.                                   &inaccessible_by_default, _("\
  616. Set handling of unknown memory regions."), _("\
  617. Show handling of unknown memory regions."), _("\
  618. If on, and some memory map is defined, debugger will emit errors on\n\
  619. accesses to memory not defined in the memory map. If off, accesses to all\n\
  620. memory addresses will be allowed."),
  621.                                 NULL,
  622.                                 show_inaccessible_by_default,
  623.                                 &mem_set_cmdlist,
  624.                                 &mem_show_cmdlist);
  625. }