From dad6fd4333c4b05af08bd78714acefb5a86f1af9 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Sun, 10 Mar 2019 07:04:42 +1300 Subject: 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. --- cpukit/include/rtems/rtl/rtl-archive.h | 1 + cpukit/include/rtems/rtl/rtl-shell.h | 28 ++++++++++++++++++++++++++++ cpukit/include/rtems/rtl/rtl-trace.h | 6 +++++- 3 files changed, 34 insertions(+), 1 deletion(-) (limited to 'cpukit/include') 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 #include +#include #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 + #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 #include +#include + /** * 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 -- cgit v1.2.3