[PATCH v3] rtems-tool DAWRF support with coverage changes

2018-06-17 Thread Chris Johns
Hi, This is the 3rd version of the DWARF support for the RTEMS Tools project. The DWARF support is: - DWARF source and line number support with a C++ addr2line test tool. - DWARF support for functions in complication units. - Add rtems-addr2line as a DWARF debug and test tool. Covar has been

[PATCH v3 01/22] rtemstoolkit: Add libdwarf C++ interface.

2018-06-17 Thread Chris Johns
Provide a C++ interface to libdwarf to: - Manage DWARF debug data - Manage CU - Manage DIE - Handle CU line addresses - Handle CU source files Update #3417 --- rtemstoolkit/rld-dwarf-types.h | 57 +++ rtemstoolkit/rld-dwarf.cpp | 938 + rtemstoolk

[PATCH v3 02/22] covoar: Use DWARF to map addresses to source files and lines.

2018-06-17 Thread Chris Johns
--- tester/covoar/CoverageMapBase.cc | 41 +++-- tester/covoar/DesiredSymbols.cc | 123 ++- tester/covoar/ExecutableInfo.cc | 80 - tester/covoar/ExecutableInfo.h | 41 ++--- tester/covoar/GcovData.cc| 29 +

[PATCH v3 03/22] covoar: Refactor DesiredSymbols.cc to C++11.

2018-06-17 Thread Chris Johns
--- tester/covoar/DesiredSymbols.cc | 499 +--- 1 file changed, 210 insertions(+), 289 deletions(-) diff --git a/tester/covoar/DesiredSymbols.cc b/tester/covoar/DesiredSymbols.cc index 278498d..84296f7 100644 --- a/tester/covoar/DesiredSymbols.cc +++ b/tester/c

[PATCH v3 05/22] covoar: Add libdwarf to the include path.

2018-06-17 Thread Chris Johns
--- tester/covoar/wscript | 1 + 1 file changed, 1 insertion(+) diff --git a/tester/covoar/wscript b/tester/covoar/wscript index 55d5ec9..645052f 100644 --- a/tester/covoar/wscript +++ b/tester/covoar/wscript @@ -62,6 +62,7 @@ def build(bld): rtemstoolkit = '../../rtemstoolkit' rtl_incl

[PATCH v3 04/22] covoar: Control the RLD verbose level from the -v option.

2018-06-17 Thread Chris Johns
--- tester/covoar/covoar.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tester/covoar/covoar.cc b/tester/covoar/covoar.cc index 9608bc3..eadf0ec 100644 --- a/tester/covoar/covoar.cc +++ b/tester/covoar/covoar.cc @@ -227,7 +227,8 @@ int main( case 'S': symbolSet

[PATCH v3 06/22] rtemstoolkit/elf: Add data size and endian support to the ELF interface.

2018-06-17 Thread Chris Johns
--- rtemstoolkit/rld-elf.cpp | 22 ++ rtemstoolkit/rld-elf.h | 10 ++ 2 files changed, 32 insertions(+) diff --git a/rtemstoolkit/rld-elf.cpp b/rtemstoolkit/rld-elf.cpp index 2d3d090..60ba484 100644 --- a/rtemstoolkit/rld-elf.cpp +++ b/rtemstoolkit/rld-elf.cpp @@ -10

[PATCH v3 07/22] linkers/exe-info: Set the data endian for getting the init/fini sec data.

2018-06-17 Thread Chris Johns
--- linkers/rtems-exeinfo.cpp | 11 --- linkers/wscript | 3 ++- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/linkers/rtems-exeinfo.cpp b/linkers/rtems-exeinfo.cpp index c79ea94..b0388af 100644 --- a/linkers/rtems-exeinfo.cpp +++ b/linkers/rtems-exeinfo.cpp @@

[PATCH v3 10/22] linkers/exe-info: Add DWARF support to gather and check producer details.

2018-06-17 Thread Chris Johns
- Provide support to list the compilers and assemblers used to build an executable. - List the machine flags showing which flags are common and which are not. --- linkers/rtems-exeinfo.cpp | 212 +- linkers/wscript | 2 +- 2 files changed

[PATCH v3 09/22] rtemstoolkit/elf, files: Catch exceptions in destructors.

2018-06-17 Thread Chris Johns
Catch exceptions in destructures and print a message to avoid an unhandled exception happening in an exception stack unwind. --- rtemstoolkit/rld-elf.cpp | 57 ++-- rtemstoolkit/rld-files.cpp | 72 ++ 2 files changed, 10

[PATCH v3 08/22] rtemstoolkit/path: Fix crash when going above the root directory.

2018-06-17 Thread Chris Johns
--- rtemstoolkit/rld-path.cpp | 6 ++ 1 file changed, 6 insertions(+) diff --git a/rtemstoolkit/rld-path.cpp b/rtemstoolkit/rld-path.cpp index c848676..35af055 100644 --- a/rtemstoolkit/rld-path.cpp +++ b/rtemstoolkit/rld-path.cpp @@ -145,7 +145,13 @@ namespace rld } else if

