4.104.114.84.95
Last change
on this file since 4721cf1 was
4721cf1,
checked in by Joel Sherrill <joel.sherrill@…>, on 12/03/98 at 23:54:14
|
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
|
Rev | Line | |
---|
[254b4450] | 1 | # |
---|
| 2 | # $Id$ |
---|
| 3 | # |
---|
| 4 | # build and install "glommed" librtemsall.a |
---|
| 5 | # |
---|
| 6 | |
---|
| 7 | @SET_MAKE@ |
---|
| 8 | srcdir = @srcdir@ |
---|
[674c900] | 9 | VPATH = @srcdir@ |
---|
[5c3511e] | 10 | RTEMS_ROOT = @top_srcdir@ |
---|
[674c900] | 11 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
[254b4450] | 12 | |
---|
[5c3511e] | 13 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
[cb5bfe4] | 14 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
[254b4450] | 15 | |
---|
[98100d2] | 16 | LIB=$(PROJECT_RELEASE)/lib/librtemsall${LIB_VARIANT}.a |
---|
[254b4450] | 17 | |
---|
[cb5bfe4] | 18 | SRCS=$(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) \ |
---|
[0280cb6] | 21 | $(wildcard $(PROJECT_RELEASE)/lib/libnetworking$(LIB_VARIANT).a) \ |
---|
[4721cf1] | 22 | $(wildcard $(PROJECT_RELEASE)/lib/librpc$(LIB_VARIANT).a) \ |
---|
| 23 | $(wildcard $(PROJECT_RELEASE)/lib/librdbg$(LIB_VARIANT).a) \ |
---|
[98100d2] | 24 | $(wildcard $(PROJECT_RELEASE)/lib/libcpu$(LIB_VARIANT).a) \ |
---|
[692b9f7] | 25 | $(wildcard $(PROJECT_RELEASE)/lib/librtcio$(LIB_VARIANT).a) \ |
---|
| 26 | $(wildcard $(PROJECT_RELEASE)/lib/libserialio$(LIB_VARIANT).a) \ |
---|
[cb5bfe4] | 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) |
---|
[254b4450] | 31 | |
---|
[98100d2] | 32 | CLEAN_ADDITIONS += $(ARCH)/check |
---|
[254b4450] | 33 | CLOBBER_ADDITIONS += |
---|
| 34 | |
---|
| 35 | all: $(ARCH) $(LIB) |
---|
[98100d2] | 36 | |
---|
[254b4450] | 37 | install: all |
---|
| 38 | |
---|
[98100d2] | 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.