Lines Matching refs:ID
946 my $ID = undef;
953 if(defined $ID) {
954 $ImportedUnit{$ID}{$Num++} = $_;
962 $ID = $1;
964 $ImportedUnit{$ID}{0} = $_;
968 $ID = undef;
970 elsif(defined $ID)
972 $ImportedDecl{$1} = $ID;
973 $ImportedUnit{$ID}{$Num++} = $_;
1284 my $ID = $_[0];
1286 if(defined $DWARF_Info{$ID}{"decl_file"})
1288 my $File = $DWARF_Info{$ID}{"decl_file"};
1289 my $Unit = $DWARF_Info{$ID}{"Unit"};
1293 if($ID>=0) {
1326 my $ID = undef;
1384 if(defined $ID and $Line=~/\s*DW_AT_(\w+)\s*:\s+(.+?)\s*\Z/)
1424 delete($DWARF_Info{$ID}{"Unit"});
1548 $Post_Change{$ID} = 1;
1555 and not $Post_Change{$ID}) {
1570 $DWARF_Info{$ID}{$Attr} = "$Val";
1669 $ID = hex($2);
1778 $ID = -$ID;
1797 $ID += $ID_Shift;
1806 if($TypeUnit_Offset+$Type_Offset+$ID_Shift==$ID)
1808 $TypeUnit{$TypeUnit_Sign} = "$ID";
1814 $DWARF_Info{$ID}{"Kind"} = $Kind;
1815 $DWARF_Info{$ID}{"NS"} = $NS;
1821 $DWARF_Info{$ID}{"Unit"} = $CUnit;
1826 $MAX_ID = $ID;
1837 if(not defined $ID) {
2027 foreach my $ID (keys(%Post_Change))
2029 if(my $Type = $DWARF_Info{$ID}{"type"})
2032 $DWARF_Info{$ID}{"type"} = $To;
2035 if(my $Signature = $DWARF_Info{$ID}{"signature"})
2038 $DWARF_Info{$ID}{"signature"} = $To;
2050 foreach my $ID (keys(%UsedDecl))
2052 if(my $U_ID = $ImportedDecl{$ID})
2103 foreach my $ID (@IDs)
2105 $ID = "$ID";
2107 my $Kind = $DWARF_Info{$ID}{"Kind"};
2108 my $NS = $DWARF_Info{$ID}{"NS"};
2124 delete($DWARF_Info{$ID}{"NS"});
2138 $CurID{$NS} = $ID;
2143 $NameSpace{$ID} = $Scope;
2149 $ClassMethods{$Scope}{$ID} = 1;
2151 $ClassMethods{$Sp}{$ID} = 1;
2157 if(my $Spec = $DWARF_Info{$ID}{"specification"}) {
2158 $SpecElem{$Spec} = $ID;
2161 if(my $Orig = $DWARF_Info{$ID}{"abstract_origin"}) {
2162 $OrigElem{$Orig} = $ID;
2167 if(not $DWARF_Info{$ID}{"name"}
2168 and $DWARF_Info{$ID}{"linkage_name"})
2170 $DWARF_Info{$ID}{"name"} = unmangleString($DWARF_Info{$ID}{"linkage_name"});
2173 delete($DWARF_Info{$ID}{"linkage_name"});
2181 $NameSpace{$ID} = $Scope;
2184 and not defined $DWARF_Info{$ID}{"data_member_location"})
2190 $TypeMember{$Scope}{keys(%{$TypeMember{$Scope}})} = $ID;
2194 $TypeMember{$Scope}{keys(%{$TypeMember{$Scope}})} = $ID;
2199 $In{"id"} = $DWARF_Info{$ID}{"type"};
2201 if(my $Access = $DWARF_Info{$ID}{"accessibility"})
2209 if(defined $DWARF_Info{$ID}{"virtuality"}) {
2215 delete($DWARF_Info{$ID});
2220 $FuncParam{$PPack}{keys(%{$FuncParam{$PPack}})} = $ID;
2223 $FuncParam{$Scope}{keys(%{$FuncParam{$Scope}})} = $ID;
2228 $FuncParam{$Scope}{keys(%{$FuncParam{$Scope}})} = $ID;
2229 $DWARF_Info{$ID}{"type"} = "-1"; # "..."
2233 if((my $Bound = $DWARF_Info{$ID}{"upper_bound"}) ne "") {
2238 delete($DWARF_Info{$ID});
2244 my %Info = ("type"=>$DWARF_Info{$ID}{"type"}, "key"=>$DWARF_Info{$ID}{"name"});
2246 if(defined $DWARF_Info{$ID}{"const_value"}) {
2247 $Info{"value"} = $DWARF_Info{$ID}{"const_value"};
2250 if(defined $DWARF_Info{$ID}{"default_value"}) {
2290 foreach my $ID (@IDs)
2292 if(my $Kind = $DWARF_Info{$ID}{"Kind"})
2295 getTypeInfo($ID);
2338 foreach my $ID (sort {int($a) <=> int($b)} keys(%DWARF_Info))
2340 if($ID<0)
2345 if($DWARF_Info{$ID}{"Kind"} eq "subprogram"
2346 or $DWARF_Info{$ID}{"Kind"} eq "variable")
2348 getSymbolInfo($ID);
2519 foreach my $ID (sort {int($a) <=> int($b)} keys(%SymbolInfo))
2522 if($SymbolInfo{$ID}{"Constructor"})
2524 if($SymbolInfo{$ID}{"MnglName"}=~/(C[1-2])([EI]).+/)
2531 my $Name = $SymbolInfo{$ID}{"MnglName"};
2535 cloneSymbol($ID, $Name);
2543 if($SymbolInfo{$ID}{"Destructor"})
2545 if($SymbolInfo{$ID}{"MnglName"}=~/(D[0-2])([EI]).+/)
2552 my $Name = $SymbolInfo{$ID}{"MnglName"};
2556 cloneSymbol($ID, $Name);
2564 foreach my $ID (sort {int($a) <=> int($b)} keys(%SymbolInfo))
2566 my $Symbol = $SymbolInfo{$ID}{"MnglName"};
2569 $Symbol = $SymbolInfo{$ID}{"ShortName"};
2574 if(not $SymbolInfo{$ID}{"MnglName"})
2576 if($SymbolInfo{$ID}{"Artificial"}
2577 or index($SymbolInfo{$ID}{"ShortName"}, "~")==0)
2579 delete($SymbolInfo{$ID});
2585 if($SymbolInfo{$ID}{"Class"}
2586 and not $SymbolInfo{$ID}{"Data"}
2587 and not $SymbolInfo{$ID}{"Constructor"}
2588 and not $SymbolInfo{$ID}{"Destructor"}
2589 and not $SymbolInfo{$ID}{"Virt"}
2590 and not $SymbolInfo{$ID}{"PureVirt"})
2592 if(not defined $SymbolInfo{$ID}{"Param"}
2593 or $SymbolInfo{$ID}{"Param"}{0}{"name"} ne "this")
2595 $SymbolInfo{$ID}{"Static"} = 1;
2599 if(not $SymbolInfo{$ID}{"Return"})
2601 if(not $SymbolInfo{$ID}{"Constructor"}
2602 and not $SymbolInfo{$ID}{"Destructor"})
2604 $SymbolInfo{$ID}{"Return"} = "1";
2608 if(defined $SymbolInfo{$ID}{"Source"} and defined $SymbolInfo{$ID}{"SourceLine"})
2610 if(not defined $SymbolInfo{$ID}{"Header"} and not defined $SymbolInfo{$ID}{"Line"})
2612 $SymbolInfo{$ID}{"Line"} = $SymbolInfo{$ID}{"SourceLine"};
2613 delete($SymbolInfo{$ID}{"SourceLine"});
2617 my $S = selectSymbol($ID);
2623 if($SymbolInfo{$ID}{"External"})
2638 delete($SymbolInfo{$ID});
2643 if(not selectPublic($Symbol, $ID)
2644 … and (not defined $SymbolInfo{$ID}{"Alias"} or not selectPublic($SymbolInfo{$ID}{"Alias"}, $ID)))
2646 delete($SymbolInfo{$ID});
2654 delete($SymbolInfo{$ID});
2659 $SelectedSymbols{$ID} = $S;
2661 delete($SymbolInfo{$ID}{"External"});
2747 my ($Symbol, $ID) = @_;
2749 my $Header = getFilename($SymbolInfo{$ID}{"Header"});
2790 my ($ID, $Symbol) = @_;
2793 if(not defined $SymbolInfo{$ID + 1}) {
2794 $nID = $ID + 1;
2799 foreach my $Attr (keys(%{$SymbolInfo{$ID}}))
2801 if(ref($SymbolInfo{$ID}{$Attr}) eq "HASH") {
2802 $SymbolInfo{$nID}{$Attr} = dclone($SymbolInfo{$ID}{$Attr});
2805 $SymbolInfo{$nID}{$Attr} = $SymbolInfo{$ID}{$Attr};
2813 my $ID = $_[0];
2815 my $MnglName = $SymbolInfo{$ID}{"MnglName"};
2818 $MnglName = $SymbolInfo{$ID}{"ShortName"};
2835 if(my $Alias = $SymbolInfo{$ID}{"Alias"})
2852 if($SymbolInfo{$ID}{"Data"}
2853 or $SymbolInfo{$ID}{"InLine"}
2854 or $SymbolInfo{$ID}{"PureVirt"})
2856 if(not $SymbolInfo{$ID}{"External"})
2865 elsif(not defined $SymbolInfo{$ID}{"Header"})
3013 my $ID = $_[0];
3017 foreach my $Pos (sort {int($a)<=>int($b)} keys(%{$TmplParam{$ID}}))
3019 my $TTid = $TmplParam{$ID}{$Pos}{"type"};
3023 if(defined $TmplParam{$ID}{$Pos}{"value"}) {
3024 $Val = $TmplParam{$ID}{$Pos}{"value"};
3027 if(defined $TmplParam{$ID}{$Pos}{"key"}) {
3028 $Key = $TmplParam{$ID}{$Pos}{"key"};
3033 if(defined $TmplParam{$ID}{$Pos}{"default"})
3155 my $ID = $_[0];
3156 my $Kind = $DWARF_Info{$ID}{"Kind"};
3158 if(defined $Cache{"getTypeInfo"}{$ID}) {
3162 if(my $N = $NameSpace{$ID})
3181 $LocalType{$ID} = 1;
3190 $Cache{"getTypeInfo"}{$ID} = 1;
3198 if($DWARF_Info{$ID}{"Kind"} eq "subroutine_type") {
3206 if(my $T = $DWARF_Info{$ID}{"type"})
3211 $DWARF_Info{$ID}{"sibling"} = $T;
3212 $DWARF_Info{$T}{"object_pointer"} = $DWARF_Info{$ID}{"containing_type"};
3219 if(defined $ClassMethods{$ID})
3227 and my $BaseType = $DWARF_Info{$ID}{"type"})
3238 delete($TypeInfo{$ID});
3248 if(defined $TypeMember{$ID})
3251 foreach my $Pos (sort {int($a) <=> int($b)} keys(%{$TypeMember{$ID}}))
3253 my $MemId = $TypeMember{$ID}{$Pos};
3284 if($DWARF_Info{$ID}{"Kind"} eq "class_type")
3307 my $NS = $NameSpace{$ID};
3310 if(my $Sp = $DWARF_Info{$ID}{"specification"}) {
3317 if(my $Access = $DWARF_Info{$ID}{"accessibility"})
3339 if(my $Access = $DWARF_Info{$ID}{"accessibility"})
3348 if(my $Size = $DWARF_Info{$ID}{"byte_size"}) {
3352 setSource(\%TInfo, $ID);
3354 if(not $DWARF_Info{$ID}{"name"}
3355 and my $Spec = $DWARF_Info{$ID}{"specification"}) {
3356 $DWARF_Info{$ID}{"name"} = $DWARF_Info{$Spec}{"name"};
3363 if(my $NS_F = completeNS($ID))
3385 if(my $Name = $DWARF_Info{$ID}{"name"})
3401 and my $Sb = $DWARF_Info{$ID}{"sibling"})
3435 init_FuncType(\%TInfo, $ID, "Func");
3439 if(my $Sb = $DWARF_Info{$ID}{"sibling"})
3492 if(my $Class = $DWARF_Info{$ID}{"containing_type"})
3509 foreach my $Pos (sort {int($a) <=> int($b)} keys(%{$Inheritance{$ID}}))
3511 if(my $BaseId = $Inheritance{$ID}{$Pos}{"id"})
3518 if(my $Access = $Inheritance{$ID}{$Pos}{"access"}) {
3521 if($Inheritance{$ID}{$Pos}{"virtual"}) {
3525 $ClassChild{$BaseId}{$ID} = 1;
3555 my $ID_ = $ID;
3587 if(my $Count = $ArrayCount{$ID})
3637 if(defined $TmplParam{$ID})
3640 @TParams = get_TParams($ID);
3671 if(not defined $TypeMember{$ID})
3675 …sg("WARNING", "a \"".$TInfo{"Type"}."\" type with no attributes detected in the DWARF dump ($ID)");
3691 or ($ID>0 and $ID<$TName_Tid{$TInfo{"Type"}}{$TInfo{"Name"}})
3692 or ($ID>0 and $TName_Tid{$TInfo{"Type"}}{$TInfo{"Name"}}<0))
3694 $TName_Tid{$TInfo{"Type"}}{$TInfo{"Name"}} = "$ID";
3696 $TName_Tids{$TInfo{"Type"}}{$TInfo{"Name"}}{$ID} = 1;
3709 $TypeInfo{$ID}{$Attr} = $TInfo{$Attr};
3712 if(my $BASE_ID = $DWARF_Info{$ID}{"specification"})
3717 $TypeInfo{$ID}{$Attr} = $TypeInfo{$BASE_ID}{$Attr};
3721 foreach my $Attr (keys(%{$TypeInfo{$ID}})) {
3722 $TypeInfo{$BASE_ID}{$Attr} = $TypeInfo{$ID}{$Attr};
3725 $TypeSpec{$ID} = $BASE_ID;
3731 my ($R, $ID) = @_;
3733 my $File = $DWARF_Info{$ID}{"decl_file"};
3734 my $Line = $DWARF_Info{$ID}{"decl_line"};
3736 my $Unit = $DWARF_Info{$ID}{"Unit"};
3742 if($ID>=0) {
3802 my $ID = $_[0];
3804 if($DWARF_Info{$ID}{"external"}) {
3807 elsif(my $Spec = $DWARF_Info{$ID}{"specification"})
3853 my $ID = $_[0];
3857 if(my $Link = $DWARF_Info{$ID}{"linkage_name"})
3863 if(my $Low_Pc = $DWARF_Info{$ID}{"low_pc"})
3876 if(my $Loc = $DWARF_Info{$ID}{"location"})
3889 if(my $Link = $DWARF_Info{$ID}{"linkage_name"})
3899 my $ID = $_[0];
3902 my $ID_ = $ID;
3926 my $ID = $_[0];
3928 if(my $N = $NameSpace{$ID})
3937 if(my $Loc = $DWARF_Info{$ID}{"location"})
3945 my $ShortName = $DWARF_Info{$ID}{"name"};
3946 my $MnglName = get_Mangled($ID);
3950 if(my $Sp = $SpecElem{$ID})
4003 setSource($SymbolInfo{$OLD_ID}, $ID);
4012 or not defined $DWARF_Info{$ID}{"low_pc"})
4015 or not $DWARF_Info{$ID}{"specification"})
4017 if(not defined $SpecElem{$ID}
4018 and not defined $OrigElem{$ID}) {
4019 delete($DWARF_Info{$ID});
4065 if(isExternal($ID)) {
4069 if(my $Orig = $DWARF_Info{$ID}{"abstract_origin"})
4088 if($DWARF_Info{$ID}{"artificial"}) {
4108 if(my $Orig = $DWARF_Info{$ID}{"abstract_origin"})
4163 if(my $InLine = $DWARF_Info{$ID}{"inline"})
4177 if(my $Linkage = $DWARF_Info{$ID}{"linkage_name"})
4186 if($DWARF_Info{$ID}{"Kind"} eq "variable")
4190 if(my $Spec = $DWARF_Info{$ID}{"specification"})
4210 if(my $Access = $DWARF_Info{$ID}{"accessibility"})
4217 elsif(not $DWARF_Info{$ID}{"specification"}
4218 and not $DWARF_Info{$ID}{"abstract_origin"})
4220 if(my $NS = $NameSpace{$ID})
4232 if(my $Class = $DWARF_Info{$ID}{"containing_type"})
4237 if(my $NS = $NameSpace{$ID})
4240 $SInfo{"NameSpace"} = completeNS($ID);
4253 if(my $Return = $DWARF_Info{$ID}{"type"})
4257 if(my $Spec = $DWARF_Info{$ID}{"specification"})
4259 if(not $DWARF_Info{$ID}{"type"}) {
4275 if(defined $TmplParam{$ID})
4278 @TParams = get_TParams($ID);
4299 if(my $Virt = $DWARF_Info{$ID}{"virtuality"})
4303 if($D or defined $SpecElem{$ID}) {
4311 if((my $VirtPos = $DWARF_Info{$ID}{"vtable_elem_location"}) ne "")
4317 setSource(\%SInfo, $ID);
4350 foreach my $Pos (sort {int($a) <=> int($b)} keys(%{$FuncParam{$ID}}))
4352 my $ParamId = $FuncParam{$ID}{$Pos};
4356 if(my $Sp = $SpecElem{$ID})
4455 $ID = $BASE_ID;
4457 if(defined $SymbolInfo{$ID}{"PureVirt"})
4459 delete($SymbolInfo{$ID}{"PureVirt"});
4460 $SymbolInfo{$ID}{"Virt"} = 1;
4463 $Mangled_ID{$MnglName} = $ID;
4465 if($DWARF_Info{$ID}{"specification"}) {
4479 $SymbolInfo{$ID}{$Attr}{$K1}{$K2} = $SInfo{$Attr}{$K1}{$K2};
4483 $SymbolInfo{$ID}{$Attr}{$K1} = $SInfo{$Attr}{$K1};
4489 $SymbolInfo{$ID}{$Attr} = $SInfo{$Attr};
4493 if($ID>$GLOBAL_ID) {
4494 $GLOBAL_ID = $ID;
4618 foreach my $ID (sort {int($a)<=>int($b)} keys(%SymbolInfo))
4620 if($SelectedSymbols{$ID}==2)
4625 register_SymbolUsage($ID);
4627 if(my $H = $SymbolInfo{$ID}{"Header"}) {
4630 if(my $S = $SymbolInfo{$ID}{"Source"}) {
4635 foreach my $ID (sort {int($a)<=>int($b)} keys(%SymbolInfo))
4637 if($SelectedSymbols{$ID}==2)
4640 if(my $Class = $SymbolInfo{$ID}{"Class"})
4657 if(my $Header = $SymbolInfo{$ID}{"Header"})
4663 if(my $Source = $SymbolInfo{$ID}{"Source"})
4670 register_SymbolUsage($ID);
4673 delete($SymbolInfo{$ID});
5694 foreach my $ID (keys(%{$ABI{$_}->{"SymbolInfo"}}))
5696 my $Info = $ABI{$_}->{"SymbolInfo"}{$ID};