|
Bugzilla – Full Text Bug Listing |
| Summary: | [gdb/symtab] build-id debuginfo link doesn't work when debugging from outside container | ||
|---|---|---|---|
| Product: | [openSUSE] openSUSE Distribution | Reporter: | Tom de Vries <tdevries> |
| Component: | Development | Assignee: | Tom de Vries <tdevries> |
| Status: | NEW --- | QA Contact: | E-mail List <qa-bugs> |
| Severity: | Normal | ||
| Priority: | P5 - None | CC: | mjambor |
| Version: | Leap 15.4 | ||
| Target Milestone: | --- | ||
| Hardware: | Other | ||
| OS: | Other | ||
| Whiteboard: | |||
| Found By: | --- | Services Priority: | |
| Business Priority: | Blocker: | --- | |
| Marketing QA Status: | --- | IT Deployment: | --- |
|
Description
Tom de Vries
2023-09-19 11:43:04 UTC
Tentative patch:
...
diff --git a/gdb/build-id.c b/gdb/build-id.c
index c90daab5592..a110958d34b 100644
--- a/gdb/build-id.c
+++ b/gdb/build-id.c
@@ -523,6 +523,8 @@ build_id_to_debug_bfd_1 (const std::string &orig_link, size_t build_id_len,
if (seqno > 0)
{
+ break;
+
/* There can be multiple build-id symlinks pointing to real files
with the same build-id (such as hard links). Some of the real
files may not be installed. */
@@ -532,6 +534,7 @@ build_id_to_debug_bfd_1 (const std::string &orig_link, size_t build_id_len,
ret_link = link;
+#if 0
struct stat statbuf_trash;
/* `access' automatically dereferences LINK. */
@@ -540,6 +543,7 @@ build_id_to_debug_bfd_1 (const std::string &orig_link, size_t build_id_len,
/* Stop increasing SEQNO. */
break;
}
+#endif
/* lrealpath() is expensive even for the usually non-existent files. */
gdb::unique_xmalloc_ptr<char> filename_holder;
...
(In reply to Tom de Vries from comment #0) > This looks like a problem with one of the fedora patches. Reported by email to gdb maintainers affiliated with Red Hat. |