Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(632)

Side by Side Diff: src/common/linux/file_id.h

Issue 2052263002: Dump INFO CODE_ID containing Build ID in Linux dump_syms (Closed) Base URL: https://chromium.googlesource.com/breakpad/breakpad.git@master
Patch Set: Oops, it's supposed to be INFO CODE_ID Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/common/linux/elfutils.h ('k') | src/common/linux/file_id.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006, Google Inc. 1 // Copyright (c) 2006, Google Inc.
2 // All rights reserved. 2 // All rights reserved.
3 // 3 //
4 // Redistribution and use in source and binary forms, with or without 4 // Redistribution and use in source and binary forms, with or without
5 // modification, are permitted provided that the following conditions are 5 // modification, are permitted provided that the following conditions are
6 // met: 6 // met:
7 // 7 //
8 // * Redistributions of source code must retain the above copyright 8 // * Redistributions of source code must retain the above copyright
9 // notice, this list of conditions and the following disclaimer. 9 // notice, this list of conditions and the following disclaimer.
10 // * Redistributions in binary form must reproduce the above 10 // * Redistributions in binary form must reproduce the above
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 static bool ElfFileIdentifierFromMappedFile( 66 static bool ElfFileIdentifierFromMappedFile(
67 const void* base, 67 const void* base,
68 wasteful_vector<uint8_t>& identifier); 68 wasteful_vector<uint8_t>& identifier);
69 69
70 // Convert the |identifier| data to a string. The string will 70 // Convert the |identifier| data to a string. The string will
71 // be formatted as a UUID in all uppercase without dashes. 71 // be formatted as a UUID in all uppercase without dashes.
72 // (e.g., 22F065BBFC9C49F780FE26A7CEBD7BCE). 72 // (e.g., 22F065BBFC9C49F780FE26A7CEBD7BCE).
73 static std::string ConvertIdentifierToUUIDString( 73 static std::string ConvertIdentifierToUUIDString(
74 const wasteful_vector<uint8_t>& identifier); 74 const wasteful_vector<uint8_t>& identifier);
75 75
76 // Convert the entire |identifier| data to a hex string.
77 static std::string ConvertIdentifierToString(
78 const wasteful_vector<uint8_t>& identifier);
79
76 private: 80 private:
77 // Storage for the path specified 81 // Storage for the path specified
78 std::string path_; 82 std::string path_;
79 }; 83 };
80 84
81 } // namespace google_breakpad 85 } // namespace google_breakpad
82 86
83 #endif // COMMON_LINUX_FILE_ID_H__ 87 #endif // COMMON_LINUX_FILE_ID_H__
OLDNEW
« no previous file with comments | « src/common/linux/elfutils.h ('k') | src/common/linux/file_id.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698