gdb: rename ldirname to gdb_ldirname

It conflicts with the ldirname function that will be added in the next
libiberty sync.
This commit is contained in:
Andreas Schwab
2025-05-14 17:08:52 +02:00
parent d1851edfe9
commit a22a215fa8
10 changed files with 13 additions and 13 deletions

View File

@@ -957,7 +957,7 @@ locate_exec_from_corefile_exec_context (bfd *cbfd,
execbfd = open_and_check_build_id (exec_name);
else
{
std::string p = (ldirname (bfd_get_filename (cbfd))
std::string p = (gdb_ldirname (bfd_get_filename (cbfd))
+ '/'
+ exec_name);
execbfd = open_and_check_build_id (p.c_str ());
@@ -971,7 +971,7 @@ locate_exec_from_corefile_exec_context (bfd *cbfd,
if (execbfd == nullptr)
{
const char *base_name = lbasename (exec_name);
std::string p = (ldirname (bfd_get_filename (cbfd))
std::string p = (gdb_ldirname (bfd_get_filename (cbfd))
+ '/'
+ base_name);
execbfd = open_and_check_build_id (p.c_str ());