Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/bsd/libproc/dist unbreak aarch64
details: https://anonhg.NetBSD.org/src/rev/6264b776c2c3
branches: trunk
changeset: 991605:6264b776c2c3
user: christos <christos%NetBSD.org@localhost>
date: Fri Jul 20 20:50:34 2018 +0000
description:
unbreak aarch64
diffstat:
external/bsd/libproc/dist/proc_bkpt.c | 4 +++-
external/bsd/libproc/dist/tests/proc_test.c | 11 +----------
2 files changed, 4 insertions(+), 11 deletions(-)
diffs (95 lines):
diff -r cdfc347af3a3 -r 6264b776c2c3 external/bsd/libproc/dist/proc_bkpt.c
--- a/external/bsd/libproc/dist/proc_bkpt.c Fri Jul 20 20:49:59 2018 +0000
+++ b/external/bsd/libproc/dist/proc_bkpt.c Fri Jul 20 20:50:34 2018 +0000
@@ -31,7 +31,7 @@
#ifdef __FBSDID
__FBSDID("$FreeBSD: head/lib/libproc/proc_bkpt.c 287106 2015-08-24 12:17:15Z andrew $");
#else
-__RCSID("$NetBSD: proc_bkpt.c,v 1.5 2017/12/08 13:36:22 rin Exp $");
+__RCSID("$NetBSD: proc_bkpt.c,v 1.6 2018/07/20 20:50:34 christos Exp $");
#endif
#include <sys/types.h>
@@ -218,10 +218,12 @@
* set up by proc_bkptdel().
*/
proc_regset(phdl, REG_PC, pc);
+#ifdef PT_STEP
if (ptrace(PT_STEP, proc_getpid(phdl), (void *)(intptr_t)1, 0) < 0) {
DPRINTFX("ERROR: ptrace step failed");
return (-1);
}
+#endif
proc_wstatus(phdl);
status = proc_getwstat(phdl);
if (!WIFSTOPPED(status)) {
diff -r cdfc347af3a3 -r 6264b776c2c3 external/bsd/libproc/dist/tests/proc_test.c
--- a/external/bsd/libproc/dist/tests/proc_test.c Fri Jul 20 20:49:59 2018 +0000
+++ b/external/bsd/libproc/dist/tests/proc_test.c Fri Jul 20 20:50:34 2018 +0000
@@ -28,7 +28,7 @@
#ifdef __FBSDID
__FBSDID("$FreeBSD: head/lib/libproc/tests/proc_test.c 286863 2015-08-17 23:19:36Z emaste $");
#endif
-__RCSID("$NetBSD: proc_test.c,v 1.5 2015/09/25 19:08:33 christos Exp $");
+__RCSID("$NetBSD: proc_test.c,v 1.6 2018/07/20 20:50:34 christos Exp $");
#include <sys/types.h>
#include <sys/wait.h>
@@ -49,13 +49,11 @@
static const char *r_debug_state = "r_debug_state";
#endif
-#if !defined(__aarch64__)
#if defined(__NetBSD__)
static const char *ldelf_object = "ld.elf_so";
#elif defined(__FreeBSD__)
static const char *ldelf_object = "ld-elf.so.1";
#endif
-#endif
static const char *target_prog_file = "target_prog";
#ifdef __NetBSD__
@@ -100,7 +98,6 @@
return (phdl);
}
-#if !defined(__aarch64__)
static void
set_bkpt(struct proc_handle *phdl, uintptr_t addr, proc_breakpoint_t *saved)
{
@@ -178,7 +175,6 @@
ATF_REQUIRE_EQ_MSG(strcmp(mapname, mapbname), 0,
"expected map name '%s' doesn't match '%s'", mapname, mapbname);
}
-#endif
ATF_TC(map_alias_obj2map);
ATF_TC_HEAD(map_alias_obj2map, tc)
@@ -283,7 +279,6 @@
proc_free(phdl);
}
-#if !defined(__aarch64__)
ATF_TC(symbol_lookup);
ATF_TC_HEAD(symbol_lookup, tc)
{
@@ -360,7 +355,6 @@
proc_free(phdl);
}
-#endif
ATF_TC(signal_forward);
ATF_TC_HEAD(signal_forward, tc)
@@ -409,11 +403,8 @@
ATF_TP_ADD_TC(tp, map_alias_obj2map);
ATF_TP_ADD_TC(tp, map_alias_name2map);
ATF_TP_ADD_TC(tp, map_alias_name2sym);
-/* On arm64 triggers panic ARM64TODO: pmap_sync_icache (PR202305). */
-#if !defined(__aarch64__)
ATF_TP_ADD_TC(tp, symbol_lookup);
ATF_TP_ADD_TC(tp, symbol_lookup_fail);
-#endif
ATF_TP_ADD_TC(tp, signal_forward);
return (atf_no_error());
Home |
Main Index |
Thread Index |
Old Index