Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so HPPA hack for a problem where gdb doesn't ...
details: https://anonhg.NetBSD.org/src/rev/e02a2016f4fa
branches: trunk
changeset: 336538:e02a2016f4fa
user: skrll <skrll%NetBSD.org@localhost>
date: Thu Mar 05 09:49:53 2015 +0000
description:
HPPA hack for a problem where gdb doesn't see _rtld_debug_state when
it's a single bv,n %r0(%rp) instruction.
The nullify confuses something.
diffstat:
libexec/ld.elf_so/rtld.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diffs (28 lines):
diff -r 04aa8151189e -r e02a2016f4fa libexec/ld.elf_so/rtld.c
--- a/libexec/ld.elf_so/rtld.c Thu Mar 05 08:09:44 2015 +0000
+++ b/libexec/ld.elf_so/rtld.c Thu Mar 05 09:49:53 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld.c,v 1.174 2014/08/25 20:40:52 joerg Exp $ */
+/* $NetBSD: rtld.c,v 1.175 2015/03/05 09:49:53 skrll Exp $ */
/*
* Copyright 1996 John D. Polstra.
@@ -40,7 +40,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: rtld.c,v 1.174 2014/08/25 20:40:52 joerg Exp $");
+__RCSID("$NetBSD: rtld.c,v 1.175 2015/03/05 09:49:53 skrll Exp $");
#endif /* not lint */
#include <sys/param.h>
@@ -1431,6 +1431,9 @@
void
_rtld_debug_state(void)
{
+#if defined(__hppa__)
+ __asm volatile("nop" ::: "memory");
+#endif
/* Prevent optimizer from removing calls to this function */
__insn_barrier();
Home |
Main Index |
Thread Index |
Old Index