summaryrefslogtreecommitdiff
path: root/Ports/gdb/patches
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2022-06-05 03:05:04 +0200
committerLinus Groh <mail@linusgroh.de>2022-06-08 17:58:36 +0100
commitd426c5a4b2eac839497cc2cbeee4b87a1c9ee422 (patch)
treec3484b5625b583fc7da9cc3a7f53b4dc69186fa5 /Ports/gdb/patches
parentd69a79b03b8f2853b60773e38553d662a01ac269 (diff)
downloadserenity-d426c5a4b2eac839497cc2cbeee4b87a1c9ee422.zip
Ports: Format patches without numbering, commit hash or version number
Diffstat (limited to 'Ports/gdb/patches')
-rw-r--r--Ports/gdb/patches/0001-gdb-Disable-xmalloc-for-alternate_signal_stack-for-s.patch10
-rw-r--r--Ports/gdb/patches/0002-serenity-Add-basic-ptrace-based-native-target-for-Se.patch13
-rw-r--r--Ports/gdb/patches/0003-gdb-Add-build-support-for-SerenityOS.patch11
-rw-r--r--Ports/gdb/patches/0004-serenity-Fix-compiler-fpermissive-warnings-from-usin.patch9
-rw-r--r--Ports/gdb/patches/0005-serenity-Implement-custom-wait-override-for-the-sere.patch7
-rw-r--r--Ports/gdb/patches/0006-serenity-Implement-mourn_inferior-override-for-the-s.patch7
6 files changed, 19 insertions, 38 deletions
diff --git a/Ports/gdb/patches/0001-gdb-Disable-xmalloc-for-alternate_signal_stack-for-s.patch b/Ports/gdb/patches/0001-gdb-Disable-xmalloc-for-alternate_signal_stack-for-s.patch
index 0b8cabea9a..be8e969ebb 100644
--- a/Ports/gdb/patches/0001-gdb-Disable-xmalloc-for-alternate_signal_stack-for-s.patch
+++ b/Ports/gdb/patches/0001-gdb-Disable-xmalloc-for-alternate_signal_stack-for-s.patch
@@ -1,15 +1,14 @@
-From 32bfc7a161e6bf10decbf29b31c7b547cf250d3a Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Sat, 19 Feb 2022 19:46:06 -0800
-Subject: [PATCH 1/6] gdb: Disable xmalloc for alternate_signal_stack for
- serenity
+Subject: [PATCH] gdb: Disable xmalloc for alternate_signal_stack for serenity
---
gdbsupport/alt-stack.h | 37 ++++++++++++++++++++++++++-----------
1 file changed, 26 insertions(+), 11 deletions(-)
diff --git a/gdbsupport/alt-stack.h b/gdbsupport/alt-stack.h
-index 056ea41..b638533 100644
+index 8ae229b..6e5b133 100644
--- a/gdbsupport/alt-stack.h
+++ b/gdbsupport/alt-stack.h
@@ -20,7 +20,9 @@
@@ -78,6 +77,3 @@ index 056ea41..b638533 100644
stack_t m_old_stack;
#endif
};
---
-2.32.0
-
diff --git a/Ports/gdb/patches/0002-serenity-Add-basic-ptrace-based-native-target-for-Se.patch b/Ports/gdb/patches/0002-serenity-Add-basic-ptrace-based-native-target-for-Se.patch
index 265b3354ce..129319d8df 100644
--- a/Ports/gdb/patches/0002-serenity-Add-basic-ptrace-based-native-target-for-Se.patch
+++ b/Ports/gdb/patches/0002-serenity-Add-basic-ptrace-based-native-target-for-Se.patch
@@ -1,7 +1,7 @@
-From 883a25f5ed8fd8f13b8e30aed3a25001839d892c Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Tue, 28 Dec 2021 04:35:47 -0800
-Subject: [PATCH 2/6] serenity: Add basic ptrace based native target for
+Subject: [PATCH] serenity: Add basic ptrace based native target for
SerenityOS/i386
---
@@ -55,7 +55,7 @@ index e94a19b..06b87ca 100644
xtensa*-*-linux*) gdb_host=linux ;;
diff --git a/gdb/configure.nat b/gdb/configure.nat
-index e34cccf..38b687e 100644
+index f48fbda..6a0115f 100644
--- a/gdb/configure.nat
+++ b/gdb/configure.nat
@@ -86,6 +86,9 @@ case ${gdb_host} in
@@ -269,7 +269,7 @@ index 0000000..4ee3fba
+
+#endif /* i386-serenity-tdep.h */
diff --git a/gdb/osabi.c b/gdb/osabi.c
-index aabf895..28789e8 100644
+index 40c86e7..2f4423c 100644
--- a/gdb/osabi.c
+++ b/gdb/osabi.c
@@ -82,6 +82,7 @@ static const struct osabi_names gdb_osabi_names[] =
@@ -281,7 +281,7 @@ index aabf895..28789e8 100644
{ "<invalid>", NULL }
};
diff --git a/gdb/osabi.h b/gdb/osabi.h
-index 1ecbed4..73c5549 100644
+index be01673..36471d8 100644
--- a/gdb/osabi.h
+++ b/gdb/osabi.h
@@ -46,6 +46,7 @@ enum gdb_osabi
@@ -398,6 +398,3 @@ index 0000000..43048c6
+extern void serenity_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch);
+
+#endif /* serenity-tdep.h */
---
-2.32.0
-
diff --git a/Ports/gdb/patches/0003-gdb-Add-build-support-for-SerenityOS.patch b/Ports/gdb/patches/0003-gdb-Add-build-support-for-SerenityOS.patch
index 1e4cac555a..a4cd00c86c 100644
--- a/Ports/gdb/patches/0003-gdb-Add-build-support-for-SerenityOS.patch
+++ b/Ports/gdb/patches/0003-gdb-Add-build-support-for-SerenityOS.patch
@@ -1,7 +1,7 @@
-From e87fd74df2c7fcb4b146eb09b5b710a45003999a Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Sat, 19 Feb 2022 19:47:42 -0800
-Subject: [PATCH 3/6] gdb: Add build support for SerenityOS
+Subject: [PATCH] gdb: Add build support for SerenityOS
---
bfd/config.bfd | 9 +++++++++
@@ -37,10 +37,10 @@ index 30087e3..11dc114 100644
i[3-7]86-*-lynxos*)
targ_defvec=i386_elf32_vec
diff --git a/gdbsupport/configure b/gdbsupport/configure
-index a9dd02c..3c5bcf5 100755
+index aad7469..4c45c27 100755
--- a/gdbsupport/configure
+++ b/gdbsupport/configure
-@@ -8934,7 +8934,7 @@ $as_echo "$gdb_cv_cxx_std_thread" >&6; }
+@@ -8958,7 +8958,7 @@ $as_echo "$gdb_cv_cxx_std_thread" >&6; }
# This check must be here, while LIBS includes any necessary
# threading library.
@@ -64,6 +64,3 @@ index fffb91d..defc239 100755
;;
esac
---
-2.32.0
-
diff --git a/Ports/gdb/patches/0004-serenity-Fix-compiler-fpermissive-warnings-from-usin.patch b/Ports/gdb/patches/0004-serenity-Fix-compiler-fpermissive-warnings-from-usin.patch
index 182303e1db..04052e7803 100644
--- a/Ports/gdb/patches/0004-serenity-Fix-compiler-fpermissive-warnings-from-usin.patch
+++ b/Ports/gdb/patches/0004-serenity-Fix-compiler-fpermissive-warnings-from-usin.patch
@@ -1,7 +1,7 @@
-From 7a5e11d2e9cbe98af96faa4835592686bf261a23 Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Tue, 28 Dec 2021 04:39:25 -0800
-Subject: [PATCH 4/6] serenity: Fix compiler -fpermissive warnings from using
+Subject: [PATCH] serenity: Fix compiler -fpermissive warnings from using
latest GCC
---
@@ -9,7 +9,7 @@ Subject: [PATCH 4/6] serenity: Fix compiler -fpermissive warnings from using
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/gdb/inf-ptrace.c b/gdb/inf-ptrace.c
-index afa38de..247000a 100644
+index d628886..5f9bba9 100644
--- a/gdb/inf-ptrace.c
+++ b/gdb/inf-ptrace.c
@@ -288,7 +288,7 @@ inf_ptrace_target::resume (ptid_t ptid, int step, enum gdb_signal signal)
@@ -48,6 +48,3 @@ index afa38de..247000a 100644
if (errno != 0)
break;
}
---
-2.32.0
-
diff --git a/Ports/gdb/patches/0005-serenity-Implement-custom-wait-override-for-the-sere.patch b/Ports/gdb/patches/0005-serenity-Implement-custom-wait-override-for-the-sere.patch
index 1613b7cd96..1740dd6739 100644
--- a/Ports/gdb/patches/0005-serenity-Implement-custom-wait-override-for-the-sere.patch
+++ b/Ports/gdb/patches/0005-serenity-Implement-custom-wait-override-for-the-sere.patch
@@ -1,7 +1,7 @@
-From a80fc99e8f2e1c5ac1620a8c6c26d65daa98204e Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Sun, 20 Feb 2022 00:32:51 -0800
-Subject: [PATCH 5/6] serenity: Implement custom wait override for the
+Subject: [PATCH] serenity: Implement custom wait override for the
serenity_nat_target
While troubleshooting why gdb wasn't working when attempting to debug
@@ -109,6 +109,3 @@ index dcd24ce..9ae3b87 100644
};
#endif /* serenity-nat.h */
---
-2.32.0
-
diff --git a/Ports/gdb/patches/0006-serenity-Implement-mourn_inferior-override-for-the-s.patch b/Ports/gdb/patches/0006-serenity-Implement-mourn_inferior-override-for-the-s.patch
index bba15014af..5ddfe54794 100644
--- a/Ports/gdb/patches/0006-serenity-Implement-mourn_inferior-override-for-the-s.patch
+++ b/Ports/gdb/patches/0006-serenity-Implement-mourn_inferior-override-for-the-s.patch
@@ -1,7 +1,7 @@
-From 1285f88fcd5a8eabf5536e5af8015777f2a64117 Mon Sep 17 00:00:00 2001
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Brian Gianforcaro <b.gianfo@gmail.com>
Date: Sun, 20 Feb 2022 00:44:08 -0800
-Subject: [PATCH 6/6] serenity: Implement mourn_inferior override for the
+Subject: [PATCH] serenity: Implement mourn_inferior override for the
serenity_nat_target
We need to pass `WNOHANG` to our `waitpid(..)` call on SerenityOS,
@@ -46,6 +46,3 @@ index 9ae3b87..35d7ffc 100644
private:
bool m_attach_before_continue_called { false };
};
---
-2.32.0
-