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

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.1 KB
Line 
1#
2#  $Id$
3#
4
5@SET_MAKE@
6srcdir = @srcdir@
7VPATH = @srcdir@:@srcdir@/$(RTEMS_CPU)
8RTEMS_ROOT = @top_srcdir@
9PROJECT_ROOT = @PROJECT_ROOT@
10
11LIBNAME=librdbg.a
12LIB=${ARCH}/${LIBNAME}
13
14# C and C++ source names, if any, go here -- minus the .c or .cc
15C_PIECES= rdbg servcon servbkpt servrpc excep \
16          servtgt servtsp servutil _servtgt rdbg_f \
17          ptrace
18C_FILES=$(C_PIECES:%=%.c)
19C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)
20
21# Asm source names, if any, go here -- minus the .s
22ASM_PIECES= rdbg_cpu_asm
23ASM_FILES=$(ASM_PIECES:%=%.s)
24ASM_O_FILES=$(ASM_PIECES:%=${ARCH}/%.o)
25
26# Generated C source names, if any, go here -- minus the .c
27C_GEN_PIECES= remdeb_xdr remdeb_svc
28C_GEN_FILES=$(C_GEN_PIECES:%=%.c)
29C_GEN_O_FILES=$(C_GEN_PIECES:%=${ARCH}/%.o)
30
31# H source names, if any, go here -- minus the .h
32H_PIECES=remdeb
33H_FILES=$(H_PIECES:%=%.h)
34
35# X source names, if any, go here -- minus the .x
36X_FILE1=remdeb.x
37X_FILE2=remdeb_f.x
38X_FILES=$(X_FILE1) $(X_FILE2)
39
40SRCS=$(C_FILES) $(ASM_FILES)
41OBJS=$(X_FILES) $(H_FILES) $(C_GEN_FILES) $(C_GEN_O_FILES) $(C_O_FILES) $(ASM_O_FILES)
42
43RPCGEN=rpcgen
44AWK=awk
45
46include $(RTEMS_ROOT)/make/custom/$(RTEMS_BSP).cfg
47include $(RTEMS_ROOT)/make/lib.cfg
48
49#
50# Add local stuff here using +=
51#
52
53DEFINES  +=
54CPPFLAGS +=
55CFLAGS   +=
56
57#
58# Add your list of files to delete here.  The config files
59#  already know how to delete some stuff, so you may want
60#  to just run 'make clean' first to see what gets missed.
61#  'make clobber' already includes 'make clean'
62#
63
64CLEAN_ADDITIONS += $(LIB) $(H_FILES) $(X_FILES) $(C_GEN_FILES)
65CLOBBER_ADDITIONS +=
66
67all:    ${ARCH} $(LIB)
68        $(INSTALL_VARIANT) -m 644 $(LIB) ${PROJECT_RELEASE}/lib
69
70$(LIB): $(SRCS) ${OBJS}
71        $(make-library)
72
73remdeb.h: $(X_FILES)
74        @rm -f $@
75        $(RPCGEN) -h remdeb.x -o $@
76        @rm -f $(PROJECT_INCLUDE)/rdbg/$@
77        $(INSTALL) -m 444 $@ $(PROJECT_INCLUDE)/rdbg
78
79remdeb_xdr.c: $(X_FILES)
80        @rm -f $@
81        $(RPCGEN) -c remdeb.x -o $@
82
83remdeb_svc.c: $(X_FILES)
84        @rm -f $@ tmpSvc.c
85        $(RPCGEN) -s udp remdeb.x -o tmpSvc.c
86        $(AWK) -f @srcdir@/awk.svc THEPROG="remdeb.h" tmpSvc.c >$@
87        @rm -f tmpSvc.c
88
89preinstall:
90        @rm -f $(X_FILES)
91        @cp @srcdir@/$(X_FILE1) .
92        @cp @srcdir@/$(RTEMS_CPU)/$(RTEMS_BSP)/$(X_FILE2) .
93
94
95
96
Note: See TracBrowser for help on using the repository browser.