forked from Imagelibrary/binutils-gdb
* dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
int64_t change to leb128 API. (read_encoded_value, decode_frame_entry_1): Ditto. * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto. (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto. (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto. (execute_stack_op): Ditto. * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto. (safe_read_uleb128, safe_read_sleb128): Ditto. * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto. (dwarf2_compile_expr_to_ax): Ditto. (locexpr_describe_location_piece): Ditto. (disassemble_dwarf_expression): Ditto. (locexpr_describe_location_1): Ditto.
This commit is contained in:
@@ -311,9 +311,9 @@ int dwarf_block_to_sp_offset (struct gdbarch *gdbarch, const gdb_byte *buf,
|
||||
|
||||
static inline const gdb_byte *
|
||||
gdb_read_uleb128 (const gdb_byte *buf, const gdb_byte *buf_end,
|
||||
unsigned long long *r)
|
||||
uint64_t *r)
|
||||
{
|
||||
size_t bytes_read = read_uleb128_to_ull (buf, buf_end, r);
|
||||
size_t bytes_read = read_uleb128_to_uint64 (buf, buf_end, r);
|
||||
|
||||
if (bytes_read == 0)
|
||||
return NULL;
|
||||
@@ -322,9 +322,9 @@ gdb_read_uleb128 (const gdb_byte *buf, const gdb_byte *buf_end,
|
||||
|
||||
static inline const gdb_byte *
|
||||
gdb_read_sleb128 (const gdb_byte *buf, const gdb_byte *buf_end,
|
||||
long long *r)
|
||||
int64_t *r)
|
||||
{
|
||||
size_t bytes_read = read_sleb128_to_ll (buf, buf_end, r);
|
||||
size_t bytes_read = read_sleb128_to_int64 (buf, buf_end, r);
|
||||
|
||||
if (bytes_read == 0)
|
||||
return NULL;
|
||||
@@ -343,11 +343,11 @@ gdb_skip_leb128 (const gdb_byte *buf, const gdb_byte *buf_end)
|
||||
|
||||
extern const gdb_byte *safe_read_uleb128 (const gdb_byte *buf,
|
||||
const gdb_byte *buf_end,
|
||||
unsigned long long *r);
|
||||
uint64_t *r);
|
||||
|
||||
extern const gdb_byte *safe_read_sleb128 (const gdb_byte *buf,
|
||||
const gdb_byte *buf_end,
|
||||
long long *r);
|
||||
int64_t *r);
|
||||
|
||||
extern const gdb_byte *safe_skip_leb128 (const gdb_byte *buf,
|
||||
const gdb_byte *buf_end);
|
||||
|
||||
Reference in New Issue
Block a user