aboutsummaryrefslogtreecommitdiff
path: root/bfd/syms.c
diff options
context:
space:
mode:
authorAaron Merey <amerey@redhat.com>2022-09-02 14:16:30 -0400
committerAaron Merey <amerey@redhat.com>2022-09-06 10:42:50 -0400
commit6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf (patch)
tree4ebae737f83b181c6a30c561bcf09a238c6da55f /bfd/syms.c
parentcb21dd0c599a420117abbcbbd1e20cce8d9e771d (diff)
downloadgdb-6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf.zip
gdb-6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf.tar.gz
gdb-6e7a29c7de4e1df679f2b6f6449b20474fbbcfdf.tar.bz2
bfd: Add bfd_find_nearest_line_with_alt
bfd_find_nearest_line_with_alt functions like bfd_find_nearest_line with the addition of a parameter for specifying the filename of a supplementary debug file such as one referenced by .gnu_debugaltlink or .debug_sup. This patch focuses on implementing bfd_find_nearest_line_with_alt support for ELF/DWARF2 .gnu_debugaltlink. For other targets this function simply sets the invalid_operation bfd_error.
Diffstat (limited to 'bfd/syms.c')
-rw-r--r--bfd/syms.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/bfd/syms.c b/bfd/syms.c
index b284cb2..7a454c5 100644
--- a/bfd/syms.c
+++ b/bfd/syms.c
@@ -1505,6 +1505,21 @@ _bfd_nosymbols_find_nearest_line
}
bool
+_bfd_nosymbols_find_nearest_line_with_alt
+ (bfd *abfd,
+ const char *alt_filename ATTRIBUTE_UNUSED,
+ asymbol **symbols ATTRIBUTE_UNUSED,
+ asection *section ATTRIBUTE_UNUSED,
+ bfd_vma offset ATTRIBUTE_UNUSED,
+ const char **filename_ptr ATTRIBUTE_UNUSED,
+ const char **functionname_ptr ATTRIBUTE_UNUSED,
+ unsigned int *line_ptr ATTRIBUTE_UNUSED,
+ unsigned int *discriminator_ptr ATTRIBUTE_UNUSED)
+{
+ return _bfd_bool_bfd_false_error (abfd);
+}
+
+bool
_bfd_nosymbols_find_line (bfd *abfd,
asymbol **symbols ATTRIBUTE_UNUSED,
asymbol *symbol ATTRIBUTE_UNUSED,