]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
s/NO_FUNCTION/NULL/
authorAndrew Cagney <cagney@redhat.com>
Sat, 2 Feb 2002 00:56:37 +0000 (00:56 +0000)
committerAndrew Cagney <cagney@redhat.com>
Sat, 2 Feb 2002 00:56:37 +0000 (00:56 +0000)
gdb/ChangeLog
gdb/cli/cli-cmds.c
gdb/cli/cli-decode.c
gdb/cli/cli-decode.h
gdb/command.h
gdb/top.c
gdb/tracepoint.c
gdb/tui/ChangeLog
gdb/tui/tuiWin.c

index 1c6544c433df20a2b3fa9faba031ec382fe3567f..6e79fd6e9995854edbe5cbeae238967665f7d22e 100644 (file)
@@ -1,3 +1,12 @@
+2002-02-01  Andrew Cagney  <ac131313@redhat.com>
+
+       * command.h (NO_FUNCTION): Delete macro.
+       * cli/cli-decode.h (NO_FUNCTION): Ditto.
+       * top.c (execute_command): Replace NO_FUNCTION with NULL.
+       * tracepoint.c (_initialize_tracepoint): Ditto.
+       * cli/cli-decode.c (add_set_cmd): Ditto.
+       * cli/cli-cmds.c (init_cli_cmds): Ditto.
+       
 2002-02-01  Daniel Jacobowitz  <drow@mvista.com>
 
        * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
index 076d15362bc6a613f84c3ea2417d3df9c2c49dc6..4f033a3e1f7392b5b298b6cb34924d750a40a03b 100644 (file)
@@ -604,24 +604,24 @@ init_cli_cmds (void)
   /* Define the classes of commands.
      They will appear in the help list in the reverse of this order.  */
 
