Skip to content

Conversation

@nnethercote
Copy link
Contributor

This involves:

  • A new option: -b/--breakpad, for specifying the Breakpad symbols
    directory.
  • Code for finding particular .sym files within that directory.
  • Adding a space before the address in output lines, so they don't match
    the input regexp and thus won't be double processed.
  • A new test, test_breakpad.

r? @gabrielesvelto

This involves:
- A new option: `-b`/`--breakpad`, for specifying the Breakpad symbols
  directory.
- Code for finding particular `.sym` files within that directory.
- Adding a space before the address in output lines, so they don't match
  the input regexp and thus won't be double processed.
- A new test, `test_breakpad`.
Copy link
Collaborator

@gabrielesvelto gabrielesvelto left a comment

Choose a reason for hiding this comment

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

LGTM but we'll have to figure out how to make sure we enforce the one-uuid-per-object constraint when we invoke the script.

@nnethercote
Copy link
Contributor Author

@gabrielesvelto: I have added a second commit that handles multiple uuids. Please review! Thanks.

Copy link
Collaborator

@gabrielesvelto gabrielesvelto left a comment

Choose a reason for hiding this comment

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

LGTM but open an issue to get rid of the dependency on fileid when it's feasible to do so.

Comment on lines +377 to +381
let output = Command::new(fileid_exe)
.arg(&bin_file)
.output()
.map_err(|_| format!("run `{}` for", fileid_exe))?;
let uuid = str::from_utf8(&output.stdout).unwrap().trim_end();
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm still amazed at how concise Rust can be. Doing this stuff in C/C++ would be at least 100+ lines.

@nnethercote
Copy link
Contributor Author

I opened #18 for removing the dependence on fileid.

@nnethercote nnethercote merged commit 6389b2f into mozilla:master Mar 11, 2020
@nnethercote nnethercote deleted the support-breakpad-symbols branch March 11, 2020 21:54
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Mar 16, 2020
…svelto

This uses `fix-stacks`'s new Breakpad symbols support from
mozilla/fix-stacks#16.

The patch also updates some comments in `dmd.py` to account for some very
slight changes in `fix-stacks`'s output.

Differential Revision: https://phabricator.services.mozilla.com/D66363
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Mar 16, 2020
…svelto

This uses `fix-stacks`'s new Breakpad symbols support from
mozilla/fix-stacks#16.

The patch also updates some comments in `dmd.py` to account for some very
slight changes in `fix-stacks`'s output.

Differential Revision: https://phabricator.services.mozilla.com/D66363

--HG--
extra : moz-landing-system : lando
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Mar 16, 2020
…svelto

This uses `fix-stacks`'s new Breakpad symbols support from
mozilla/fix-stacks#16.

The patch also updates some comments in `dmd.py` to account for some very
slight changes in `fix-stacks`'s output.

Differential Revision: https://phabricator.services.mozilla.com/D66363

UltraBlame original commit: 10998b6bf6d86d1201bdc9c0027154cf42970315
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Mar 16, 2020
…svelto

This uses `fix-stacks`'s new Breakpad symbols support from
mozilla/fix-stacks#16.

The patch also updates some comments in `dmd.py` to account for some very
slight changes in `fix-stacks`'s output.

Differential Revision: https://phabricator.services.mozilla.com/D66363

UltraBlame original commit: 10998b6bf6d86d1201bdc9c0027154cf42970315
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Mar 16, 2020
…svelto

This uses `fix-stacks`'s new Breakpad symbols support from
mozilla/fix-stacks#16.

The patch also updates some comments in `dmd.py` to account for some very
slight changes in `fix-stacks`'s output.

Differential Revision: https://phabricator.services.mozilla.com/D66363

UltraBlame original commit: 10998b6bf6d86d1201bdc9c0027154cf42970315
gabrielesvelto pushed a commit to gabrielesvelto/fix-stacks that referenced this pull request Feb 3, 2021
…ng it have IMAGE_SCN_CNT_CODE or IMAGE_SCN_MEM_EXECUTE flags (mozilla#16)
bhearsum pushed a commit to mozilla-releng/staging-firefox that referenced this pull request May 1, 2025
…svelto

This uses `fix-stacks`'s new Breakpad symbols support from
mozilla/fix-stacks#16.

The patch also updates some comments in `dmd.py` to account for some very
slight changes in `fix-stacks`'s output.

Differential Revision: https://phabricator.services.mozilla.com/D66363
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants