<div dir="ltr">Hello all<div><br></div><div>I have following 2 queries:</div><div><br></div><div>1. Can SB APIs of LLDB provide information regarding the loadable <b>Code Segment</b> (r-xp part of /proc/$PID/maps file in case of Linux) of a debugged process? The information I am looking for is start address and end address of the loadable code segment of the debugged process. I know that SBModule class can provide all the <b>Sections</b> of the object file via SBSection class. However, I couldn't find any API in this class that can provide the information I need.</div><div><br></div><div>2. SBSection::GetSectionType() API returns an enum 'SectionType'. Does SectionType represent the section types as specified by different object file formats (Mach-O, PECOFF, ELF)?</div><div><br></div><div>As an example, ELF specification specifies section types like <span style="color:rgb(0,0,0);font-size:10pt">SHT_NULL, </span><span style="font-size:10pt;color:rgb(0,0,0)">SHT_PROGBITS, </span><span style="font-size:10pt;color:rgb(0,0,0)">SHT_RELA, </span><span style="font-size:10pt;color:rgb(0,0,0)">SHT_HASH, </span><span style="font-size:10pt;color:rgb(0,0,0)">SHT_NOTE, </span><span style="font-size:10pt;color:rgb(0,0,0)">SHT_NOBITS etc. </span>However, SectionType enum doesn't contain all these types. Hence, enum SectionType is either a mix of all section types of different object file formats or it is a custom type of LLDB. I will appreciate any comment on this.</div><div><br></div><div><br></div><div>Thanks</div><div>Abhishek Aggarwal</div><div><br></div><div><br></div></div>