-  add_cmd ("internals", class_maintenance, NO_FUNCTION,
+  add_cmd ("internals", class_maintenance, NULL,
           "Maintenance commands.\n\
 Some gdb commands are provided just for use by gdb maintainers.\n\
 These commands are subject to frequent change, and may not be as\n\
 well documented as user commands.",
           &cmdlist);
-  add_cmd ("obscure", class_obscure, NO_FUNCTION, "Obscure features.", &cmdlist);
-  add_cmd ("aliases", class_alias, NO_FUNCTION, "Aliases of other commands.", &cmdlist);
-  add_cmd ("user-defined", class_user, NO_FUNCTION, "User-defined commands.\n\
+  add_cmd ("obscure", class_obscure, NULL, "Obscure features.", &cmdlist);
+  add_cmd ("aliases", class_alias, NULL, "Aliases of other commands.", &cmdlist);
+  add_cmd ("user-defined", class_user, NULL, "User-defined commands.\n\
 The commands in this class are those defined by the user.\n\
 Use the \"define\" command to define a command.", &cmdlist);
-  add_cmd ("support", class_support, NO_FUNCTION, "Support facilities.", &cmdlist);
+  add_cmd ("support", class_support, NULL, "Support facilities.", &cmdlist);
   if (!dbx_commands)
-    add_cmd ("status", class_info, NO_FUNCTION, "Status inquiries.", &cmdlist);
-  add_cmd ("files", class_files, NO_FUNCTION, "Specifying and examining files.", &cmdlist);
-  add_cmd ("breakpoints", class_breakpoint, NO_FUNCTION, "Making program stop at certain points.", &cmdlist);
-  add_cmd ("data", class_vars, NO_FUNCTION, "Examining data.", &cmdlist);
-  add_cmd ("stack", class_stack, NO_FUNCTION, "Examining the stack.\n\
+    add_cmd ("status", class_info, NULL, "Status inquiries.", &cmdlist);
+  add_cmd ("files", class_files, NULL, "Specifying and examining files.", &cmdlist);
+  add_cmd ("breakpoints", class_breakpoint, NULL, "Making program stop at certain points.", &cmdlist);
+  add_cmd ("data", class_vars, NULL, "Examining data.", &cmdlist);
+  add_cmd ("stack", class_stack, NULL, "Examining the stack.\n\
 The stack is made up of stack frames.  Gdb assigns numbers to stack frames\n\
 counting from zero for the innermost (currently executing) frame.\n\n\
 At any time gdb identifies one frame as the \"selected\" frame.\n\
@@ -629,7 +629,7 @@ Variable lookups are done with respect to the selected frame.\n\
 When the program being debugged stops, gdb selects the innermost frame.\n\
 The commands below can be used to select other frames by number or address.",
           &cmdlist);
-  add_cmd ("running", class_run, NO_FUNCTION, "Running the program.", &cmdlist);
+  add_cmd ("running", class_run, NULL, "Running the program.", &cmdlist);
 
   /* Define general commands. */
 
index 0b7839c7e422aaccae3a3257e37ea77169d1133b..3821fafb186f1bbb924ef5ad28de2ebb07902508 100644 (file)
@@ -237,13 +237,12 @@ add_set_cmd (char *name,
             char *doc,
             struct cmd_list_element **list)
 {
-  struct cmd_list_element *c
-  = add_cmd (name, class, NO_FUNCTION, doc, list);
+  struct cmd_list_element *c = add_cmd (name, class, NULL, doc, list);
 
   c->type = set_cmd;
   c->var_type = var_type;
   c->var = var;
-  /* This needs to be something besides NO_FUNCTION so that this isn't
+  /* This needs to be something besides NULL so that this isn't
      treated as a help class.  */
   c->function.sfunc = empty_sfunc;
   return c;
index e9e354eec0f07bb98f81063f02ff5ca4c7192467..9e1e0944cb04532882a1c6a21cf656b42a95db0a 100644 (file)
@@ -120,9 +120,8 @@ struct cmd_list_element
     /* Command class; class values are chosen by application program.  */
     enum command_class class;
 
-    /* Function definition of this command.
-       NO_FUNCTION for command class names and for help topics that
-       are not really commands.  */
+    /* Function definition of this command.  NULL for command class
+       names and for help topics that are not really commands.  */
     union
       {
        /* If type is not_set_cmd, call it like this:  */
@@ -133,7 +132,6 @@ struct cmd_list_element
        void (*sfunc) (char *args, int from_tty, struct cmd_list_element * c);
       }
     function;
-#define NO_FUNCTION ((void (*) (char *args, int from_tty)) 0)
 
     /* Documentation of this command (or help topic).
        First line is brief documentation; remaining lines form, with it,
index ffbabba061ecaded73f7e9df245ea2da4b46218b..205fb903531636f09225b000cddae4ef751e211d 100644 (file)
@@ -126,9 +126,8 @@ struct cmd_list_element
     /* Command class; class values are chosen by application program.  */
     enum command_class class;
 
-    /* Function definition of this command.
-       NO_FUNCTION for command class names and for help topics that
-       are not really commands.  */
+    /* Function definition of this command.  NULL for command class
+       names and for help topics that are not really commands.  */
     union
       {
        /* If type is not_set_cmd, call it like this:  */
@@ -139,7 +138,6 @@ struct cmd_list_element
        void (*sfunc) (char *args, int from_tty, struct cmd_list_element * c);
       }
     function;
-#define NO_FUNCTION ((void (*) (char *args, int from_tty)) 0)
 
     /* Documentation of this command (or help topic).
        First line is brief documentation; remaining lines form, with it,
index 6ed92e8edb60dce60e6ec404796e9383c040e877..7552de7fbf75e3281895e0ff34087fe60298fa52 100644 (file)
--- a/gdb/top.c
+++ b/gdb/top.c
@@ -698,7 +698,7 @@ execute_command (char *p, int from_tty)
        execute_user_command (c, arg);
       else if (c->type == set_cmd || c->type == show_cmd)
        do_setshow_command (arg, from_tty & caution, c);
-      else if (c->function.cfunc == NO_FUNCTION)
+      else if (c->function.cfunc == NULL)
        error ("That is not a command, just a help topic.");
       else if (call_command_hook)
        call_command_hook (c, arg, from_tty & caution);
index 0ccdf6f32326aa93dea664ca83b5cd1196dac775..124419214276c094b3addc60748cebbf5c805548 100644 (file)
@@ -2661,7 +2661,7 @@ _initialize_tracepoint (void)
   add_info ("scope", scope_info,
            "List the variables local to a scope");
 
-  add_cmd ("tracepoints", class_trace, NO_FUNCTION,
+  add_cmd ("tracepoints", class_trace, NULL,
           "Tracing of program execution without stopping the program.",
           &cmdlist);
 
index 62ebed576874b9ec196f3468d5d8dd141aa38c04..00a7e1232923c758c99a5b1c320b577bd88bc1c8 100644 (file)
@@ -1,3 +1,7 @@
+2002-02-01  Andrew Cagney  <ac131313@redhat.com>
+
+       * tuiWin.c (_initialize_tuiWin): Replace NO_FUNCTION with NULL.
+
 2001-10-20  Andrew Cagney  <ac131313@redhat.com>
 
        * tuiDisassem.c: Include "value.h".
index 4523c410eb0fcfae60dda88ea027d68cd97c4d6e..3611a089603ca2884407a7f49475a5748501a962 100644 (file)
@@ -280,7 +280,7 @@ _initialize_tuiWin (void)
 
   /* Define the classes of commands.
      They will appear in the help list in the reverse of this order.  */
-  add_cmd ("tui", class_tui, NO_FUNCTION,
+  add_cmd ("tui", class_tui, NULL,
           "Text User Interface commands.",
           &cmdlist);