aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf-sframe.c
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2023-02-02 00:49:29 -0800
committerIndu Bhagat <indu.bhagat@oracle.com>2023-02-02 00:49:29 -0800
commit53d8d3f0c19e1365fdbb78c5824fe1d7e3d13aa0 (patch)
treee52e1557f32d29d992620489873938c3613a9e3d /bfd/elf-sframe.c
parent3e3e792a2931b973d5c9bc4fa79168dec8ab7730 (diff)
downloadgdb-53d8d3f0c19e1365fdbb78c5824fe1d7e3d13aa0.zip
gdb-53d8d3f0c19e1365fdbb78c5824fe1d7e3d13aa0.tar.gz
gdb-53d8d3f0c19e1365fdbb78c5824fe1d7e3d13aa0.tar.bz2
bfd: use "stack trace" instead of "unwind" for SFrame
SFrame format is meant for generating stack traces only. bfd/ * elf-bfd.h: Replace the use of "unwind" with "stack trace". * elf-sframe.c: Likewise. * elf64-x86-64.c: Likewise. * elfxx-x86.c: Likewise. include/ * elf/common.h: Likewise.
Diffstat (limited to 'bfd/elf-sframe.c')
-rw-r--r--bfd/elf-sframe.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/bfd/elf-sframe.c b/bfd/elf-sframe.c
index 8a7fd02..d2954ba 100644
--- a/bfd/elf-sframe.c
+++ b/bfd/elf-sframe.c
@@ -206,7 +206,7 @@ _bfd_elf_parse_sframe (bfd *abfd,
return false;
}
- /* Read the SFrame unwind information from abfd. */
+ /* Read the SFrame stack trace information from abfd. */
if (!bfd_malloc_and_get_section (abfd, sec, &sfbuf))
goto fail_no_free;
@@ -438,10 +438,11 @@ _bfd_elf_merge_section_sframe (bfd *abfd,
}
else
{
- /* Expected to land here for SFrame unwind info as created
- for the .plt* sections. These sections can have upto two
- FDE entries. Although the code should work for > 2,
- leaving this assert here for safety. */
+ /* Expected to land here when SFrame stack trace info is
+ created dynamically for the .plt* sections. These
+ sections are expected to have upto two SFrame FDE entries.
+ Although the code should work for > 2, leaving this
+ assert here for safety. */
BFD_ASSERT (num_fidx <= 2);
/* For the first entry, we know the offset of the SFrame FDE's
sfde_func_start_address. Side note: see how the value