summaryrefslogtreecommitdiffstats
path: root/cpukit/libdl/rtl-trace.c
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2016-08-12 18:02:52 +1000
committerChris Johns <chrisj@rtems.org>2016-08-15 15:44:38 +1000
commit58c34961ca4c6ded8c5fc3ef484aaf711aacd1cc (patch)
tree07c94a88ee5ae7f5904e1c821f9d68f64c0504af /cpukit/libdl/rtl-trace.c
parentlibdl: Add trace output when reading section headers. (diff)
downloadrtems-58c34961ca4c6ded8c5fc3ef484aaf711aacd1cc.tar.bz2
libdl: Fix cache corruption bugs.
This patch fixes a number of bugs in the cache when requests are made to read close to the end of the file and the data is copied from the top of the cache buffer to the bottom of the buffer. This was compounded by attempting to read past the end of the file. Closes #2754.
Diffstat (limited to 'cpukit/libdl/rtl-trace.c')
-rw-r--r--cpukit/libdl/rtl-trace.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/cpukit/libdl/rtl-trace.c b/cpukit/libdl/rtl-trace.c
index fee8de161d..42b3995de5 100644
--- a/cpukit/libdl/rtl-trace.c
+++ b/cpukit/libdl/rtl-trace.c
@@ -58,6 +58,8 @@ rtems_rtl_trace_shell_command (int argc, char *argv[])
{
const char* table[] =
{
+ "detail",
+ "warning",
"load",
"unload",
"section",
@@ -67,7 +69,7 @@ rtems_rtl_trace_shell_command (int argc, char *argv[])
"load-sect",
"allocator",
"unresolved",
- "detail"
+ "cache"
};
rtems_rtl_trace_mask set_value = 0;