gdb
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

GDB bitfields


From: emoneta
Subject: GDB bitfields
Date: Tue, 24 Aug 2010 23:26:59 -0700 (PDT)

Hi,

How do I get the bitpos and bitsize of a bitfield using gdb?

struct bitfields { 
    unsigned char field1: 1; 
    unsigned char field2: 4;
    unsigned char field3: 2;
} 

I know gdb reads this info because I can see the dwarf dump with the
information, but there must be an easier way to get this information from
gdb.
-- 
View this message in context: 
http://old.nabble.com/GDB-bitfields-tp29529162p29529162.html
Sent from the Gnu - gdb - General mailing list archive at Nabble.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]