GDB (xrefs)
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | Private Member Functions | List of all members
print_offset_data Struct Reference

#include "typeprint.h"

Public Member Functions

void update (struct type *type, unsigned int field_idx, struct ui_file *stream)
 
void finish (struct type *type, int level, struct ui_file *stream)
 
 print_offset_data (const struct type_print_options *flags)
 

Public Attributes

bool print_in_hex = false
 
unsigned int offset_bitpos = 0
 
unsigned int end_bitpos = 0
 

Static Public Attributes

static const int indentation = 27
 

Private Member Functions

void maybe_print_hole (struct ui_file *stream, unsigned int bitpos, const char *for_what)
 

Detailed Description

Definition at line 62 of file typeprint.h.

Constructor & Destructor Documentation

◆ print_offset_data()

print_offset_data::print_offset_data ( const struct type_print_options * flags)
explicit

Definition at line 77 of file typeprint.c.

References flags, type_print_options::print_in_hex, and print_in_hex.

Member Function Documentation

◆ finish()

void print_offset_data::finish ( struct type * type,
int level,
struct ui_file * stream )

◆ maybe_print_hole()

void print_offset_data::maybe_print_hole ( struct ui_file * stream,
unsigned int bitpos,
const char * for_what )
private

Definition at line 86 of file typeprint.c.

References end_bitpos, fprintf_styled(), gdb_puts(), highlight_style, and cli_style_option::style().

Referenced by finish(), and update().

◆ update()

void print_offset_data::update ( struct type * type,
unsigned int field_idx,
struct ui_file * stream )

Member Data Documentation

◆ end_bitpos

unsigned int print_offset_data::end_bitpos = 0

Definition at line 77 of file typeprint.h.

Referenced by c_type_print_base_struct_union(), maybe_print_hole(), and update().

◆ indentation

const int print_offset_data::indentation = 27
static

◆ offset_bitpos

unsigned int print_offset_data::offset_bitpos = 0

Definition at line 72 of file typeprint.h.

Referenced by c_type_print_base_struct_union(), and update().

◆ print_in_hex

bool print_offset_data::print_in_hex = false

Definition at line 66 of file typeprint.h.

Referenced by print_offset_data(), and update().


The documentation for this struct was generated from the following files: