27#ifndef GDB_DWARF2_LEB_H
28#define GDB_DWARF2_LEB_H
32static inline unsigned int
35 return bfd_get_8 (abfd, buf);
41 return bfd_get_signed_8 (abfd, buf);
44static inline unsigned int
47 return bfd_get_16 (abfd, buf);
53 return bfd_get_signed_16 (abfd, buf);
57static inline unsigned int
60 return bfd_get_24 (abfd, buf);
63static inline unsigned int
66 return bfd_get_32 (abfd, buf);
72 return bfd_get_signed_32 (abfd, buf);
78 return bfd_get_64 (abfd, buf);
123 unsigned int *bytes_read,
124 bool handle_nonstd =
true);
127extern LONGEST
read_offset (bfd *abfd,
const gdb_byte *buf,
128 unsigned int offset_size);
130static inline const gdb_byte *
136 gdb_assert (HOST_CHAR_BIT == 8);
140static inline const char *
142 unsigned int *bytes_read_ptr)
147 gdb_assert (HOST_CHAR_BIT == 8);
153 *bytes_read_ptr = strlen ((
const char *) buf) + 1;
154 return (
const char *) buf;
static unsigned int read_4_bytes(bfd *abfd, const gdb_byte *buf)
static const char * read_direct_string(bfd *abfd, const gdb_byte *buf, unsigned int *bytes_read_ptr)
static int read_4_signed_bytes(bfd *abfd, const gdb_byte *buf)
static unsigned int read_1_byte(bfd *abfd, const gdb_byte *buf)
ULONGEST read_unsigned_leb128(bfd *, const gdb_byte *, unsigned int *)
static unsigned int read_3_bytes(bfd *abfd, const gdb_byte *buf)
static int read_1_signed_byte(bfd *abfd, const gdb_byte *buf)
LONGEST read_signed_leb128(bfd *, const gdb_byte *, unsigned int *)
static unsigned int read_2_bytes(bfd *abfd, const gdb_byte *buf)
LONGEST read_initial_length(bfd *abfd, const gdb_byte *buf, unsigned int *bytes_read, bool handle_nonstd=true)
static int read_2_signed_bytes(bfd *abfd, const gdb_byte *buf)
static const gdb_byte * read_n_bytes(bfd *abfd, const gdb_byte *buf, unsigned int size)
static ULONGEST read_8_bytes(bfd *abfd, const gdb_byte *buf)
LONGEST read_offset(bfd *abfd, const gdb_byte *buf, unsigned int offset_size)