summaryrefslogtreecommitdiff
path: root/plugins/pdb-ng/src/parser.rs
diff options
context:
space:
mode:
authorMason Reed <mason@vector35.com>2025-12-18 17:14:06 -0500
committerMason Reed <35282038+emesare@users.noreply.github.com>2026-01-11 10:36:01 -0800
commit6f75ca031aa7e8f7e1c706d1880b202137b1996f (patch)
tree1fe8e778f98e4390a1075fc402047e23f2128934 /plugins/pdb-ng/src/parser.rs
parent168a3fd34824adc9c6a606cd144219701f15cccf (diff)
[Rust] Enter more session scoped tracing spans for debug info and binary view callbacks
Diffstat (limited to 'plugins/pdb-ng/src/parser.rs')
-rw-r--r--plugins/pdb-ng/src/parser.rs11
1 files changed, 5 insertions, 6 deletions
diff --git a/plugins/pdb-ng/src/parser.rs b/plugins/pdb-ng/src/parser.rs
index 708bc34a..82a2bd75 100644
--- a/plugins/pdb-ng/src/parser.rs
+++ b/plugins/pdb-ng/src/parser.rs
@@ -30,7 +30,6 @@ use binaryninja::debuginfo::{DebugFunctionInfo, DebugInfo};
use binaryninja::platform::Platform;
use binaryninja::rc::Ref;
use binaryninja::settings::{QueryOptions, Settings};
-use binaryninja::tracing::{debug, info};
use binaryninja::types::{
EnumerationBuilder, NamedTypeReference, NamedTypeReferenceClass, StructureBuilder,
StructureType, Type, TypeClass,
@@ -172,7 +171,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
.add_type(&name.to_string(), ty.as_ref(), &[]); // TODO : Components
}
- info!(
+ tracing::info!(
"PDB found {} types (before resolving NTRs)",
self.named_types.len()
);
@@ -198,9 +197,9 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
)?;
}
- info!("PDB found {} types", self.named_types.len());
- info!("PDB found {} data variables", symbols.len());
- info!("PDB found {} functions", functions.len());
+ tracing::info!("PDB found {} types", self.named_types.len());
+ tracing::info!("PDB found {} data variables", symbols.len());
+ tracing::info!("PDB found {} functions", functions.len());
let allow_void = self.settings.get_bool_with_opts(
"pdb.features.allowVoidGlobals",
@@ -462,7 +461,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> {
if *debug_pdb {
let space = "\t".repeat(self.type_stack.len()) + &"\t".repeat(self.symbol_stack.len());
let msg = format!("{}", msg());
- debug!(
+ tracing::debug!(
"{}{}",
space,
msg.replace("\n", &("\n".to_string() + &space))