Project

General

Profile

Actions

Bug #7393

closed

mdb: incorrect output when printing C struct with bit fileds

Added by Youzhong Yang about 7 years ago. Updated about 5 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
mdb - modular debugger
Start date:
2016-09-19
Due date:
% Done:

0%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:

Description

> ffffd127f0419fb0::print -ta nvme_cqe_t
ffffd127f0419fb0 nvme_cqe_t {
    ffffd127f0419fb0 uint32_t cqe_dw0 = 0
    ffffd127f0419fb4 uint32_t cqe_rsvd1 = 0
    ffffd127f0419fb8 uint16_t cqe_sqhd = 0x1fc
    ffffd127f0419fba uint16_t cqe_sqid = 0x7
    ffffd127f0419fbc uint16_t cqe_cid = 0x1fb
    ffffd127f0419fbe nvme_cqe_sf_t cqe_sf = {
        ffffd127f0419fbe unsigned short:1 sf_p :1 = 0x1
        ffffd127f0419fbe.1 unsigned short:8 sf_sc :8 = 0x1
        ffffd127f0419fbf.1 unsigned short:3 sf_sct :3 = 0
        ffffd127f0419fbf.4 unsigned short:2 sf_rsvd2 :2 = 0
        ffffd127f0419fbf.6 unsigned short:1 sf_m :1 = 0
        ffffd127f0419fbf.7 unsigned short:1 sf_dnr :1 = 0
    }
}
> ffffd127f0419fb0,10::dump
                   \/ 1 2 3  4 5 6 7  8 9 a b  c d e f  v123456789abcdef
ffffd127f0419fb0:  00000000 00000000 fc010700 fb010100  ................
Actions #1

Updated by John Levon about 5 years ago

  • Status changed from New to Closed
Actions

Also available in: Atom PDF