public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Automatically fetching Build ID from remote libraries and resole them locally?
@ 2020-03-27 14:20 Norbert Lange
  2020-03-28  0:40 ` Frank Ch. Eigler
  0 siblings, 1 reply; 13+ messages in thread
From: Norbert Lange @ 2020-03-27 14:20 UTC (permalink / raw)
  To: gdb

Hello,

I am mostly remote debugging, and I often have mismatches from the
remote binaries and the local build environment (typically this makes
thing worse than having no debug info)
This can include the app themself, but most commonly its slightly
different builds of libraries.

Right now I can pick between setting up a sysroot path, or DL the
(stripped) libraries from the target. Neither is optimal.
If your sysroot is compromised of several builds, its also not
feasible to have all combinations of them around.

Build-Ids already solve those problems on a local gdb session. Would
it be possibly to use the benefits on remote sessions aswell?

ie. DL only some ELF headers or remotely inspect the Build-ID,
then lookup and resolve the matching library and debuginfo in the
debug-file-directory database.
Potentially transfer the whole library from the target if that fails.

Such a scheme would make connection to a remote target rather foolproof, and
allowing other stuff like manually loaded libraries (no valid
filename) to work aswell.

Norbert

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2020-04-06 14:41 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-27 14:20 Automatically fetching Build ID from remote libraries and resole them locally? Norbert Lange
2020-03-28  0:40 ` Frank Ch. Eigler
2020-03-30  8:35   ` Norbert Lange
2020-03-30  8:45     ` Jan Kratochvil
2020-03-30  9:04       ` Norbert Lange
2020-03-30  9:19         ` Jan Kratochvil
2020-03-30 18:43           ` Gary Benson
2020-04-06 11:31           ` Norbert Lange
2020-04-06 11:49             ` Jan Kratochvil
2020-04-06 12:08               ` Norbert Lange
2020-04-06 12:16                 ` Jan Kratochvil
2020-04-06 12:53                   ` Norbert Lange
2020-04-06 14:41                     ` Norbert Lange

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).