[PATCH v3 11/22] tester/covoar: Remove all exit() calls and throw an rld::error exception.

2018-06-17 Thread Chris Johns
Add a suitable catch to covoar's main. --- tester/covoar/CoverageFactory.cc | 13 +- tester/covoar/CoverageReaderQEMU.cc | 55 +++ tester/covoar/CoverageReaderRTEMS.cc | 59 +++- tester/covoar/CoverageReaderSkyeye.cc | 57 +++ tester/covoar/CoverageReaderTSIM.cc | 39 ++-

[PATCH v3 15/22] rtemstoolkit/dwarf: Fixes for getting source lines.

2018-06-17 Thread Chris Johns
--- rtemstoolkit/rld-dwarf.cpp | 260 + rtemstoolkit/rld-dwarf.h | 34 +++--- 2 files changed, 160 insertions(+), 134 deletions(-) diff --git a/rtemstoolkit/rld-dwarf.cpp b/rtemstoolkit/rld-dwarf.cpp index 15cf8e2..674ac8f 100644 --- a/rtemstoolkit/r

[PATCH v3 13/22] tester/covoar: ExecutableInfo C to C++ change.

2018-06-17 Thread Chris Johns
--- tester/covoar/ExecutableInfo.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tester/covoar/ExecutableInfo.cc b/tester/covoar/ExecutableInfo.cc index b1eba68..4c72d0d 100644 --- a/tester/covoar/ExecutableInfo.cc +++ b/tester/covoar/ExecutableInfo.cc @@ -43,9 +43,9 @

[PATCH v3 12/22] rtemstoolkit/dwarf: Change the address source line to signed so valid() works.

2018-06-17 Thread Chris Johns
Also add a check to valid where there must be source to be valid. --- rtemstoolkit/rld-dwarf.cpp | 45 - rtemstoolkit/rld-dwarf.h | 4 ++-- 2 files changed, 26 insertions(+), 23 deletions(-) diff --git a/rtemstoolkit/rld-dwarf.cpp b/rtemstoolkit/rld-

[PATCH v3 16/22] rtemstoolkit: Add an output routine for a std::exception.

2018-06-17 Thread Chris Johns
The output routine is used by a number of tools. --- rtemstoolkit/rld.cpp | 15 +++ rtemstoolkit/rld.h | 5 + 2 files changed, 20 insertions(+) diff --git a/rtemstoolkit/rld.cpp b/rtemstoolkit/rld.cpp index acce748..90fb39d 100644 --- a/rtemstoolkit/rld.cpp +++ b/rtemstoolkit/r

[PATCH v3 18/22] rtemstoolkit: Add DWARF function support.

2018-06-17 Thread Chris Johns
Load the functions in each CU. --- linkers/rtems-addr2line.cpp| 20 +- linkers/rtems-exeinfo.cpp | 2 + rtemstoolkit/defaults.mc | 122 rtemstoolkit/elftoolchain/libdwarf/dwarf_die.c | 5 +- rtemstoolkit/rld-dwarf-types.h

[PATCH v3 19/22] tester: Make leon3-run command use run and not sis.

2018-06-17 Thread Chris Johns
--- tester/rtems/testing/bsps/leon3-run.ini | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tester/rtems/testing/bsps/leon3-run.ini b/tester/rtems/testing/bsps/leon3-run.ini index 7e37e5f..a8c97a6 100644 --- a/tester/rtems/testing/bsps/leon3-run.ini +++ b/tester/rtems/test

[PATCH v3 17/22] linkers: Add an address to line tool.

2018-06-17 Thread Chris Johns
This tool provides a way to check the DWARF toolkit support for finding lines from addresses. --- linkers/rtems-addr2line.cpp | 289 linkers/wscript | 15 ++- 2 files changed, 303 insertions(+), 1 deletion(-) create mode 100644 linkers/rte

[PATCH v3 20/22] tester: Correct usage for covoar.

2018-06-17 Thread Chris Johns
--- tester/covoar/covoar.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tester/covoar/covoar.cc b/tester/covoar/covoar.cc index 26abf34..49f0f2a 100644 --- a/tester/covoar/covoar.cc +++ b/tester/covoar/covoar.cc @@ -131,7 +131,7 @@ void usage(const std::string& progname)

[PATCH v3 22/22] tester: Make the path to covoar absolute to ignore the env PATH.

