From: Pedro Alves <palves@redhat.com>
To: Alan Hayward <Alan.Hayward@arm.com>
Cc: Kevin Buettner <kevinb@redhat.com>,
GDB Patches <gdb-patches@sourceware.org>, nd <nd@arm.com>
Subject: Re: [RFC/PATCH] Testsuite: set sysroot when using gdbserver
Date: Thu, 28 Mar 2019 14:03:00 -0000 [thread overview]
Message-ID: <cabbd072-e738-8dca-c692-24669b1b58bc@redhat.com> (raw)
In-Reply-To: <655F33FF-0FD8-4478-A765-F76F004FB317@arm.com>
On 03/28/2019 12:50 PM, Alan Hayward wrote:
>
>>
>> IMO we could also look at this from the perspective that the slowness is
>> something that we should tackle, improve in gdb somehow. For example, we
>> could improve caching a lot. We have a readahead cache for vFile:pread, but
>> we could also have a persistent cache layer, so that we wouldn't be
>> downloading the same shared library files over and over again.
>
> Will caching only effect extended gdbserver (which AIUI, gdbserver stays alive
> between tests)? Itâs not an area Iâve (yet) looked at.
It'd work for plain target remote too. What I meant by persistent is that it
would persist across gdb invocations, saved in a cache directory, similarly
to where we put the new index cache. We could e.g., key that on build id.
>
>>
>>>
>>> I donât know much about how the board files work, but, looks like I can
>>> just add a flag via âset_board_infoâ in the relevant board files.
>>>
>>> I can then check for it at the end of gdbserver_start. Or instead check
>>> at the same place âtarget remoteâ is run (although I couldnât find where
>>> that was yesterday!).
>>
>> Probably just adding
>>
>> set GDBFLAGS "${GDBFLAGS} -ex \"set sysroot /\""
>>
>> to testsuite/boards/local-board.exp is all you'd need.
>
>
> That fixes it! And logically makes sense too.
> Works fine on the buildbot slave.
>
>>
>> I think it'd be good to have a testcase in gdb.server/ that explicitly
>> tests debugging a bit with "set sysroot target:" enabled, so that we
>> don't lose coverage of that.
>
> Agreed. Happy to raise that as a new patch next week - trying to avoid
> writing anything new as Iâm not really here today.
That'd be great, thanks.
>
> Is the following patch ok for pushing?
>
> Given you told me the line to add, I wasnât sure if I should be adding you
> to the changelog line too :)
>
Fine with me either way.
Patch is OK.
Thanks,
Pedro Alves
next prev parent reply other threads:[~2019-03-28 14:03 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20190327164025.48105-1-alan.hayward@arm.com>
2019-03-27 20:49 ` Kevin Buettner
2019-03-28 5:14 ` Kevin Buettner
2019-03-28 11:02 ` Alan Hayward
[not found] ` <dc692738-2f2b-2995-5a37-a813636d906d@redhat.com>
2019-03-28 12:50 ` Alan Hayward
2019-03-28 14:03 ` Pedro Alves [this message]
2019-04-12 20:08 ` Regression on gdb.base/break-probes.exp - native-{,extended-}gdbserver (was: Re: [RFC/PATCH] Testsuite: set sysroot when using gdbserver) Sergio Durigan Junior
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=cabbd072-e738-8dca-c692-24669b1b58bc@redhat.com \
--to=palves@redhat.com \
--cc=Alan.Hayward@arm.com \
--cc=gdb-patches@sourceware.org \
--cc=kevinb@redhat.com \
--cc=nd@arm.com \
/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: link
Be 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