This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB 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]

[Bug python/17937] New: new_objfile event for "real" objfile should happen before new_objfile event for its separate debug file


https://sourceware.org/bugzilla/show_bug.cgi?id=17937

            Bug ID: 17937
           Summary: new_objfile event for "real" objfile should happen
                    before new_objfile event for its separate debug file
           Product: gdb
           Version: HEAD
            Status: NEW
          Severity: normal
          Priority: P2
         Component: python
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com

I noticed this while debugging pr 17936.

It's arguable that the new_objfile event for the "real" objfile should happen
*before* the new_objfile event for the separate debug file.
Currently the new_objfile event for the separate debug file happens first.
It's unclear whether the real objfile is fully constructed at this point,
so the objfile.owner attribute of the separate debug file may refer to
an incomplete objfile at this point.
There's certainly no attempt to ensure it is fully constructed by then.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


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