NetBSD Problem Report #37851

From reinoud@13thmonkey.org  Wed Jan 23 11:35:25 2008
Return-Path: <reinoud@13thmonkey.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 41E5063B938
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 23 Jan 2008 11:35:25 +0000 (UTC)
Message-Id: <20080123113525.A87EA5BCA@aardappel.13thmonkey.org>
Date: Wed, 23 Jan 2008 12:35:25 +0100 (CET)
From: reinoud@NetBSD.org
Reply-To: reinoud@NetBSD.org
To: gnats-bugs@gnats.NetBSD.org
Subject: ddb x/{b,h,l,L} command not working and x/m prints bigendian
X-Send-Pr-Version: 3.95

>Number:         37851
>Category:       kern
>Synopsis:       ddb x/{b,h,l,L} command not working and x/m prints bigendian
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jan 23 11:40:00 +0000 2008
>Originator:     Reinoud Zandijk
>Release:        NetBSD 4.99.42
>Organization:
NetBSD

>Environment:
System: NetBSD aardappel.13thmonkey.org 4.99.42 NetBSD 4.99.42 (GENERIC) #3: Wed Dec 19 14:15:55 CET 2007 reinoud@heethoofdje.13thmonkey.org:/usr/sources/cvs.netbsd.org/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
If in ddb the 'x' command with modifiers 'b','h','l','L' dont print anything:

db{0}> x/b c9d47a40,64
0xc9d47a40:

db{0}> x/h c9d47a40,64
0xc9d47a40:

db{0}> x/l c9d47a40,64
0xc9d47a40:

db{0}> x/L c9d47a40,64
0xc9d47a40:

and 

db{0}> x/m c9d47a40,8
0xc9d47a40:     282a9ac0 e41594c0 6c2a9ac0 a80d94c0     (*......l*......
0xc9d47a50:     30229ac0 dc1d94c0 64329ac0 901494c0     0"......d2......

prints *bigendian* values on this i386; quite confusing. If its memory bytes
it should print it should space between the two digits for otherwise it can be
misread.


>How-To-Repeat:
Enter ddb and try to print out some memory with the 'x' command.


>Fix:
In db_examine() (sys/ddb/db_examine.c) the 'b','h','l','L' cores are only
setting up variables but dont print a thing whereas 'o' or 'u' work fine.

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.