Changeset 1318c11 in rtems-tools


Ignore:
Timestamp:
May 24, 2018, 6:05:44 AM (11 months ago)
Author:
Chris Johns <chrisj@…>
Branches:
master
Children:
d8eef0a
Parents:
0f481ad
git-author:
Chris Johns <chrisj@…> (05/24/18 06:05:44)
git-committer:
Chris Johns <chrisj@…> (06/18/18 02:26:16)
Message:

linkers: Add an address to line tool.

This tool provides a way to check the DWARF toolkit support for finding
lines from addresses.

Location:
linkers
Files:
1 added
1 edited

Legend:

Unmodified
Added
Removed
  • linkers/wscript

    r0f481ad r1318c11  
    5959                        rtemstoolkit + '/elftoolchain/libdwarf',
    6060                        rtemstoolkit + '/elftoolchain/common',
     61                        rtemstoolkit + '/elftoolchain/libelftc',
    6162                        rtemstoolkit + '/libiberty']
    6263    if bld.env.DEST_OS == 'win32':
     
    7172    # The list of modules.
    7273    #
    73     modules = ['rld', 'dwarf', 'elf', 'iberty']
     74    modules = ['rld', 'elftc', 'dwarf', 'elf', 'iberty']
    7475
    7576    #
     
    166167                use = modules)
    167168
     169    #
     170    # Build the address to line tool.
     171    #
     172    bld.program(target = 'rtems-addr2line',
     173                source = ['rtems-addr2line.cpp'],
     174                defines = defines,
     175                includes = ['.'] + conf['includes'],
     176                cflags = conf['cflags'] + conf['warningflags'],
     177                cxxflags = conf['cxxflags'] + conf['warningflags'],
     178                linkflags = conf['linkflags'],
     179                use = modules)
     180
    168181def tags(ctx):
    169182    ctx.exec_command('etags $(find . -name \*.[sSch])', shell = True)
Note: See TracChangeset for help on using the changeset viewer.