Lines Matching refs:macro

1 /* C preprocessor macro expansion commands for GDB.
33 /* The `macro' prefix command. */
42 /* Prints an informational message regarding the lack of macro information. */
46 puts_filtered ("GDB has no preprocessor macro information for that code.\n");
58 error (_("You must follow the `macro expand' command with the"
86 error (_("You must follow the `macro expand-once' command with"
104 /* Outputs the include path of a macro starting at FILE and LINE to STREAM.
129 /* Outputs a macro for human consumption, detailing the include path
130 and macro definition. NAME is the name of the macro.
170 /* The implementation of the `info macro' command. */
189 /* Our macro support seems rather C specific but this would
190 seem necessary for languages allowing - in macro names.
194 report_unrecognized_option_error ("info macro", arg_start);
202 error (_("You must follow the `info macro' command with the name"
203 " of the macro\n"
212 const macro_definition *macro,
217 print_macro_definition (name, macro, source, line);
236 " preprocessor macro\n"
281 function will also allow "..." forms as used in varargs macro
344 error (_("usage: macro define NAME[(ARGUMENT-LIST)] [REPLACEMENT-LIST]"));
349 error (_("Invalid macro name."));
352 /* Function-like macro. */
383 error (_("Two macro arguments with identical names."));
393 error (_("',' or ')' expected at end of macro arguments."));
416 error (_("usage: macro undef NAME"));
421 error (_("Invalid macro name."));
427 print_one_macro (const char *name, const struct macro_definition *macro,
430 fprintf_filtered (gdb_stdout, "macro define %s", name);
431 if (macro->kind == macro_function_like)
436 for (i = 0; i < macro->argc; ++i)
438 macro->argv[i]);
441 fprintf_filtered (gdb_stdout, " %s\n", macro->replacement);
457 /* We introduce a new command prefix, `macro', under which we'll put
459 add_basic_prefix_cmd ("macro", class_info,
461 &macrolist, "macro ", 0, &cmdlist);
464 Fully expand any C/C++ preprocessor macro invocations in EXPRESSION.\n\
469 Expand C/C++ preprocessor macro invocations appearing directly in EXPRESSION.\n\
472 This command differs from `macro expand' in that it only expands macro\n\
473 invocations that appear directly in EXPRESSION; if expanding a macro\n\
474 introduces further macro invocations, those are left unexpanded.\n\
476 `macro expand-once' helps you see how a particular macro expands,\n\
477 whereas `macro expand' shows you how all the macros involved in an\n\
482 add_info ("macro", info_macro_command,
484 Usage: info macro [-a|-all] [--] MACRO\n\
496 Define a new C/C++ preprocessor macro.\n\
497 The GDB command `macro define DEFINITION' is equivalent to placing a\n\
501 (gdb) macro define PI (3.1415926)\n\
502 (gdb) macro define MIN(x,y) ((x) < (y) ? (x) : (y))"),
506 Remove the definition of the C/C++ preprocessor macro with the given name."),
510 _("List all the macros defined using the `macro define' command."),