diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2022-11-15 15:07:09 -0800 |
---|---|---|
committer | Indu Bhagat <indu.bhagat@oracle.com> | 2022-11-15 15:50:05 -0800 |
commit | 42b6953bbad652d3f7cba405c941ad9c6eab26b0 (patch) | |
tree | 7f1276452e23a847be0105dba5bf563b1f8e3457 /include | |
parent | cf0e0a0ba91664b680dff1e310f24dbe6447bd4c (diff) | |
download | binutils-42b6953bbad652d3f7cba405c941ad9c6eab26b0.zip binutils-42b6953bbad652d3f7cba405c941ad9c6eab26b0.tar.gz binutils-42b6953bbad652d3f7cba405c941ad9c6eab26b0.tar.bz2 |
readelf/objdump: support for SFrame section
This patch adds support for SFrame in readelf and objdump. The arguments
of --sframe are optional for both readelf and objdump.
include/ChangeLog:
* sframe-api.h (dump_sframe): New function declaration.
ChangeLog:
* binutils/Makefile.am: Add dependency on libsframe for
readelf and objdump.
* binutils/Makefile.in: Regenerate.
* binutils/doc/binutils.texi: Document --sframe=[section].
* binutils/doc/sframe.options.texi: New file.
* binutils/objdump.c: Add support for SFrame format.
* binutils/readelf.c: Likewise.
* include/sframe-api.h: Add new API for dumping .sframe
section.
* libsframe/Makefile.am: Add sframe-dump.c.
* libsframe/Makefile.in: Regenerate.
* libsframe/sframe-dump.c: New file.
Diffstat (limited to 'include')
-rw-r--r-- | include/sframe-api.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/sframe-api.h b/include/sframe-api.h index 010a35a..c658474 100644 --- a/include/sframe-api.h +++ b/include/sframe-api.h @@ -157,6 +157,9 @@ sframe_decoder_get_funcdesc (sframe_decoder_ctx *ctx, int32_t *func_start_address, unsigned char *func_info); +/* SFrame textual dump. */ +extern void +dump_sframe (sframe_decoder_ctx *decoder, uint64_t addr); /* Get the base reg id from the FRE info. Sets errp if fails. */ extern unsigned int |