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:
970 bytes
|
Line | |
---|
1 | # |
---|
2 | # $Id$ |
---|
3 | # |
---|
4 | |
---|
5 | @SET_MAKE@ |
---|
6 | srcdir = @srcdir@ |
---|
7 | VPATH = @srcdir@ |
---|
8 | RTEMS_ROOT = @top_srcdir@ |
---|
9 | PROJECT_ROOT = @PROJECT_ROOT@ |
---|
10 | |
---|
11 | LIBNAME=librpc.a |
---|
12 | LIB=${ARCH}/${LIBNAME} |
---|
13 | |
---|
14 | # C and C++ source names, if any, go here -- minus the .c or .cc |
---|
15 | C_PIECES= rpc_callmsg rpc_prot svc svc_auth svc_udp xdr xdr_array xdr_mem |
---|
16 | C_FILES=$(C_PIECES:%=%.c) |
---|
17 | C_O_FILES=$(C_PIECES:%=${ARCH}/%.o) |
---|
18 | |
---|
19 | SRCS=$(C_FILES) |
---|
20 | OBJS=$(C_O_FILES) |
---|
21 | |
---|
22 | include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg |
---|
23 | include $(RTEMS_ROOT)/make/lib.cfg |
---|
24 | |
---|
25 | # |
---|
26 | # Add local stuff here using += |
---|
27 | # |
---|
28 | |
---|
29 | DEFINES += |
---|
30 | CPPFLAGS += |
---|
31 | CFLAGS += $(LIBC_DEFINES) |
---|
32 | |
---|
33 | # |
---|
34 | # Add your list of files to delete here. The config files |
---|
35 | # already know how to delete some stuff, so you may want |
---|
36 | # to just run 'make clean' first to see what gets missed. |
---|
37 | # 'make clobber' already includes 'make clean' |
---|
38 | # |
---|
39 | |
---|
40 | CLEAN_ADDITIONS += $(LIB) |
---|
41 | CLOBBER_ADDITIONS += |
---|
42 | |
---|
43 | all: ${ARCH} $(LIB) |
---|
44 | $(INSTALL_VARIANT) -m 644 ${LIB} ${PROJECT_RELEASE}/lib |
---|
45 | |
---|
46 | $(LIB): $(SRCS) ${OBJS} |
---|
47 | $(make-library) |
---|
48 | |
---|
49 | |
---|
Note: See
TracBrowser
for help on using the repository browser.