aboutsummaryrefslogtreecommitdiff
path: root/contrib/gdb
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2010-11-22 20:52:18 +0000
committerDimitry Andric <dim@FreeBSD.org>2010-11-22 20:52:18 +0000
commita35d3535ee28d2b9eda4e9b0eeedf8bf31f95ca3 (patch)
tree09b00ba0fbac964aa5e3af51d7a50e20465b2577 /contrib/gdb
parent678206c05666972a89f30f968424c37de9230c8c (diff)
parent95353459aee95191a27232173bc1b12774453ddf (diff)
Notes
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 16813a9a1c8a6..b2dbd5d2ad97b 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;