summaryrefslogtreecommitdiffstats
path: root/c/src/librdbg/src/awk.svc
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2007-08-02 15:00:07 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2007-08-02 15:00:07 +0000
commit261f99bdac9a995f8b2740b7ae52c8ad81001132 (patch)
tree2a5006b2c876e801a11527f6b20f47c312370b2f /c/src/librdbg/src/awk.svc
parent2007-08-02 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-261f99bdac9a995f8b2740b7ae52c8ad81001132.tar.bz2
2007-08-02 Joel Sherrill <joel.sherrill@OARcorp.com>
* configure.ac, wrapup/Makefile.am: Remove RDBG. * aclocal/check-rdbg.m4, aclocal/enable-rdbg.m4, librdbg/.cvsignore, librdbg/Makefile.am, librdbg/preinstall.am, librdbg/include/rdbg/rdbg.h, librdbg/include/rdbg/servrpc.h, librdbg/include/rdbg/i386/rdbg_f.h, librdbg/include/rdbg/i386/reg.h, librdbg/include/rdbg/m68k/rdbg_f.h, librdbg/include/rdbg/m68k/reg.h, librdbg/include/rdbg/powerpc/rdbg_f.h, librdbg/include/rdbg/powerpc/reg.h, librdbg/src/_servtgt.c, librdbg/src/awk.svc, librdbg/src/excep.c, librdbg/src/ptrace.c, librdbg/src/rdbg.c, librdbg/src/remdeb.x, librdbg/src/servbkpt.c, librdbg/src/servcon.c, librdbg/src/servrpc.c, librdbg/src/servtgt.c, librdbg/src/servtsp.c, librdbg/src/servutil.c, librdbg/src/i386/excep_f.c, librdbg/src/i386/rdbg_cpu_asm.S, librdbg/src/i386/rdbg_f.c, librdbg/src/i386/any/remdeb.h, librdbg/src/i386/any/remdeb_f.x, librdbg/src/i386/any/remdeb_svc.c, librdbg/src/i386/any/remdeb_xdr.c, librdbg/src/m68k/excep_f.c, librdbg/src/m68k/rdbg_cpu_asm.S, librdbg/src/m68k/rdbg_f.c, librdbg/src/m68k/any/remdeb.h, librdbg/src/m68k/any/remdeb_f.x, librdbg/src/m68k/any/remdeb_svc.c, librdbg/src/m68k/any/remdeb_xdr.c, librdbg/src/powerpc/excep_f.c, librdbg/src/powerpc/rdbg_cpu_asm.S, librdbg/src/powerpc/rdbg_f.c, librdbg/src/powerpc/new_exception_processing/remdeb.h, librdbg/src/powerpc/new_exception_processing/remdeb_f.x, librdbg/src/powerpc/new_exception_processing/remdeb_svc.c, librdbg/src/powerpc/new_exception_processing/remdeb_xdr.c: Removed.
Diffstat (limited to 'c/src/librdbg/src/awk.svc')
-rw-r--r--c/src/librdbg/src/awk.svc65
1 files changed, 0 insertions, 65 deletions
diff --git a/c/src/librdbg/src/awk.svc b/c/src/librdbg/src/awk.svc
deleted file mode 100644
index 61e0bf68a2..0000000000
--- a/c/src/librdbg/src/awk.svc
+++ /dev/null
@@ -1,65 +0,0 @@
-#########################################################################
-#
-# Component: RDBG
-# Module: awk.svc
-#
-# Synopsis: AWK script which transforms the server skeleton produced
-# by rpcgen(1) into something suitable for RDB servers.
-#
-#########################################################################
-#
-# $Id$
-#
-BEGIN {
- headerstarted = 0
- withinproc = 0
- brack = 0
-}
-
-$1 ~ /^\/\*HEADER_START\*\/$/ {
- headerstarted = 1
- printf("#include <rpc/types.h>\n");
- printf("#include <rpc/rpc.h>\n");
- printf("#include <stdio.h>\n");
- printf("#include <stdlib.h>\n");
- printf("#include <string.h>\n");
- printf("#include <bsp.h>\n");
- printf("#include <rdbg/servrpc.h>\n");
- printf("#include <rdbg/%s>\n", THEPROG);
- printf("#define fprintf(a,b,c) printf(b,c)\n");
-}
-
-$1 ~ /^\/\*HEADER_END\*\/$/ {
- headerstarted = 0
-}
-
-{
- if (headerstarted == 1) {
- print $0
- } else if ($1 ~ /.*_2.*/) {
- withinproc = 1
- printf("void\n");
- print $0
- } else if (withinproc == 1) {
- if ($1 == "switch") {
- print "\tDPRINTF ((\"remotedeb_2: %s (%d)\\n\", "
- print "\t\t(unsigned) rqstp->rq_proc < "
- print "\t\t(unsigned) (sizeof names / sizeof names[0]) ?"
- print "\t\tnames [rqstp->rq_proc] : \"???\", "
- print "\t\t(int) rqstp->rq_proc));\n"
- }
- for (i = 1; i <= NF; i++) {
- if ($i == "{") {
- brack++;
- } else if ($i == "}") {
- brack--;
- if (brack == 0) {
- withinproc = 0;
- }
- }
- }
- if ($1 != "_rpcsvcdirty" ) {
- print $0
- }
- }
-}