|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | - | - |
| README.txt | D | 22-Nov-2023 | 1.5 KiB | 46 | 29 |
| d3basics.c | D | 22-Nov-2023 | 46.5 KiB | 1,231 | 1,007 |
| debuginfo.c | D | 22-Nov-2023 | 149.6 KiB | 4,439 | 2,975 |
| image.c | D | 22-Nov-2023 | 36.2 KiB | 1,073 | 770 |
| lzoconf.h | D | 22-Nov-2023 | 14.9 KiB | 447 | 280 |
| lzodefs.h | D | 22-Nov-2023 | 66.8 KiB | 1,853 | 1,805 |
| minilzo-inl.c | D | 22-Nov-2023 | 138.1 KiB | 4,584 | 4,279 |
| minilzo.h | D | 22-Nov-2023 | 3.6 KiB | 110 | 33 |
| misc.c | D | 22-Nov-2023 | 7.4 KiB | 270 | 208 |
| priv_d3basics.h | D | 22-Nov-2023 | 21.4 KiB | 695 | 516 |
| priv_image.h | D | 22-Nov-2023 | 12.4 KiB | 352 | 178 |
| priv_misc.h | D | 22-Nov-2023 | 4.3 KiB | 132 | 60 |
| priv_readdwarf.h | D | 22-Nov-2023 | 2.6 KiB | 79 | 22 |
| priv_readdwarf3.h | D | 22-Nov-2023 | 2.3 KiB | 60 | 15 |
| priv_readelf.h | D | 22-Nov-2023 | 2.3 KiB | 63 | 8 |
| priv_readexidx.h | D | 22-Nov-2023 | 1.9 KiB | 51 | 10 |
| priv_readmacho.h | D | 22-Nov-2023 | 2.1 KiB | 56 | 7 |
| priv_readpdb.h | D | 22-Nov-2023 | 2.4 KiB | 67 | 17 |
| priv_storage.h | D | 22-Nov-2023 | 42.4 KiB | 1,156 | 485 |
| priv_tytypes.h | D | 22-Nov-2023 | 7.9 KiB | 225 | 129 |
| readdwarf.c | D | 22-Nov-2023 | 148.2 KiB | 4,241 | 2,914 |
| readdwarf3.c | D | 22-Nov-2023 | 194.6 KiB | 5,277 | 3,564 |
| readelf.c | D | 22-Nov-2023 | 118.1 KiB | 3,044 | 2,166 |
| readexidx.c | D | 22-Nov-2023 | 38.9 KiB | 1,098 | 669 |
| readmacho.c | D | 22-Nov-2023 | 43.8 KiB | 1,195 | 768 |
| readpdb.c | D | 22-Nov-2023 | 83.7 KiB | 2,592 | 1,963 |
| storage.c | D | 22-Nov-2023 | 80.1 KiB | 2,455 | 1,764 |
| tytypes.c | D | 22-Nov-2023 | 31.5 KiB | 932 | 785 |
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