source: rtems/c/src/lib/wrapup/Makefile.in @ 4721cf1

4.104.114.84.9
Last change on this file since 4721cf1 was 4721cf1, checked in by Joel Sherrill <joel.sherrill@…>, on Dec 3, 1998 at 11:54:14 PM

Patch from Emmanuel Raguet <raguet@…> to add remote debug server
and RPC support to RTEMS. Thanks. :) Email follows:

Hello,

For Xmas, here is the Remote Debugger on RTEMS !

Here are 2 patches for the Remote Debugger on RTEMS for pc386 from Linux
host :

  • one for RTEMS it self,
  • one for GDB-4.17.

1/ RTEMS patch
--------------

This patch adds 2 libraries :

  • a simplified SUN RPC library
  • the Remote Debugger library

The configuration command is the following :
../rtems4/configure --target=i386-rtemself --enable-rtemsbsp=pc386
--enable-rdbg

The SUN RPC library is built only if networking is set.
The RDBG library is built if networking and enable-rdbg are set.

The function used to initialize the debugger is :

rtems_rdbg_initialize ();

A special function has been created to force a task to be
in a "debug" state : enterRdbg().
The use of this function is not mandatory.

2/ GDB-4.17 patch
-----------------

This patch create a new RTEMS target for GDB-4.17.

The configuration command is the following :
./configure --enable-shared --target=i386RTEMS

To connect to a target, use :

target rtems [your_site_address]

Then, attach the target using : attach 1

And... Debug ;)

You can obtain the original GDB-4.17 on
ftp://ftp.debian.org/debian/dists/stable/main/source/devel/gdb_4.17.orig.tar.gz

This has been tested from a Debian 2.0.1 linux host.

  • Property mode set to 100644
File size: 2.0 KB
Line 
1#
2#  $Id$
3#
4#  build and install "glommed" librtemsall.a
5#
6
7@SET_MAKE@
8srcdir = @srcdir@
9VPATH = @srcdir@
10RTEMS_ROOT = @top_srcdir@
11PROJECT_ROOT = @PROJECT_ROOT@
12
13include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
14include $(RTEMS_ROOT)/make/lib.cfg
15 
16LIB=$(PROJECT_RELEASE)/lib/librtemsall${LIB_VARIANT}.a
17 
18SRCS=$(wildcard $(PROJECT_RELEASE)/lib/libbsp$(LIB_VARIANT).a) \
19     $(PROJECT_RELEASE)/lib/librtems$(LIB_VARIANT).a \
20     $(wildcard $(PROJECT_RELEASE)/lib/libposix$(LIB_VARIANT).a) \
21     $(wildcard $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a) \
22     $(wildcard $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a) \
23     $(wildcard $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a) \
24     $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \
25     $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \
26     $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \
27     $(PROJECT_RELEASE)/lib/libcsupport$(LIB_VARIANT).a \
28     $(PROJECT_RELEASE)/lib/libmisc$(LIB_VARIANT).a \
29     $(wildcard $(PROJECT_RELEASE)/lib/rtems-ctor$(LIB_VARIANT).o) \
30     $(wildcard $(PROJECT_RELEASE)/lib/libno-ctor$(LIB_VARIANT).a)
31 
32CLEAN_ADDITIONS += $(ARCH)/check
33CLOBBER_ADDITIONS +=
34 
35all:    $(ARCH) $(LIB)
36
37install:  all
38
39$(ARCH)/check:: $(SRCS)
40        @$(RM) $@; touch $@;
41        @for f in $(SRCS); do \
42          case $$f in \
43          *.o)   echo " `basename $$f`" >> $@ \
44            ;; \
45          *.rel) echo " `basename $$f`" >> $@ \
46            ;; \
47          *.a) \
48          ( list=`$(AR) t $$f`;\
49            for i in $$list; do \
50              if grep " $$i" $@; then \
51                echo "ERROR -- $$i in multiple files"; exit 1; \
52              fi;\
53              echo " $$i" >> $@;\
54            done; ) \
55            ;; \
56          esac; \
57        done;
58
59$(LIB):: $(ARCH)/check
60        @for f in $(SRCS); do \
61          case $$f in \
62          *.o) $(AR) ru $@ $$f \
63            ;;\
64          *.rel) $(AR) ru $@ $$f \
65            ;;\
66          *.a) \
67            (cd $(ARCH); \
68            list=`$(AR) t $$f`; \
69            $(AR) x $$f $$list; $(AR) ru $@ $$list; \
70            $(RM) $$list ;)\
71            ;; \
72          esac; \
73        done;
74        @$(RANLIB) $@
75        @echo "*** Glommed $@"
Note: See TracBrowser for help on using the repository browser.