This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: A question about .debug_macro sections and split dwarf


On Fri, Dec 18, 2015 at 2:22 PM, Eric Christopher <echristo@gmail.com> wrote:
>
>
> On Fri, Dec 18, 2015 at 2:20 PM Siva Chandra <sivachandra@google.com> wrote:
>>
>> On Fri, Dec 18, 2015 at 2:17 PM, Eric Christopher <echristo@gmail.com>
>> wrote:
>> > Does the object file without -gsplit-dwarf have multiple sections? If
>> > so,
>> > that should narrow it down for you, otherwise it's really curious.
>>
>> Without -gsplit-dwarf, there is only one .debug_macro section.
>>
>
> Well, that's fascinating. My guess is something in objcopy is mangling.

I did some digging last week. It seemed to me that each block of macro
entries pointed to by a DW_MACRO_transparent_include (when NOT using
-gsplit-dwarf) was getting its own .debug_macro section when using
-gsplit-dwarf.

>> > On Fri, Dec 11, 2015 at 10:33 AM Siva Chandra <sivachandra@google.com>
>> > wrote:
>> >>
>> >> Hello,
>> >>
>> >> When I compile my cc file with "-g3 -gsplit-dwarf", the resulting .dwo
>> >> file has multiple .debug_macro.dwo sections. Is that expected? I did
>> >> not find anything in the proposal which explains this:
>> >> http://www.dwarfstd.org/ShowIssue.php?issue=110722.1
>> >>
>> >> Thanks,
>> >> Siva Chandra


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]