2018-06-17 Thread Chris Johns
Using the environment's path to find covoar allow invalid versions to be used which may vary in subtle ways. Find and use the covoar that is build with the version of 'rtems-test'. This patch means you do not need to install the tools before running improving the development experience. Closes #3

[PATCH v3 21/22] tester: Clean up the coverage python code.

2018-06-17 Thread Chris Johns
--- tester/rt/coverage.py | 95 +++ 1 file changed, 50 insertions(+), 45 deletions(-) diff --git a/tester/rt/coverage.py b/tester/rt/coverage.py index 54933d5..093d516 100644 --- a/tester/rt/coverage.py +++ b/tester/rt/coverage.py @@ -28,16 +28,9 @@

Re: [PATCH 1/4] Reassign system initilization order numbers

2018-06-17 Thread Chris Johns
On 15/06/2018 21:13, Sebastian Huber wrote: > Assign each system initialization step a number divisible by 256 to > allow more easily future additions. Keep the order as is. Where are these initialization steps defined? I cannot see any supporting comments on how the current numbers are allocate

Re: [PATCH 1/4] Reassign system initilization order numbers

2018-06-17 Thread Sebastian Huber
On 18/06/18 04:33, Chris Johns wrote: On 15/06/2018 21:13, Sebastian Huber wrote: Assign each system initialization step a number divisible by 256 to allow more easily future additions. Keep the order as is. Where are these initialization steps defined? I cannot see any supporting comments on

[PATCH] c-user: Document RTEMS_SYSINIT_CPU_COUNTER

2018-06-17 Thread Sebastian Huber
Update #3456. --- c-user/initialization.rst | 6 ++ 1 file changed, 6 insertions(+) diff --git a/c-user/initialization.rst b/c-user/initialization.rst index 2dc6b7f..0a59863 100644 --- a/c-user/initialization.rst +++ b/c-user/initialization.rst @@ -104,6 +104,12 @@ RTEMS_SYSINIT_BSP_START

Re: [PATCH 1/4] Reassign system initilization order numbers

2018-06-17 Thread Chris Johns
On 18/06/2018 15:00, Sebastian Huber wrote: > On 18/06/18 04:33, Chris Johns wrote: >> On 15/06/2018 21:13, Sebastian Huber wrote: >>> Assign each system initialization step a number divisible by 256 to >>> allow more easily future additions.  Keep the order as is. >> Where are these initialization

Re: [PATCH v7 2/2] Adding Trace Documentation

2018-06-17 Thread Chris Johns
On 15/06/2018 12:58, Chris Johns wrote: > On 15/06/2018 00:21, Vidushi Vashishth wrote: >> The latest trace documentation images patch is version 5. > > Thank you, this looks good. I will push the patches in a couple days if there > are no objections. Pushed. Chris __

All installed host tools are removed from the RTEMS sources - next steps?

2018-06-17 Thread Sebastian Huber
Hello, I finished the tasks to remove the installed host tools from the RTEMS sources. Only one tool was moved to the RTEMS tools - rtems-bin2c. The other tools were remove due to license issues, limited usability, or general obsolescence. Now, a host compiler is no longer necessary to build

Rework initialization and interrupt stack support

2018-06-17 Thread Sebastian Huber
Hello, please have a look at: https://devel.rtems.org/ticket/3459 -- Sebastian Huber, embedded brains GmbH Address : Dornierstr. 4, D-82178 Puchheim, Germany Phone : +49 89 189 47 41-16 Fax : +49 89 189 47 41-09 E-Mail : sebastian.hu...@embedded-brains.de PGP : Public key available

Re: All installed host tools are removed from the RTEMS sources - next steps?

2018-06-17 Thread Chris Johns
On 18/06/2018 15:41, Sebastian Huber wrote: > > I finished the tasks to remove the installed host tools from the RTEMS > sources. > Only one tool was moved to the RTEMS tools - rtems-bin2c. The other tools were > remove due to license issues, limited usability, or general obsolescence. > Now, a

Re: All installed host tools are removed from the RTEMS sources - next steps?

2018-06-17 Thread Sebastian Huber
On 18/06/18 08:39, Chris Johns wrote: What do we want to do with the standard Makefile support in "c/src/make" and "make"? I am not sure I understand what this means? We have this standard Makefile support for applications: https://git.rtems.org/rtems/tree/c/src/make/README This stuff depend

Re: All installed host tools are removed from the RTEMS sources - next steps?

2018-06-17 Thread Chris Johns
On 18/06/2018 16:43, Sebastian Huber wrote: > On 18/06/18 08:39, Chris Johns wrote: >>> What do we want to do with the standard Makefile support in "c/src/make" and >>> "make"? >> I am not sure I understand what this means? > > We have this standard Makefile support for applications: > > https://