radareorg/radare2

Support bitfields in `pf` and `t` commands

オープン

#12,555 opened on 2018/12/24

 (9 件のコメント) (0 件のリアクション) (0 人の担当者)C (3,229 件のフォーク)batch import
commandenhancementgood first issueinputpftypes

Repository metrics

Stars
 (23,826 個のスター)
PR merge metrics
 (平均マージ 16h 24m) (30d で 99 merged PRs)

説明

See http://mjfrazer.org/mjfrazer/bitfields on how to unpack on different endians.

[0x000068c0]> "td struct qwe { int a:4; int b:16; int c:3; };"
[0x000068c0]> ts
qwe
[0x000068c0]> ts qwe
pf ddd a b c
[0x000068c0]> px 4
- offset -   0 1  2 3  4 5  6 7  8 9  A B  C D  E F  0123456789ABCDEF
0x000068c0  f30f 1efa                                ....
[0x000068c0]> tp qwe
 a : 0x000068c0 = 4196274163
 b : 0x000068c4 = 2303323441
 c : 0x000068c8 = 2303221457

コントリビューターガイド