@@ -35,13 +35,12 @@ use pdb::{
3535} ;
3636
3737use binaryninja:: architecture:: { Architecture , ArchitectureExt , Register } ;
38- use binaryninja:: binaryninjacore_sys:: BNVariableSourceType ;
3938use binaryninja:: binaryview:: BinaryViewBase ;
4039use binaryninja:: demangle:: demangle_ms;
4140use binaryninja:: rc:: Ref ;
4241use binaryninja:: types:: {
4342 max_confidence, min_confidence, Conf , ConfMergable , FunctionParameter , QualifiedName ,
44- StructureBuilder , Type , TypeClass , Variable ,
43+ StructureBuilder , Type , TypeClass , Variable , VariableSourceType ,
4544} ;
4645
4746use crate :: PDBParserInstance ;
@@ -736,7 +735,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
736735 let storage = if let Some ( reg) = self . convert_register ( data. register ) {
737736 vec ! [ ParsedLocation {
738737 location: Variable {
739- t: BNVariableSourceType :: RegisterVariableSourceType ,
738+ t: VariableSourceType :: RegisterVariableSourceType ,
740739 index: 0 ,
741740 storage: reg,
742741 } ,
@@ -1425,7 +1424,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
14251424 type_ : self . lookup_type_conf ( & data. type_index , false ) ?,
14261425 storage : vec ! [ ParsedLocation {
14271426 location: Variable {
1428- t: BNVariableSourceType :: StackVariableSourceType ,
1427+ t: VariableSourceType :: StackVariableSourceType ,
14291428 index: 0 ,
14301429 storage: data. offset as i64 ,
14311430 } ,
@@ -1443,7 +1442,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
14431442 type_ : self . lookup_type_conf ( & data. type_index , false ) ?,
14441443 storage : vec ! [ ParsedLocation {
14451444 location: Variable {
1446- t: BNVariableSourceType :: StackVariableSourceType ,
1445+ t: VariableSourceType :: StackVariableSourceType ,
14471446 index: 0 ,
14481447 storage: data. offset as i64 ,
14491448 } ,
@@ -1587,7 +1586,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
15871586 if let Some ( reg) = self . convert_register ( data. register ) {
15881587 Ok ( Some ( ParsedSymbol :: Location ( ParsedLocation {
15891588 location : Variable {
1590- t : BNVariableSourceType :: RegisterVariableSourceType ,
1589+ t : VariableSourceType :: RegisterVariableSourceType ,
15911590 index : 0 ,
15921591 storage : reg,
15931592 } ,
@@ -1654,7 +1653,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
16541653 type_ : self . lookup_type_conf ( & data. type_index , false ) ?,
16551654 storage : vec ! [ ParsedLocation {
16561655 location: Variable {
1657- t: BNVariableSourceType :: StackVariableSourceType ,
1656+ t: VariableSourceType :: StackVariableSourceType ,
16581657 index: 0 ,
16591658 storage: data. offset as i64 ,
16601659 } ,
@@ -1696,14 +1695,14 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
16961695 for loc in & new_storage {
16971696 match loc {
16981697 Variable {
1699- t : BNVariableSourceType :: RegisterVariableSourceType ,
1698+ t : VariableSourceType :: RegisterVariableSourceType ,
17001699 ..
17011700 } => {
17021701 // Assume register vars are always parameters
17031702 really_is_param = true ;
17041703 }
17051704 Variable {
1706- t : BNVariableSourceType :: StackVariableSourceType ,
1705+ t : VariableSourceType :: StackVariableSourceType ,
17071706 storage,
17081707 ..
17091708 } if * storage >= 0 => {
0 commit comments