aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.h
diff options
context:
space:
mode:
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>2022-11-17 12:17:53 +0100
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>2023-01-25 21:04:40 +0100
commitd72ba177c85f2ad18d0dcabdd8844532c9acb819 (patch)
tree659dc66b68848f318c04402a0bc420d431565c86 /binutils/objdump.h
parent6121eeb72978cc5749c4c9f119b4dbaf637517c9 (diff)
downloadgdb-d72ba177c85f2ad18d0dcabdd8844532c9acb819.zip
gdb-d72ba177c85f2ad18d0dcabdd8844532c9acb819.tar.gz
gdb-d72ba177c85f2ad18d0dcabdd8844532c9acb819.tar.bz2
gdb: dwarf2 generic implementation for caching function data
When there is no dwarf2 data for a register, a function can be called to provide the value of this register. In some situations, it might not be trivial to determine the value to return and it would cause a performance bottleneck to do the computation each time. This patch allows the called function to have a "cache" object that it can use to store some metadata between calls to reduce the performance impact of the complex logic. The cache object is unique for each function and frame, so if there are more than one function pointer stored in the dwarf2_frame_cache->reg array, then the appropriate pointer will be supplied (the type is not known by the dwarf2 implementation). dwarf2_frame_get_fn_data can be used to retrieve the function unique cache object. dwarf2_frame_allocate_fn_data can be used to allocate and retrieve the function unique cache object. Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com> Signed-off-by: Yvan Roux <yvan.roux@foss.st.com>
Diffstat (limited to 'binutils/objdump.h')
0 files changed, 0 insertions, 0 deletions