From 4721cf1ecb949b37c98b6fce79163541711de2e5 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Thu, 3 Dec 1998 23:54:14 +0000 Subject: Patch from Emmanuel 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. --- c/Makefile.in | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'c/Makefile.in') diff --git a/c/Makefile.in b/c/Makefile.in index b1de42ce0f..2f3eaaedc0 100644 --- a/c/Makefile.in +++ b/c/Makefile.in @@ -33,6 +33,14 @@ LIBNETWORKING_yes_V = lib/include/networking lib/include/networking/sys \ lib/include/networking/nfs LIBNETWORKING = $(LIBNETWORKING_$(HAS_NETWORKING)_V) +# We only make the rpc install point if networking is enabled. +LIBRPC_yes_V = lib/include/rpc +LIBRPC = $(LIBRPC_$(HAS_NETWORKING)_V) + +# We only make the rdbg install point if networking and rdbg is enabled. +LIBRDBG_yes_yes_V = lib/include/rdbg +LIBRDBG = $(LIBRDBG_$(HAS_NETWORKING)_$(HAS_RDBG)_V) + # We only make the rtems++ install point if it is enabled. LIBRTEMSCPLUSPLUS_yes_V = lib/include/rtems++ LIBRTEMSCPLUSPLUS = $(LIBRTEMSCPLUSPLUS_$(HAS_CPLUSPLUS)_V) @@ -45,6 +53,8 @@ CREATE_DIRS = \ lib/include/motorola lib/include/zilog \ lib/include/libchip \ $(LIBNETWORKING) \ + $(LIBRPC) \ + $(LIBRDBG) \ $(LIBRTEMSCPLUSPLUS) \ bin samples \ tests tests/screens tests/screens/sptests \ -- cgit v1.2.3