public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "patrickdepinguin at gmail dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/28330] gdbinit file should be loaded before core file
Date: Fri, 10 Sep 2021 14:50:50 +0000 [thread overview]
Message-ID: <bug-28330-4717-7TVqzJ8ArJ@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-28330-4717@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=28330
Thomas De Schampheleire <patrickdepinguin at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Resolution|--- |INVALID
Status|UNCONFIRMED |RESOLVED
--- Comment #2 from Thomas De Schampheleire <patrickdepinguin at gmail dot com> ---
(In reply to Simon Marchi from comment #1)
> I'm a bit confused, because you talk about files loaded using -x, but your
> example doesn't show any -x passed to gdb. Are you talking about files
> loaded using -x, or gdbinit files loaded automatically, such as the one in
> $HOME/.gdbinit?
>
> If you are talking about -x, then there exists both -ix and -eix that can be
> used to load files earlier in the startup process, maybe that can help.
Sorry for the confusion.
In the example, `cross-gdb` is actually a wrapper around the real gdb binary,
passing one or more `-x path-to-gdbinit` options.
I had tried '-ix' / '--init-command' before, but must have drawn an incorrect
conclusion, because now I tried it again and indeed it works.
Moreover, when using '-x', I now notice that the error about
auto-load-safe-path can actually be solved by _first_ setting the
auto-load-safe-path, and _then_ setting the sysroot. When using '-ix' this
order no longer matters.
So, problem solved, thanks a lot, and sorry for the noise.
--
You are receiving this mail because:
You are on the CC list for the bug.
next prev parent reply other threads:[~2021-09-10 14:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-09-10 11:55 [Bug gdb/28330] New: " patrickdepinguin at gmail dot com
2021-09-10 14:27 ` [Bug gdb/28330] " simark at simark dot ca
2021-09-10 14:50 ` patrickdepinguin at gmail dot com [this message]
2021-09-10 15:12 ` simark at simark dot ca
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-28330-4717-7TVqzJ8ArJ@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: 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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).