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

Unified Diff: src/untrusted/minidump_generator/build_id.h

Issue 14757008: Minidumper: Get the nexe's build ID from PT_NOTE when available (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Comment Created 7 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/include/elf_constants.h ('k') | src/untrusted/minidump_generator/build_id.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/minidump_generator/build_id.h
diff --git a/src/untrusted/minidump_generator/build_id.h b/src/untrusted/minidump_generator/build_id.h
new file mode 100644
index 0000000000000000000000000000000000000000..8d0c017cf3bed8e666d7a4be780038915ca87b89
--- /dev/null
+++ b/src/untrusted/minidump_generator/build_id.h
@@ -0,0 +1,19 @@
+/*
+ * Copyright (c) 2013 The Native Client Authors. All rights reserved.
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef NATIVE_CLIENT_SRC_UNTRUSTED_MINIDUMP_GENERATOR_BUILD_ID_H_
+#define NATIVE_CLIENT_SRC_UNTRUSTED_MINIDUMP_GENERATOR_BUILD_ID_H_ 1
+
+/*
+ * Get the build ID for the nexe. This is a byte string that uniquely
+ * identifies the executable, typically a hash of its contents.
+ *
+ * On success, this returns 1 and fills out *data and *size. If the
+ * build ID cannot be found, this returns 0.
+ */
+int nacl_get_build_id(const char **data, size_t *size);
+
+#endif
« no previous file with comments | « src/include/elf_constants.h ('k') | src/untrusted/minidump_generator/build_id.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698