aboutsummaryrefslogtreecommitdiff
path: root/gdb/fbsd-proc.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-10-30 19:29:40 +0000
committerMark Kettenis <kettenis@gnu.org>2003-10-30 19:29:40 +0000
commit9a12a2a0ed0e3950b4a059eabe63cf55f0eebc03 (patch)
tree3c3467ea667f40b6eb401d36116921e50548280c /gdb/fbsd-proc.c
parent686e72d729cf3ba9e15d5b9700d63c6a5bd88d21 (diff)
downloadgdb-9a12a2a0ed0e3950b4a059eabe63cf55f0eebc03.zip
gdb-9a12a2a0ed0e3950b4a059eabe63cf55f0eebc03.tar.gz
gdb-9a12a2a0ed0e3950b4a059eabe63cf55f0eebc03.tar.bz2
* fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
the ELF header.
Diffstat (limited to 'gdb/fbsd-proc.c')
-rw-r--r--gdb/fbsd-proc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/fbsd-proc.c b/gdb/fbsd-proc.c
index 2c31768..8321cf5 100644
--- a/gdb/fbsd-proc.c
+++ b/gdb/fbsd-proc.c
@@ -127,6 +127,11 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
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,