aboutsummaryrefslogtreecommitdiff
path: root/bsd-user/elfcore.c
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2021-08-06 14:20:16 -0600
committerWarner Losh <imp@bsdimp.com>2021-09-10 14:13:06 -0600
commit0475f8fac5b576597a50104050451e4ce4fcfc20 (patch)
tree3ff76c70134138acc74769de61ab1d40c7343e55 /bsd-user/elfcore.c
parent25fb5d383d0713fa07d7a3518f8f993841e4e73b (diff)
bsd-user: add stubbed out core dump support
Add a stubbed-out version of the bsd-user fork's core dump support. This allows elfload.c to be almost the same between what's upstream and what's in qemu-project upstream w/o the burden of reviewing the core dump support. Signed-off-by: Stacey Son <sson@FreeBSD.org> Signed-off-by: Warner Losh <imp@bsdimp.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'bsd-user/elfcore.c')
-rw-r--r--bsd-user/elfcore.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/bsd-user/elfcore.c b/bsd-user/elfcore.c
new file mode 100644
index 0000000000..c49d9280e2
--- /dev/null
+++ b/bsd-user/elfcore.c
@@ -0,0 +1,10 @@
+/* Stubbed out version of core dump support, explicitly in public domain */
+
+static int elf_core_dump(int signr, CPUArchState *env)
+{
+ struct elf_note en = { 0 };
+
+ bswap_note(&en);
+
+ return 0;
+}