mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-05 15:15:42 +00:00
libsframe: use sframe_decoder_get_funcdesc_v2 in dumper
Not strictly necessary for correctness. But using '_v2' named APIs is
more appropriate.
libsframe/
* sframe-dump.c (dump_sframe_func_with_fres):
This commit is contained in:
@@ -126,6 +126,7 @@ dump_sframe_func_with_fres (sframe_decoder_ctx *sfd_ctx,
|
|||||||
uint32_t func_size = 0;
|
uint32_t func_size = 0;
|
||||||
int32_t func_start_address = 0;
|
int32_t func_start_address = 0;
|
||||||
unsigned char func_info = 0;
|
unsigned char func_info = 0;
|
||||||
|
uint8_t rep_block_size = 0;
|
||||||
|
|
||||||
uint64_t func_start_pc_vma = 0;
|
uint64_t func_start_pc_vma = 0;
|
||||||
uint64_t fre_start_pc_vma = 0;
|
uint64_t fre_start_pc_vma = 0;
|
||||||
@@ -140,8 +141,9 @@ dump_sframe_func_with_fres (sframe_decoder_ctx *sfd_ctx,
|
|||||||
sframe_frame_row_entry fre;
|
sframe_frame_row_entry fre;
|
||||||
|
|
||||||
/* Get the SFrame function descriptor. */
|
/* Get the SFrame function descriptor. */
|
||||||
sframe_decoder_get_funcdesc (sfd_ctx, funcidx, &num_fres,
|
sframe_decoder_get_funcdesc_v2 (sfd_ctx, funcidx, &num_fres,
|
||||||
&func_size, &func_start_address, &func_info);
|
&func_size, &func_start_address,
|
||||||
|
&func_info, &rep_block_size);
|
||||||
/* Calculate the virtual memory address for function start pc. Some older
|
/* Calculate the virtual memory address for function start pc. Some older
|
||||||
SFrame V2 sections in ET_DYN or ET_EXEC may still have the
|
SFrame V2 sections in ET_DYN or ET_EXEC may still have the
|
||||||
SFRAME_F_FDE_FUNC_START_PCREL flag unset, and hence may be using the
|
SFRAME_F_FDE_FUNC_START_PCREL flag unset, and hence may be using the
|
||||||
|
|||||||
Reference in New Issue
Block a user