* don't write or reference debug information for a unit if it belongs to a/another package

git-svn-id: trunk@34382 -
This commit is contained in:
svenbarth 2016-08-26 15:09:24 +00:00
parent aaceb5518f
commit 3a9f8e88fd
3 changed files with 3 additions and 3 deletions

View File

@ -589,7 +589,7 @@ implementation
pu:=tused_unit(hp.used_units.first);
while assigned(pu) do
begin
if not pu.u.is_dbginfo_written then
if not pu.u.is_dbginfo_written and not assigned(pu.u.package) then
begin
{ prevent infinte loop for circular dependencies }
pu.u.is_dbginfo_written:=true;

View File

@ -3368,7 +3368,7 @@ implementation
hp:=tmodule(loaded_units.first);
while assigned(hp) do
begin
If (hp.flags and uf_has_dwarf_debuginfo)=uf_has_dwarf_debuginfo then
If ((hp.flags and uf_has_dwarf_debuginfo)=uf_has_dwarf_debuginfo) and not assigned(hp.package) then
begin
list.concat(Tai_const.Createname(make_mangledname('DEBUGSTART',hp.localsymtable,''),0));
list.concat(Tai_const.Createname(make_mangledname('DEBUGEND',hp.localsymtable,''),0));

View File

@ -1854,7 +1854,7 @@ implementation
hp:=tmodule(loaded_units.first);
while assigned(hp) do
begin
If (hp.flags and uf_has_stabs_debuginfo)=uf_has_stabs_debuginfo then
If ((hp.flags and uf_has_stabs_debuginfo)=uf_has_stabs_debuginfo) and not assigned(hp.package) then
begin
list.concat(Tai_const.Createname(make_mangledname('DEBUGINFO',hp.localsymtable,''),0));
list.concat(Tai_const.Createname(make_mangledname('DEBUGSTART',hp.localsymtable,''),0));