diff options
author | Mark Kettenis <kettenis@gnu.org> | 2003-10-30 19:29:40 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2003-10-30 19:29:40 +0000 |
commit | 4dd7e0094458a4ba45e56e74cbf3a2526c6d0261 (patch) | |
tree | f68dcf6593410ece46d14141e4f12f28478bf8ac /gdb | |
parent | b67eb77ad676f3dbc2eb487ac678013b60ac2d07 (diff) | |
download | gdb-4dd7e0094458a4ba45e56e74cbf3a2526c6d0261.tar.gz |
* fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
the ELF header.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/fbsd-proc.c | 5 |
2 files changed, 10 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index e4de79195dd..87a23aaea47 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2003-10-30 Mark Kettenis <kettenis@gnu.org> + + * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in + the ELF header. + 2003-10-29 Mark Kettenis <kettenis@gnu.org> * config/i386/fbsd.mt (TDEPFILES): Add corelow.o. diff --git a/gdb/fbsd-proc.c b/gdb/fbsd-proc.c index 2c31768250d..8321cf556ee 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, |