feat: add github ci

This commit is contained in:
maxime1907
2022-09-25 17:24:40 +02:00
parent aedfd27b54
commit db4faf4f64
11 changed files with 232 additions and 59 deletions
@@ -1,7 +1,7 @@
From 1f35257db226d6d0189cff0832a97cccc639c91a Mon Sep 17 00:00:00 2001
From: Asher Baker <[email protected]>
Date: Sun, 13 Jan 2019 12:34:45 +0000
Subject: [PATCH 1/4] Ignore invalid modules rather than bailing on the entire
Subject: [PATCH 1/5] Ignore invalid modules rather than bailing on the entire
module list
---
@@ -1,22 +1,21 @@
From 8aaf6e84a6704eb538f68a3e6fb6c3a8c93f1d8d Mon Sep 17 00:00:00 2001
From b38ee2510107352b73cd02ff66f7bd1c3d1114e6 Mon Sep 17 00:00:00 2001
From: Asher Baker <[email protected]>
Date: Sun, 13 Jan 2019 12:35:05 +0000
Subject: [PATCH 2/4] Write FUNC records instead of PUBLIC for ELF symbols with
sizes
Date: Sun, 25 Sep 2022 15:03:27 +0200
Subject: [PATCH 2/5] Write FUNC records instead of PUBLIC for ELF symbols with
---
src/common/linux/elf_symbols_to_module.cc | 17 +++++++++++++----
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/src/common/linux/elf_symbols_to_module.cc b/src/common/linux/elf_symbols_to_module.cc
index 562875e1..e11a5265 100644
index 4aee38d6..5b7991d5 100644
--- a/src/common/linux/elf_symbols_to_module.cc
+++ b/src/common/linux/elf_symbols_to_module.cc
@@ -156,19 +156,28 @@ bool ELFSymbolsToModule(const uint8_t *symtab_section,
@@ -156,19 +156,28 @@ bool ELFSymbolsToModule(const uint8_t* symtab_section,
while(!iterator->at_end) {
if (ELF32_ST_TYPE(iterator->info) == STT_FUNC &&
iterator->shndx != SHN_UNDEF) {
- Module::Extern *ext = new Module::Extern(iterator->value);
- Module::Extern* ext = new Module::Extern(iterator->value);
- ext->name = SymbolString(iterator->name_offset, strings);
+ string name = SymbolString(iterator->name_offset, strings);
#if !defined(__ANDROID__) // Android NDK doesn't provide abi::__cxa_demangle.
@@ -46,5 +45,5 @@ index 562875e1..e11a5265 100644
++iterator;
}
--
2.21.0
2.25.1
@@ -1,7 +1,7 @@
From 21dfe5a22da02ed8bcd9fa1cca7c18c8c5310172 Mon Sep 17 00:00:00 2001
From: patches <patches@localhost>
From: Asher Baker <[email protected]>
Date: Sun, 28 Apr 2019 18:45:57 +0000
Subject: [PATCH 3/4] Avoid using _ZNSsC1ERKSsjRKSaIcE GLIBCXX symbol due to
Subject: [PATCH 3/5] Avoid using _ZNSsC1ERKSsjRKSaIcE GLIBCXX symbol due to
version compat issues
---
@@ -1,51 +1,25 @@
From 2f217812634d5e6c56f0cf9e7a4c9b7fb390e954 Mon Sep 17 00:00:00 2001
From: patches <patches@localhost>
From bbae57fd5ddcd65c034ef21586fab29600367f75 Mon Sep 17 00:00:00 2001
From: Asher Baker <[email protected]>
Date: Sat, 20 Jul 2019 15:52:37 +0100
Subject: [PATCH 4/4] Support compilation on VS 2015
Subject: [PATCH 4/5] Support compilation on VS 2015
---
src/common/windows/pe_util.cc | 1 +
src/common/windows/pe_util.h | 2 +-
src/tools/windows/dump_syms/dump_syms.cc | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
src/common/windows/pe_util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/windows/pe_util.cc b/src/common/windows/pe_util.cc
index 6fa63fa3..03dcd142 100644
--- a/src/common/windows/pe_util.cc
+++ b/src/common/windows/pe_util.cc
@@ -35,6 +35,7 @@
#include <ImageHlp.h>
#include <functional>
+#include <memory>
#include "common/windows/string_utils-inl.h"
#include "common/windows/guid_string.h"
diff --git a/src/common/windows/pe_util.h b/src/common/windows/pe_util.h
index 634ba293..3eefa761 100644
index 6c6b364f..80aba5e5 100644
--- a/src/common/windows/pe_util.h
+++ b/src/common/windows/pe_util.h
@@ -60,7 +60,7 @@ wstring GenerateDebugIdentifier(DWORD age, DWORD signature);
// Converts |machine| enum value to the corresponding string used by Breakpad.
// The enum is IMAGE_FILE_MACHINE_*, contained in winnt.h.
-constexpr const wchar_t* FileHeaderMachineToCpuString(WORD machine) {
+static inline const wchar_t* FileHeaderMachineToCpuString(WORD machine) {
switch (machine) {
case IMAGE_FILE_MACHINE_I386: {
return L"x86";
diff --git a/src/tools/windows/dump_syms/dump_syms.cc b/src/tools/windows/dump_syms/dump_syms.cc
index 5b7d1777..1f22cfc2 100644
--- a/src/tools/windows/dump_syms/dump_syms.cc
+++ b/src/tools/windows/dump_syms/dump_syms.cc
@@ -33,6 +33,7 @@
#include <stdio.h>
#include <wchar.h>
@@ -59,7 +59,7 @@ wstring GenerateDebugIdentifier(DWORD age, DWORD signature);
+#include <memory>
#include <string>
#include "common/windows/pdb_source_line_writer.h"
// Converts |machine| enum value to the corresponding string used by Breakpad.
// The enum is IMAGE_FILE_MACHINE_*, contained in winnt.h.
-constexpr const wchar_t* FileHeaderMachineToCpuString(WORD machine) {
+static inline const wchar_t* FileHeaderMachineToCpuString(WORD machine) {
switch (machine) {
case IMAGE_FILE_MACHINE_I386: {
return L"x86";
--
2.21.0
2.25.1
@@ -0,0 +1,25 @@
From 02a0fcc0685dc8c4a6c4e1d38f4704b4213ddc34 Mon Sep 17 00:00:00 2001
From: maxime1907 <[email protected]>
Date: Sun, 25 Sep 2022 15:28:26 +0200
Subject: [PATCH 5/5] Fix 32 bit build on 64 bit linux systems
---
src/common/stabs_reader.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/common/stabs_reader.h b/src/common/stabs_reader.h
index 3f5f0a8f..68713503 100644
--- a/src/common/stabs_reader.h
+++ b/src/common/stabs_reader.h
@@ -56,7 +56,7 @@
#ifdef HAVE_MACH_O_NLIST_H
#include <mach-o/nlist.h>
#elif defined(HAVE_A_OUT_H)
-#include <a.out.h>
+#include <linux/a.out.h>
#endif
#include <string>
--
2.25.1