Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
201 changes: 194 additions & 7 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 12 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,20 @@ exclude = [
]

[dependencies]
fallible-iterator = "0.2.0"
scroll = "0.11.0"
uuid = "1.0.0"
fallible-iterator = "0.3.0"
scroll = "0.13.0"
uuid = "1.26.0"
memchr = { version = "2", default-features = false }
chrono = { version = "0.4.45", default-features = false, optional = true }

[features]
default = ["std", "chrono"]
chrono = ["dep:chrono"]
alloc = ["chrono?/alloc"]
std = ["alloc"]
nightly = []

[dev-dependencies]
# for examples/
getopts = "0.2.21"

[package.metadata.release]
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ fn main() -> pdb::Result<()> {
match symbol.parse() {
Ok(pdb::SymbolData::Public(data)) if data.function => {
// we found the location of a function!
let rva = data.offset.to_rva(&address_map).unwrap_or_default
let rva = data.offset.to_rva(&address_map).unwrap_or_default();
println!("{} is {}", rva, data.name);
}
_ => {}
Expand Down
8 changes: 4 additions & 4 deletions examples/pdb2hpp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,13 +184,13 @@ impl<'p> Class<'p> {
// find the method list
match type_finder.find(data.method_list)?.parse()? {
pdb::TypeData::MethodList(method_list) => {
for pdb::MethodListEntry {
for &pdb::MethodListEntry {
attributes,
method_type,
..
} in method_list.methods
} in method_list.iter()
{
// hooray

let method = Method::find(
data.name,
attributes,
Expand Down Expand Up @@ -365,7 +365,7 @@ fn argument_list(
match type_finder.find(type_index)?.parse()? {
pdb::TypeData::ArgumentList(data) => {
let mut args: Vec<String> = Vec::new();
for arg_type in data.arguments {
for &arg_type in data.iter() {
args.push(type_name(type_finder, arg_type, needed_types)?);
}
Ok(args)
Expand Down
6 changes: 4 additions & 2 deletions fixtures/symbol_server/README.md → fixtures/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# `fixtures/symbol_server/`
# Fixtures

Microsoft operates a [public symbol server](https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/microsoft-public-symbols). The files are large and owned by Microsoft, so we do not host them in this repository.
Microsoft operates a [public symbol server](https://docs.microsoft.com/en-us/windows-hardware/drivers/debugger/microsoft-public-symbols).

The files are large and owned by Microsoft, so we do not host them in this repository.

Before running tests, please run `scripts/download` from the project root folder (where Cargo.lock is located) to seed the files.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions fixtures/rust/basic/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions fixtures/rust/basic/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[package]
name = "big-msf-rust-fixture"
version = "0.1.0"
Loading