• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

bugxml/H03-May-2022-627475

dwarfdump/H03-May-2022-37,89929,966

dwarfexample/H25-Nov-2016-7,5056,175

dwarfgen/H03-May-2022-11,3608,982

libdwarf/H03-May-2022-83,84364,814

tsearch/H03-May-2022-6,1374,482

BLDLIBDWARFH A D03-Sep-2015321 3020

BLDLIBDWARFTARH A D06-Jan-20151 KiB4535

BLDTESTDIRH A D19-Jan-20164.1 KiB211204

CLEANUPH A D25-Nov-2016469 1914

CPTOPUBLICH A D06-Jan-2015520 3630

CREATINGARELEASEH A D03-Mar-20153.4 KiB9474

Makefile.inH A D16-Jun-20163.1 KiB11963

NEWSH A D21-Sep-20161.4 KiB3430

READMEH A D01-Oct-20161.9 KiB6857

REBLDLIBDWARFH A D15-Oct-2012332 3227

SETUP_MASTER_TREEH A D15-Oct-20123.1 KiB155145

SMBLDLIBDWARFH A D19-Jan-2016365 3531

UPD.awkH A D24-Nov-2016248 1211

UPDATEDWARFDUMPVERSION.shH A D16-Jun-2016721 2624

config.h.inH A D06-Aug-20131.7 KiB6546

configureH A D30-Sep-2016146 KiB5,1574,274

configure.inH A D30-Sep-20161.4 KiB5244

install.shH A D06-Aug-20132.1 KiB12071

README

1BUILDING IN SOURCE TREE
2To just build libdwarf and dwarfdump
3if the source tree is in /a/b/libdwarf-1
4one might do:
5    cd /a/b/libdwarf-1
6    ./configure
7    make dd
8    #You may need to be root to do the following copy commands
9    cp dwarfdump/dwarfdump      /usr/local/bin
10    cp dwarfdump/dwarfdump.conf /usr/local/lib
11    #The following is optional, not needed to run dwarfdump
12    #when doing the default build.
13    cp libdwarf/libdwarf.a      /usr/local/lib
14
15BUILDING OUT OF SOURCE TREE
16Or one could  create a new directory, for example,
17    mkdir /var/tmp/dwarfex
18    cd /var/tmp/dwarfex
19    /a/b/libdwarf-1/configure
20    make dd
21In this case the source directory is not touched and
22all objects and files created are under /var/tmp/dwarfex
23
24NOTE: When building out of source tree the source tree
25must be cleaned of any files created by a build
26in the source tree. This is due to the way GNU Make
27VPATH works.
28
29For a simple build of libdwarf, and dwarfdump
30and the other tools:
31    ./configure
32    make
33    #Optionally: cp libdwarf/libdwarf.a <somewhere>
34
35To build all the tools (including dwarfgen and
36dwarfexample) use 'make all'. There are known
37small compile-time issues with building dwarfgen on
38MaxOSX and most don't need to build dwarfgen.
39    ./configure
40    make all
41
42By default configure compiles and uses libdwarf.a.
43
44With
45    ./configure --enabled-shared
46both libdwarf.a and libdwarf.so
47are built. The runtimes built will reference libdwarf.so.
48
49With
50    ./configure --enabled-shared --disable-nonshared
51libdwarf.so is built and used; libdwarf.a is not built.
52
53When ready to create a new source distribution do
54    ./CPTOPUBLIC
55    ./BLDLIBDWARF yyyymmdd
56where that could be
57    ./BLDLIBDWARF 20140131
58as an example.
59
60Sanity checking:
61Recent gcc has some checks that can be done at runtime.
62  -fsanitize=address
63  -fsanitize=leak
64  -fsanitize=undefined
65which are turned on here by --enable-sanitize at build time.
66
67David Anderson.  Updated September 30,2016.
68