Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for QNX Neutrino #507

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
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
Prev Previous commit
Reduce visibility back to pub(super)
flba-eb committed Mar 13, 2023
commit 84fd7c8441b07b40d01868ca0a64870c9a561e45
4 changes: 2 additions & 2 deletions src/symbolize/gimli/parse_running_mmaps_unix.rs
Original file line number Diff line number Diff line change
@@ -8,7 +8,7 @@ use super::mystd::str::FromStr;
use super::{OsString, String, Vec};

#[derive(PartialEq, Eq, Debug)]
pub struct MapsEntry {
pub(super) struct MapsEntry {
/// start (inclusive) and limit (exclusive) of address range.
address: (usize, usize),
/// The perms field are the permissions for the entry
@@ -69,7 +69,7 @@ fn read_file(file: &str) -> Result<String, String> {
Ok(buf)
}

pub fn parse_maps() -> Result<Vec<MapsEntry>, String> {
pub(super) fn parse_maps() -> Result<Vec<MapsEntry>, String> {
let (file, skip) = config();
let content = read_file(file)?;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let content = read_file(file)?;
let content = fs::read_to_string(file).map_err(|e| e.to_string())?;

parse_maps_lines(&content, skip)