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

..--

README.txtD22-Nov-20231.5 KiB4629

d3basics.cD22-Nov-202346.5 KiB1,2311,007

debuginfo.cD22-Nov-2023149.6 KiB4,4392,975

image.cD22-Nov-202336.2 KiB1,073770

lzoconf.hD22-Nov-202314.9 KiB447280

lzodefs.hD22-Nov-202366.8 KiB1,8531,805

minilzo-inl.cD22-Nov-2023138.1 KiB4,5844,279

minilzo.hD22-Nov-20233.6 KiB11033

misc.cD22-Nov-20237.4 KiB270208

priv_d3basics.hD22-Nov-202321.4 KiB695516

priv_image.hD22-Nov-202312.4 KiB352178

priv_misc.hD22-Nov-20234.3 KiB13260

priv_readdwarf.hD22-Nov-20232.6 KiB7922

priv_readdwarf3.hD22-Nov-20232.3 KiB6015

priv_readelf.hD22-Nov-20232.3 KiB638

priv_readexidx.hD22-Nov-20231.9 KiB5110

priv_readmacho.hD22-Nov-20232.1 KiB567

priv_readpdb.hD22-Nov-20232.4 KiB6717

priv_storage.hD22-Nov-202342.4 KiB1,156485

priv_tytypes.hD22-Nov-20237.9 KiB225129

readdwarf.cD22-Nov-2023148.2 KiB4,2412,914

readdwarf3.cD22-Nov-2023194.6 KiB5,2773,564

readelf.cD22-Nov-2023118.1 KiB3,0442,166

readexidx.cD22-Nov-202338.9 KiB1,098669

readmacho.cD22-Nov-202343.8 KiB1,195768

readpdb.cD22-Nov-202383.7 KiB2,5921,963

storage.cD22-Nov-202380.1 KiB2,4551,764

tytypes.cD22-Nov-202331.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