From: Mark Kettenis <kettenis@chello.nl>
To: gdb-patches@sources.redhat.com
Subject: [PATCH]
Date: Thu, 30 Oct 2003 19:36:00 -0000 [thread overview]
Message-ID: <200310301936.h9UJaHRb007542@elgar.kettenis.dyndns.org> (raw)
This marks core files produced by "gcore" as "FreeBSD". Otherwise
FreeBSD/amd64 won't recognize them as such.
FreeBSD/i386 already does this in most cases because of
bfd/elf32-i386.c:elf_i386_post_process_headers, and FreeBSD/amd64
should probably do something similar, but setting it here shouldn't
hurt.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@gnu.org>
* fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
the ELF header.
Index: fbsd-proc.c
===================================================================
RCS file: /cvs/src/src/gdb/fbsd-proc.c,v
retrieving revision 1.4
diff -u -p -r1.4 fbsd-proc.c
--- fbsd-proc.c 29 Oct 2003 22:47:37 -0000 1.4
+++ fbsd-proc.c 30 Oct 2003 19:26:27 -0000
@@ -127,6 +127,11 @@ fbsd_make_corefile_notes (bfd *obfd, int
gregset_t gregs;
fpregset_t fpregs;
char *note_data = NULL;
+ Elf_Internal_Ehdr *i_ehdrp;
+
+ /* Put a "FreeBSD" label in the ELF header. */
+ i_ehdrp = elf_elfheader (obfd);
+ i_ehdrp->e_ident[EI_OSABI] = ELFOSABI_FREEBSD;
fill_gregset (&gregs, -1);
note_data = elfcore_write_prstatus (obfd, note_data, note_size,
next reply other threads:[~2003-10-30 19:36 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-10-30 19:36 Mark Kettenis [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-01-23 19:10 [patch] Doug Evans
2012-01-18 4:35 [PATCH] Sergio Durigan Junior
2012-01-18 5:04 ` [PATCH] Joel Brobecker
2012-01-18 5:17 ` [PATCH] Sergio Durigan Junior
2012-01-18 12:48 ` [PATCH] Joel Brobecker
2012-01-18 14:34 ` [PATCH] Sergio Durigan Junior
2009-05-06 0:35 [PATCH] Maxim Grigoriev
2004-04-18 13:09 [PATCH] Mark Kettenis
2004-04-09 16:31 [PATCH] Mark Kettenis
2003-10-30 20:21 [PATCH] Mark Kettenis
2003-03-01 13:09 [PATCH] Mark Kettenis
2003-03-03 17:33 ` [PATCH] David Carlton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200310301936.h9UJaHRb007542@elgar.kettenis.dyndns.org \
--to=kettenis@chello.nl \
--cc=gdb-patches@sources.redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox