summaryrefslogtreecommitdiffstats
path: root/contrib/gdb
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2010-11-22 20:52:18 +0000
committerdim <dim@FreeBSD.org>2010-11-22 20:52:18 +0000
commit71b42433f68a7680bcd07cef6c81b5a9bbe4e948 (patch)
tree09b00ba0fbac964aa5e3af51d7a50e20465b2577 /contrib/gdb
parent29458224998b52266f5d890a3d9bff4c1f5d3ccb (diff)
parent11b4830687fabb0a27817feb05bf835db82f3147 (diff)
downloadFreeBSD-src-71b42433f68a7680bcd07cef6c81b5a9bbe4e948.zip
FreeBSD-src-71b42433f68a7680bcd07cef6c81b5a9bbe4e948.tar.gz
Sync: merge r215464 through r215708 from ^/head.
Diffstat (limited to 'contrib/gdb')
-rw-r--r--contrib/gdb/gdb/fbsd-proc.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/contrib/gdb/gdb/fbsd-proc.c b/contrib/gdb/gdb/fbsd-proc.c
index 16813a9..b2dbd5d 100644
--- a/contrib/gdb/gdb/fbsd-proc.c
+++ b/contrib/gdb/gdb/fbsd-proc.c
@@ -124,6 +124,7 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
fpregset_t fpregs;
char *note_data = NULL;
Elf_Internal_Ehdr *i_ehdrp;
+ char fakename;
/* Put a "FreeBSD" label in the ELF header. */
i_ehdrp = elf_elfheader (obfd);
@@ -138,6 +139,10 @@ fbsd_make_corefile_notes (bfd *obfd, int *note_size)
note_data = elfcore_write_prfpreg (obfd, note_data, note_size,
&fpregs, sizeof (fpregs));
+ fakename = '\0';
+ note_data = elfcore_write_thrmisc (obfd, note_data, note_size,
+ &fakename, sizeof (fakename));
+
if (get_exec_file (0))
{
char *fname = strrchr (get_exec_file (0), '/') + 1;
OpenPOWER on IntegriCloud