mirror of
https://git.suyu.dev/suyu/breakpad.git
synced 2026-01-02 04:34:47 +01:00
Mac dump_syms: Fix -a on arm64
- Resets `selected_object_file_` when a new file is read. This was a dangling pointer previously. - When `-a` is provided, ensures that both parts of a split module use the given architecture. Bug: None Change-Id: I581d41b0eee4ec2b0d598fb80b9065e7ebde0e0d Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/3788222 Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
parent
afc8daa2de
commit
86ea554601
2 changed files with 37 additions and 25 deletions
|
|
@ -121,6 +121,7 @@ vector<string> list_directory(const string& directory) {
|
|||
namespace google_breakpad {
|
||||
|
||||
bool DumpSymbols::Read(const string& filename) {
|
||||
selected_object_file_ = nullptr;
|
||||
struct stat st;
|
||||
if (stat(filename.c_str(), &st) == -1) {
|
||||
fprintf(stderr, "Could not access object file %s: %s\n",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue