diff options
author | Chris Johns <chrisj@rtems.org> | 2019-03-10 07:04:42 +1300 |
---|---|---|
committer | Chris Johns <chrisj@rtems.org> | 2019-03-22 14:16:52 +1100 |
commit | dad6fd4333c4b05af08bd78714acefb5a86f1af9 (patch) | |
tree | 232b39b72ad54f69a25291f77eb999a1c1e4cb1e /cpukit/include/rtems | |
parent | bsp/atsam: Fix SPI driver DMA support (diff) | |
download | rtems-dad6fd4333c4b05af08bd78714acefb5a86f1af9.tar.bz2 |
libdl: Add an archive command
- The archive command lists archives, symbols and any duplicate
symbols.
- Change the RTL shell commands to the rtems_printer to allow
the output to be captured.
Diffstat (limited to 'cpukit/include/rtems')
-rw-r--r-- | cpukit/include/rtems/rtl/rtl-archive.h | 1 | ||||
-rw-r--r-- | cpukit/include/rtems/rtl/rtl-shell.h | 28 | ||||
-rw-r--r-- | cpukit/include/rtems/rtl/rtl-trace.h | 6 |
3 files changed, 34 insertions, 1 deletions
diff --git a/cpukit/include/rtems/rtl/rtl-archive.h b/cpukit/include/rtems/rtl/rtl-archive.h index 8aa163e782..174bebb68b 100644 --- a/cpukit/include/rtems/rtl/rtl-archive.h +++ b/cpukit/include/rtems/rtl/rtl-archive.h @@ -31,6 +31,7 @@ #include <rtems.h> #include <rtems/chain.h> +#include <rtems/printer.h> #ifdef __cplusplus extern "C" { diff --git a/cpukit/include/rtems/rtl/rtl-shell.h b/cpukit/include/rtems/rtl/rtl-shell.h index b0a6e8d8d4..9230b619c6 100644 --- a/cpukit/include/rtems/rtl/rtl-shell.h +++ b/cpukit/include/rtems/rtl/rtl-shell.h @@ -16,6 +16,8 @@ #if !defined (_RTEMS_RTL_SHELL_H_) #define _RTEMS_RTL_SHELL_H_ +#include <rtems/print.h> + #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ @@ -30,6 +32,32 @@ extern "C" { */ int rtems_rtl_shell_command (int argc, char* argv[]); +/** + * List object files. + */ +int rtems_rtl_shell_list (const rtems_printer* printer, int argc, char* argv[]); + +/** + * Symbols. + */ +int rtems_rtl_shell_sym (const rtems_printer* printer, int argc, char* argv[]); + +/** + * Object files. + */ +int rtems_rtl_shell_object (const rtems_printer* printer, int argc, char* argv[]); + + +/** + * Archive files. + */ +int rtems_rtl_shell_archive (const rtems_printer* printer, int argc, char* argv[]); + +/** + * Call text symbol. + */ +int rtems_rtl_shell_call (const rtems_printer* printer, int argc, char* argv[]); + #ifdef __cplusplus } #endif /* __cplusplus */ diff --git a/cpukit/include/rtems/rtl/rtl-trace.h b/cpukit/include/rtems/rtl/rtl-trace.h index cd3921400c..06c72c8992 100644 --- a/cpukit/include/rtems/rtl/rtl-trace.h +++ b/cpukit/include/rtems/rtl/rtl-trace.h @@ -23,6 +23,8 @@ extern "C" { #include <stdbool.h> #include <stdint.h> +#include <rtems/printer.h> + /** * Set to 1 to build trace support in to the RTL code. */ @@ -98,7 +100,9 @@ rtems_rtl_trace_mask rtems_rtl_trace_clear_mask (rtems_rtl_trace_mask mask); * Add shell trace shell command. */ #if RTEMS_RTL_TRACE -int rtems_rtl_trace_shell_command (int argc, char *argv[]); +int rtems_rtl_trace_shell_command (const rtems_printer* printer, + int argc, + char* argv[]); #endif #ifdef __cplusplus |