public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/27580] New: gcore: stream libthread_db information
@ 2021-03-15 13:44 mliska at suse dot cz
2021-03-15 13:45 ` [Bug gdb/27580] " mliska at suse dot cz
` (4 more replies)
0 siblings, 5 replies; 6+ messages in thread
From: mliska at suse dot cz @ 2021-03-15 13:44 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27580
Bug ID: 27580
Summary: gcore: stream libthread_db information
Product: gdb
Version: HEAD
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: gdb
Assignee: unassigned at sourceware dot org
Reporter: mliska at suse dot cz
Target Milestone: ---
I think gcore should stream also build-id and path:
/lib/libthread_db.so.1. I see the following error message when opening a core
file:
warning: Unable to find libthread_db matching inferior's thread library,
thread debugging will not be available.
And gdb should be able to load the specified file when loading a core file.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/27580] gcore: stream libthread_db information
2021-03-15 13:44 [Bug gdb/27580] New: gcore: stream libthread_db information mliska at suse dot cz
@ 2021-03-15 13:45 ` mliska at suse dot cz
2022-08-08 8:56 ` mliska at suse dot cz
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mliska at suse dot cz @ 2021-03-15 13:45 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27580
Martin Liska <mliska at suse dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
See Also| |https://sourceware.org/bugz
| |illa/show_bug.cgi?id=27570
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/27580] gcore: stream libthread_db information
2021-03-15 13:44 [Bug gdb/27580] New: gcore: stream libthread_db information mliska at suse dot cz
2021-03-15 13:45 ` [Bug gdb/27580] " mliska at suse dot cz
@ 2022-08-08 8:56 ` mliska at suse dot cz
2023-01-13 8:42 ` mliska at suse dot cz
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: mliska at suse dot cz @ 2022-08-08 8:56 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27580
Martin Liska <mliska at suse dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amerey at redhat dot com
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/27580] gcore: stream libthread_db information
2021-03-15 13:44 [Bug gdb/27580] New: gcore: stream libthread_db information mliska at suse dot cz
2021-03-15 13:45 ` [Bug gdb/27580] " mliska at suse dot cz
2022-08-08 8:56 ` mliska at suse dot cz
@ 2023-01-13 8:42 ` mliska at suse dot cz
2023-01-16 22:48 ` amerey at redhat dot com
2023-01-17 13:57 ` mliska at suse dot cz
4 siblings, 0 replies; 6+ messages in thread
From: mliska at suse dot cz @ 2023-01-13 8:42 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27580
Martin Liska <mliska at suse dot cz> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |ASSIGNED
Ever confirmed|0 |1
Last reconfirmed| |2023-01-13
--- Comment #1 from Martin Liska <mliska at suse dot cz> ---
@Aaron: Is this something you're planning to take a look?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/27580] gcore: stream libthread_db information
2021-03-15 13:44 [Bug gdb/27580] New: gcore: stream libthread_db information mliska at suse dot cz
` (2 preceding siblings ...)
2023-01-13 8:42 ` mliska at suse dot cz
@ 2023-01-16 22:48 ` amerey at redhat dot com
2023-01-17 13:57 ` mliska at suse dot cz
4 siblings, 0 replies; 6+ messages in thread
From: amerey at redhat dot com @ 2023-01-16 22:48 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27580
--- Comment #2 from Aaron Merey <amerey at redhat dot com> ---
(In reply to Martin Liska from comment #1)
> @Aaron: Is this something you're planning to take a look?
I'm not seeing the "unable to find libthread_db" warning when opening a core
file. Do you have a reproducer for this?
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
* [Bug gdb/27580] gcore: stream libthread_db information
2021-03-15 13:44 [Bug gdb/27580] New: gcore: stream libthread_db information mliska at suse dot cz
` (3 preceding siblings ...)
2023-01-16 22:48 ` amerey at redhat dot com
@ 2023-01-17 13:57 ` mliska at suse dot cz
4 siblings, 0 replies; 6+ messages in thread
From: mliska at suse dot cz @ 2023-01-17 13:57 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=27580
--- Comment #3 from Martin Liska <mliska at suse dot cz> ---
The message will be displayed if you debug a core file from a machine that has
e.g. ancient version of glibc:
gdb/linux-thread-db.c:
/* Predicate which tests whether objfile OBJ refers to the library
containing pthread related symbols. Historically, this library has
been named in such a way that looking for "libpthread" in the name
was sufficient to identify it. As of glibc-2.34, the C library
(libc) contains the thread library symbols. Therefore we check
that the name matches a possible thread library, but we also check
that it contains at least one of the symbols (pthread_create) that
we'd expect to find in the thread library. */
static bool
libpthread_objfile_p (objfile *obj)
{
return (libpthread_name_p (objfile_name (obj))
&& lookup_minimal_symbol ("pthread_create",
NULL,
obj).minsym != NULL);
}
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2023-01-17 13:57 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-15 13:44 [Bug gdb/27580] New: gcore: stream libthread_db information mliska at suse dot cz
2021-03-15 13:45 ` [Bug gdb/27580] " mliska at suse dot cz
2022-08-08 8:56 ` mliska at suse dot cz
2023-01-13 8:42 ` mliska at suse dot cz
2023-01-16 22:48 ` amerey at redhat dot com
2023-01-17 13:57 ` mliska at suse dot cz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).