• Home
Name Date Size #Lines LOC

..--

README.txtD07-May-20241.5 KiB4629

d3basics.cD07-May-202446.5 KiB1,2311,007

debuginfo.cD07-May-2024149.6 KiB4,4392,975

image.cD07-May-202436.2 KiB1,073770

lzoconf.hD07-May-202414.9 KiB447280

lzodefs.hD07-May-202466.8 KiB1,8531,805

minilzo-inl.cD07-May-2024138.1 KiB4,5844,279

minilzo.hD07-May-20243.6 KiB11033

misc.cD07-May-20247.4 KiB270208

priv_d3basics.hD07-May-202421.4 KiB695516

priv_image.hD07-May-202412.4 KiB352178

priv_misc.hD07-May-20244.3 KiB13260

priv_readdwarf.hD07-May-20242.6 KiB7922

priv_readdwarf3.hD07-May-20242.3 KiB6015

priv_readelf.hD07-May-20242.3 KiB638

priv_readexidx.hD07-May-20241.9 KiB5110

priv_readmacho.hD07-May-20242.1 KiB567

priv_readpdb.hD07-May-20242.4 KiB6717

priv_storage.hD07-May-202442.4 KiB1,156485

priv_tytypes.hD07-May-20247.9 KiB225129

readdwarf.cD07-May-2024148.2 KiB4,2412,914

readdwarf3.cD07-May-2024194.6 KiB5,2773,564

readelf.cD07-May-2024118.1 KiB3,0442,166

readexidx.cD07-May-202438.9 KiB1,098669

readmacho.cD07-May-202443.8 KiB1,195768

readpdb.cD07-May-202483.7 KiB2,5921,963

storage.cD07-May-202480.1 KiB2,4551,764

tytypes.cD07-May-202431.5 KiB932785

README.txt

1
2On 4 Apr 06, the debuginfo reader (m_debuginfo) was majorly cleaned up
3and restructured.  It has been a bit of a tangle for a while.  On 18 Sep 14
4the STABS support was completely removed. The new structure looks like this:
5
6                  debuginfo.c
7
8                   readelf.c
9
10                  readdwarf.c
11
12                   storage.c
13
14Each .c can only call those below it on the page.
15
16storage.c contains the SegInfo structure and stuff for
17maintaining/searching arrays of symbols, line-numbers, and Dwarf CF
18info records.
19
20readdwarf.c parses the relevant kind of info and call storage.c to
21store the results.
22
23readelf.c reads ELF format, hands syms directly to storage.c,
24then delegates to readdwarf.c for debug info.  All straightforward.
25
26debuginfo.c is the top-level file, and is quite small.
27
28There are 2 goals to this:
29
30(1) Generally tidy up something which needs tidying up
31
32(2) Introduce more modularity, so as to make it easier to add
33    readers for other formats, if needed
34
35Rationale for (1) and (2) are obvious.
36
37Originally there was also goal (3) Simplify the stabs reader.
38But stabs support was broken since 3.9.0 and completely removed in 3.10.0.
39
40The worst thing is that it is the stabs type reader that was crashing,
41not the stabs line-number reader.
42Old versions of the stabs type reader can be found in the subversion repository
43as m_debuginfo/UNUSED_STABS.txt, the stabs line-number reader was in
44m_debuginfo/readstabs.c. The old version of this file explained more
45about the setup.
46