mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 04:57:44 +00:00
Ports/gdb: Add descriptions to all gdb patches and remove dead code
Before working on the gdb port some more, I wanted to get these patches cleaned up to have a good base to build upon.
This commit is contained in:
parent
9845164f6a
commit
f01e1d0c17
6 changed files with 57 additions and 27 deletions
|
@ -51,7 +51,6 @@ PORTS_MISSING_DESCRIPTIONS = {
|
||||||
'freetype',
|
'freetype',
|
||||||
'gawk',
|
'gawk',
|
||||||
'gcc',
|
'gcc',
|
||||||
'gdb',
|
|
||||||
'genemu',
|
'genemu',
|
||||||
'gettext',
|
'gettext',
|
||||||
'git',
|
'git',
|
||||||
|
|
|
@ -1,3 +1,13 @@
|
||||||
|
From 32bfc7a161e6bf10decbf29b31c7b547cf250d3a 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/4] 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
|
diff --git a/gdbsupport/alt-stack.h b/gdbsupport/alt-stack.h
|
||||||
index 056ea41..b638533 100644
|
index 056ea41..b638533 100644
|
||||||
--- a/gdbsupport/alt-stack.h
|
--- a/gdbsupport/alt-stack.h
|
||||||
|
@ -68,3 +78,6 @@ index 056ea41..b638533 100644
|
||||||
stack_t m_old_stack;
|
stack_t m_old_stack;
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
--
|
||||||
|
2.32.0
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 581bbef892960b1533aa9d9918f5eeee4bff9cce Mon Sep 17 00:00:00 2001
|
From 883a25f5ed8fd8f13b8e30aed3a25001839d892c Mon Sep 17 00:00:00 2001
|
||||||
From: Brian Gianforcaro <b.gianfo@gmail.com>
|
From: Brian Gianforcaro <b.gianfo@gmail.com>
|
||||||
Date: Tue, 28 Dec 2021 04:35:47 -0800
|
Date: Tue, 28 Dec 2021 04:35:47 -0800
|
||||||
Subject: [PATCH 2/3] serenity: Add basic ptrace based native target for
|
Subject: [PATCH 2/4] serenity: Add basic ptrace based native target for
|
||||||
SerenityOS/i386
|
SerenityOS/i386
|
||||||
|
|
||||||
---
|
---
|
||||||
|
@ -14,10 +14,10 @@ Subject: [PATCH 2/3] serenity: Add basic ptrace based native target for
|
||||||
gdb/osabi.c | 1 +
|
gdb/osabi.c | 1 +
|
||||||
gdb/osabi.h | 1 +
|
gdb/osabi.h | 1 +
|
||||||
gdb/serenity-nat.c | 13 +++++
|
gdb/serenity-nat.c | 13 +++++
|
||||||
gdb/serenity-nat.h | 34 +++++++++++++
|
gdb/serenity-nat.h | 16 +++++++
|
||||||
gdb/serenity-tdep.c | 28 +++++++++++
|
gdb/serenity-tdep.c | 28 +++++++++++
|
||||||
gdb/serenity-tdep.h | 24 ++++++++++
|
gdb/serenity-tdep.h | 24 ++++++++++
|
||||||
12 files changed, 271 insertions(+)
|
12 files changed, 253 insertions(+)
|
||||||
create mode 100644 gdb/i386-serenity-nat.c
|
create mode 100644 gdb/i386-serenity-nat.c
|
||||||
create mode 100644 gdb/i386-serenity-tdep.c
|
create mode 100644 gdb/i386-serenity-tdep.c
|
||||||
create mode 100644 gdb/i386-serenity-tdep.h
|
create mode 100644 gdb/i386-serenity-tdep.h
|
||||||
|
@ -314,10 +314,10 @@ index 0000000..ff740d4
|
||||||
\ No newline at end of file
|
\ No newline at end of file
|
||||||
diff --git a/gdb/serenity-nat.h b/gdb/serenity-nat.h
|
diff --git a/gdb/serenity-nat.h b/gdb/serenity-nat.h
|
||||||
new file mode 100644
|
new file mode 100644
|
||||||
index 0000000..ac3cfaa
|
index 0000000..dcd24ce
|
||||||
--- /dev/null
|
--- /dev/null
|
||||||
+++ b/gdb/serenity-nat.h
|
+++ b/gdb/serenity-nat.h
|
||||||
@@ -0,0 +1,34 @@
|
@@ -0,0 +1,16 @@
|
||||||
+/* Native-dependent code for SerenityOS. */
|
+/* Native-dependent code for SerenityOS. */
|
||||||
+
|
+
|
||||||
+#ifndef SERENITYOS_NAT_H
|
+#ifndef SERENITYOS_NAT_H
|
||||||
|
@ -331,24 +331,6 @@ index 0000000..ac3cfaa
|
||||||
+
|
+
|
||||||
+class serenity_nat_target : public inf_ptrace_target
|
+class serenity_nat_target : public inf_ptrace_target
|
||||||
+{
|
+{
|
||||||
+#if 0
|
|
||||||
+ /* Override some methods to support threads. */
|
|
||||||
+ std::string pid_to_str (ptid_t) override;
|
|
||||||
+ void update_thread_list () override;
|
|
||||||
+ ptid_t wait (ptid_t, struct target_waitstatus *, target_wait_flags) override;
|
|
||||||
+
|
|
||||||
+#ifdef PT_GET_PROCESS_STATE
|
|
||||||
+ void follow_fork (bool, bool) override;
|
|
||||||
+
|
|
||||||
+ int insert_fork_catchpoint (int) override;
|
|
||||||
+
|
|
||||||
+ int remove_fork_catchpoint (int) override;
|
|
||||||
+
|
|
||||||
+ void post_startup_inferior (ptid_t) override;
|
|
||||||
+
|
|
||||||
+ void post_attach (int) override;
|
|
||||||
+#endif
|
|
||||||
+#endif
|
|
||||||
+};
|
+};
|
||||||
+
|
+
|
||||||
+#endif /* serenity-nat.h */
|
+#endif /* serenity-nat.h */
|
|
@ -1,3 +1,14 @@
|
||||||
|
From e87fd74df2c7fcb4b146eb09b5b710a45003999a 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/4] gdb: Add build support for SerenityOS
|
||||||
|
|
||||||
|
---
|
||||||
|
bfd/config.bfd | 9 +++++++++
|
||||||
|
gdbsupport/configure | 2 +-
|
||||||
|
libiberty/configure | 4 +++-
|
||||||
|
3 files changed, 13 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
diff --git a/bfd/config.bfd b/bfd/config.bfd
|
diff --git a/bfd/config.bfd b/bfd/config.bfd
|
||||||
index 30087e3..11dc114 100644
|
index 30087e3..11dc114 100644
|
||||||
--- a/bfd/config.bfd
|
--- a/bfd/config.bfd
|
||||||
|
@ -53,3 +64,6 @@ index fffb91d..defc239 100755
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
--
|
||||||
|
2.32.0
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
From 7eeba40e3e8e3be17c68164c44e5ccf76b732842 Mon Sep 17 00:00:00 2001
|
From 7a5e11d2e9cbe98af96faa4835592686bf261a23 Mon Sep 17 00:00:00 2001
|
||||||
From: Brian Gianforcaro <b.gianfo@gmail.com>
|
From: Brian Gianforcaro <b.gianfo@gmail.com>
|
||||||
Date: Tue, 28 Dec 2021 04:39:25 -0800
|
Date: Tue, 28 Dec 2021 04:39:25 -0800
|
||||||
Subject: [PATCH] serenity: Fix compiler -fpermissive warnings from using
|
Subject: [PATCH 4/4] serenity: Fix compiler -fpermissive warnings from using
|
||||||
latest GCC
|
latest GCC
|
||||||
|
|
||||||
---
|
---
|
22
Ports/gdb/patches/ReadMe.md
Normal file
22
Ports/gdb/patches/ReadMe.md
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
# Patches for gdb on SerenityOS
|
||||||
|
|
||||||
|
## `0001-gdb-Disable-xmalloc-for-alternate_signal_stack-for-s.patch`
|
||||||
|
|
||||||
|
gdb: Disable xmalloc for alternate_signal_stack for serenity
|
||||||
|
|
||||||
|
|
||||||
|
## `0002-serenity-Add-basic-ptrace-based-native-target-for-Se.patch`
|
||||||
|
|
||||||
|
serenity: Add basic ptrace based native target for SerenityOS/i386
|
||||||
|
|
||||||
|
|
||||||
|
## `0003-gdb-Add-build-support-for-SerenityOS.patch`
|
||||||
|
|
||||||
|
gdb: Add build support for SerenityOS
|
||||||
|
|
||||||
|
|
||||||
|
## `0004-serenity-Fix-compiler-fpermissive-warnings-from-usin.patch`
|
||||||
|
|
||||||
|
serenity: Fix compiler -fpermissive warnings from using latest GCC
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue