Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/ddb db_get_qvalue() with size=8 on 64bit arch returns in...
details: https://anonhg.NetBSD.org/src/rev/7299a141321c
branches: trunk
changeset: 454259:7299a141321c
user: ryo <ryo%NetBSD.org@localhost>
date: Thu Sep 12 17:09:00 2019 +0000
description:
db_get_qvalue() with size=8 on 64bit arch returns incorrect value. fixed.
diffstat:
sys/ddb/db_access.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 67536c1de731 -r 7299a141321c sys/ddb/db_access.c
--- a/sys/ddb/db_access.c Thu Sep 12 17:04:18 2019 +0000
+++ b/sys/ddb/db_access.c Thu Sep 12 17:09:00 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_access.c,v 1.25 2019/09/12 09:20:23 ryo Exp $ */
+/* $NetBSD: db_access.c,v 1.26 2019/09/12 17:09:00 ryo Exp $ */
/*
* Mach Operating System
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_access.c,v 1.25 2019/09/12 09:20:23 ryo Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_access.c,v 1.26 2019/09/12 17:09:00 ryo Exp $");
#if defined(_KERNEL_OPT)
#include "opt_kgdb.h"
@@ -87,7 +87,7 @@
{
uint64_t data;
- if (sizeof(db_expr_t) >= sizeof(quad_t) || size <= sizeof(db_expr_t)) {
+ if (size < sizeof(uint64_t)) {
if (is_signed)
return db_get_value(addr, size, true);
return (uint32_t)db_get_value(addr, size, false);
Home |
Main Index |
Thread Index |
Old Index