public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "simark at simark dot ca" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug remote/28489] Allow caching of remote objfiles Date: Wed, 04 Jan 2023 17:11:35 +0000 [thread overview] Message-ID: <bug-28489-4717-B1FVxE7xZr@http.sourceware.org/bugzilla/> (raw) In-Reply-To: <bug-28489-4717@http.sourceware.org/bugzilla/> https://sourceware.org/bugzilla/show_bug.cgi?id=28489 --- Comment #11 from Simon Marchi <simark at simark dot ca> --- (In reply to Tom Tromey from comment #7) > It occurred to me that to make this work, we'll need a new protocol > extension (no big deal) and gdbserver will have to know how to > extract the build id (a bigger deal). I think it would be fine for GDBserver to learn how to extract build-ids. It should be quite fast, and including a build-id field in the shared library list does not increase much the data transferred. I don't know if GDB needs to download the libraries up front for other reasons though. Otherwise, in theory, GDB should be able to extract the build-id of remote libraries by reading just the necessary bits (without downloading the whole file), using remote file-io. The upside is that it should work with the existing protocol, but the downside is that it would do many small requests to read small bits here and there (reading the ELF header, then looking through notes), so it adds a lot of back and forth, and the latency adds up. > I guess a different idea would be to construct a cached directory > tree that works like a sysroot, and use the existing remote > protocol stat capability to decide when to update a file. In this > approach, build ids just would not be used (or, rather, would be > used to locate remote debuginfo files). Using modification times to know when cached files are stale, or something else? That seems difficult to manage. Do you make one directory per remote? You could connect to 10.0.0.11:8888 and it's some system, and later connect to 10.0.0.11:8888, and it's another system. How do you detect that? -- You are receiving this mail because: You are on the CC list for the bug.
next prev parent reply other threads:[~2023-01-04 17:11 UTC|newest] Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-10-22 15:24 [Bug remote/28489] New: " tromey at sourceware dot org 2023-01-02 19:30 ` [Bug remote/28489] " tromey at sourceware dot org 2023-01-03 2:56 ` simark at simark dot ca 2023-01-03 4:09 ` daniel at mariadb dot org 2023-01-03 9:57 ` mark at klomp dot org 2023-01-03 16:45 ` tromey at sourceware dot org 2023-01-03 16:57 ` simark at simark dot ca 2023-01-03 17:55 ` mark at klomp dot org 2023-01-04 1:39 ` tromey at sourceware dot org 2023-01-04 2:58 ` fche at redhat dot com 2023-01-04 4:07 ` tromey at sourceware dot org 2023-01-04 4:13 ` simark at simark dot ca 2023-01-04 17:11 ` simark at simark dot ca [this message] 2023-08-23 19:18 ` tromey at sourceware dot org 2023-08-23 19:26 ` fche at redhat dot com 2023-08-23 19:30 ` tromey at sourceware dot org 2023-08-24 17:40 ` tromey at sourceware dot org 2023-08-24 19:41 ` tromey at sourceware dot org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-28489-4717-B1FVxE7xZr@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).