arm, objdump: print obsolote warning when 26-bit set in instructions
[binutils-gdb.git] / gdb / copying.awk
blob7a450d46c80c48b2683cffece7a5cf706c524eea
1 BEGIN {
2 FS="\"";
3 print "/* ==> Do not modify this file!! " \
4 "-*- buffer-read-only: t -*- vi" \
5 ":set ro:";
6 print " It is created automatically by copying.awk.";
7 print " Modify copying.awk instead. <== */";
8 print ""
9 print "#include \"command.h\""
10 print "#include \"cli/cli-cmds.h\""
11 print ""
12 print "static void show_copying_command (const char *, int);"
13 print ""
14 print "static void show_warranty_command (const char *, int);"
15 print ""
16 print "static void";
17 print "show_copying_command (const char *ignore, int from_tty)";
18 print "{";
20 NR == 1,/^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
21 if ($0 ~ /\f/)
23 printf " gdb_printf (\"\\n\");\n";
25 else if ($0 !~ /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/)
27 printf " gdb_printf (\"";
28 for (i = 1; i < NF; i++)
29 printf "%s\\\"", $i;
30 printf "%s\\n\");\n", $NF;
33 /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/ {
34 print "}";
35 print "";
36 print "static void";
37 print "show_warranty_command (const char *ignore, int from_tty)";
38 print "{";
40 /^[ ]*15\. Disclaimer of Warranty\.[ ]*$/, /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/{
41 if (! ($0 ~ /^[ ]*END OF TERMS AND CONDITIONS[ ]*$/))
43 printf " gdb_printf (\"";
44 for (i = 1; i < NF; i++)
45 printf "%s\\\"", $i;
46 printf "%s\\n\");\n", $NF;
49 END {
50 print "}";
51 print "";
52 print "void _initialize_copying ();"
53 print "void"
54 print "_initialize_copying ()";
55 print "{";
56 print " add_cmd (\"copying\", no_set_class, show_copying_command,";
57 print " _(\"Conditions for redistributing copies of GDB.\"),";
58 print " &showlist);";
59 print " add_cmd (\"warranty\", no_set_class, show_warranty_command,";
60 print " _(\"Various kinds of warranty you do not have.\"),";
61 print " &showlist);";
62 print "";
63 print " /* For old-timers, allow \"info copying\", etc. */";
64 print " add_info (\"copying\", show_copying_command,";
65 print " _(\"Conditions for redistributing copies of GDB.\"));";
66 print " add_info (\"warranty\", show_warranty_command,";
67 print " _(\"Various kinds of warranty you do not have.\"));";
68 print "}";