diff options
| author | Glenn Smith <glenn@vector35.com> | 2024-04-29 19:15:14 -0400 |
|---|---|---|
| committer | Glenn Smith <glenn@vector35.com> | 2024-06-04 14:37:41 -0400 |
| commit | 2961527337029178466940210708261849510430 (patch) | |
| tree | 4f3576880f9cfee102f6ff89a7cf29f017a64758 /rust/examples | |
| parent | 8404673844972989990576235419181774028112 (diff) | |
PDB: Fix confidence on demangled symbols
Diffstat (limited to 'rust/examples')
| -rw-r--r-- | rust/examples/pdb-ng/src/symbol_parser.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/rust/examples/pdb-ng/src/symbol_parser.rs b/rust/examples/pdb-ng/src/symbol_parser.rs index cefb7dc2..7193da7d 100644 --- a/rust/examples/pdb-ng/src/symbol_parser.rs +++ b/rust/examples/pdb-ng/src/symbol_parser.rs @@ -1830,7 +1830,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> { // Fallback in case we don't find a specific one t = Some(Conf::new( Type::named_type_from_type(search_type, ty.as_ref()), - max_confidence(), + DEMANGLE_CONFIDENCE, )); if self.settings.get_bool( @@ -1849,10 +1849,10 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> { // Wow! t = Some(Conf::new( Type::named_type_from_type(lengthy_name, ty.as_ref()), - max_confidence(), + DEMANGLE_CONFIDENCE, )); } else { - t = Some(Conf::new(lengthy_type, max_confidence())); + t = Some(Conf::new(lengthy_type, DEMANGLE_CONFIDENCE)); } } } @@ -1884,7 +1884,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> { if let Some(ty) = self.named_types.get(&vt_name) { t = Some(Conf::new( Type::named_type_from_type(&vt_name, ty.as_ref()), - max_confidence(), + DEMANGLE_CONFIDENCE, )); } else { // Sometimes the demangler has trouble with `class Foo` in templates @@ -1896,7 +1896,7 @@ impl<'a, S: Source<'a> + 'a> PDBParserInstance<'a, S> { if let Some(ty) = self.named_types.get(&vt_name) { t = Some(Conf::new( Type::named_type_from_type(&vt_name, ty.as_ref()), - max_confidence(), + DEMANGLE_CONFIDENCE, )); } else { t = Some(Conf::new( |
