Changeset a0d4e99 in rtems


Ignore:
Timestamp:
Nov 25, 2016, 4:13:36 AM (4 years ago)
Author:
Chris Johns <chrisj@…>
Branches:
5, master
Children:
de7b174e
Parents:
8fd465e
git-author:
Chris Johns <chrisj@…> (11/25/16 04:13:36)
git-committer:
Chris Johns <chrisj@…> (11/28/16 21:50:40)
Message:

cpukit: Add libdebugger, a remote debugger agent for GDB.

Files:
24 added
6 edited

Legend:

Unmodified
Added
Removed
  • cpukit/Makefile.am

    r8fd465e ra0d4e99  
    1919SUBDIRS += libdl
    2020SUBDIRS += libstdthreads
     21SUBDIRS += libdebugger
    2122SUBDIRS += wrapup
    2223
     
    100101endif
    101102
     103if LIBDEBUGGER
     104include_rtems_HEADERS += libdebugger/rtems-debugger.h
     105include_rtems_debuggerdir = $(includedir)/rtems/debugger
     106include_rtems_debugger_HEADERS  =
     107include_rtems_debugger_HEADERS += libdebugger/rtems-debugger-server.h
     108include_rtems_debugger_HEADERS +=  libdebugger/rtems-debugger-remote.h
     109endif
     110
    102111include_rtems_HEADERS += include/rtems/bspIo.h
    103112include_rtems_HEADERS += include/rtems/print.h
  • cpukit/configure.ac

    r8fd465e ra0d4e99  
    396396AM_CONDITIONAL(LIBDL,[test x"$HAVE_LIBDL" = x"yes"])
    397397AC_MSG_RESULT([$HAVE_LIBDL])
     398
     399# Filter debugger to only build for architectures that have a target backend
     400AC_MSG_CHECKING([whether CPU supports libdebugger])
     401case $RTEMS_CPU in
     402  arm | i386)
     403   HAVE_LIBDEBUGGER=yes ;;
     404  *)
     405   HAVE_LIBDEBUGGER=no ;;
     406esac
     407AM_CONDITIONAL(LIBDEBUGGER,[test x"$HAVE_LIBDEBUGGER" = x"yes"])
     408AC_MSG_RESULT([$HAVE_LIBDEBUGGER])
    398409
    399410AC_MSG_CHECKING([whether CPU supports SHA])
     
    475486libdl/Makefile
    476487libstdthreads/Makefile
     488libdebugger/Makefile
    477489zlib/Makefile
    478490ftpd/Makefile
  • cpukit/preinstall.am

    r8fd465e ra0d4e99  
    234234PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtl/rap-shell.h
    235235endif
     236if LIBDEBUGGER
     237$(PROJECT_INCLUDE)/rtems/rtems-debugger.h: libdebugger/rtems-debugger.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
     238        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/rtems-debugger.h
     239PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/rtems-debugger.h
     240
     241$(PROJECT_INCLUDE)/rtems/debugger/$(dirstamp):
     242        @$(MKDIR_P) $(PROJECT_INCLUDE)/rtems/debugger
     243        @: > $(PROJECT_INCLUDE)/rtems/debugger/$(dirstamp)
     244PREINSTALL_DIRS += $(PROJECT_INCLUDE)/rtems/debugger/$(dirstamp)
     245
     246$(PROJECT_INCLUDE)/rtems/debugger/rtems-debugger-server.h: libdebugger/rtems-debugger-server.h $(PROJECT_INCLUDE)/rtems/debugger/$(dirstamp)
     247        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/debugger/rtems-debugger-server.h
     248PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/debugger/rtems-debugger-server.h
     249
     250$(PROJECT_INCLUDE)/rtems/debugger/rtems-debugger-remote.h: libdebugger/rtems-debugger-remote.h $(PROJECT_INCLUDE)/rtems/debugger/$(dirstamp)
     251        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/debugger/rtems-debugger-remote.h
     252PREINSTALL_FILES += $(PROJECT_INCLUDE)/rtems/debugger/rtems-debugger-remote.h
     253endif
    236254$(PROJECT_INCLUDE)/rtems/bspIo.h: include/rtems/bspIo.h $(PROJECT_INCLUDE)/rtems/$(dirstamp)
    237255        $(INSTALL_DATA) $< $(PROJECT_INCLUDE)/rtems/bspIo.h
  • cpukit/wrapup/Makefile.am

    r8fd465e ra0d4e99  
    9696endif
    9797
     98if LIBDEBUGGER
     99TMP_LIBS += ../libdebugger/libdebugger.a
     100endif
     101
    98102librtemscpu.a: $(TMP_LIBS)
    99103        rm -f $@
  • testsuites/libtests/Makefile.am

    r8fd465e ra0d4e99  
    5454endif
    5555
     56if DEBUGGERTESTS
     57_SUBDIRS += debugger01
     58endif
     59
    5660include $(top_srcdir)/../automake/test-subdirs.am
    5761include $(top_srcdir)/../automake/local.am
  • testsuites/libtests/configure.ac

    r8fd465e ra0d4e99  
    8080
    8181AM_CONDITIONAL(DLTESTS,[test x"$TEST_LIBDL" = x"yes"])
     82
     83# Must match the list in cpukit.
     84AC_MSG_CHECKING([whether CPU supports libdebugger])
     85case $RTEMS_CPU in
     86  arm | i386)
     87   TEST_LIBDEBUGGER=yes ;;
     88  *)
     89   TEST_LIBDEBUGGER=no ;;
     90esac
     91AC_MSG_RESULT([$TEST_LIBDEBUGGER])
     92AM_CONDITIONAL(DEBUGGERTESTS,[test x"$TEST_LIBDEBUGGER" = x"yes"])
    8293
    8394# Explicitly list all Makefiles here
     
    170181mathl/Makefile
    171182complex/Makefile
     183debugger01/Makefile
    172184])
    173185AC_OUTPUT
Note: See TracChangeset for help on using the changeset viewer.