From: Joel Brobecker <brobecker@adacore.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sourceware.org
Subject: Re: GDB 7.5: Problems with the auto-load safe-path feature
Date: Sat, 18 Aug 2012 16:11:00 -0000 [thread overview]
Message-ID: <20120818161049.GI2798@adacore.com> (raw)
In-Reply-To: <83d32ogz3g.fsf@gnu.org>
> This new feature in GDB 7.5 looks like a nuisance in my (short)
> experience.
Same here. Very very much agreed, in fact. But I don't feel we have
much of a leg to stand on, when opposing the feature. Jan and I
discussed this feature quite a bit, as I recall, and came to the best
compromise we could. For your own personal purposes, you can turn
this feature off by default when configuring GDB. I think that
the configure option is: --without-auto-load-safe-path
> 2012-08-18 Eli Zaretskii <eliz@gnu.org>
>
> * auto-load.c (auto_load_objfile_script): If OBJFILE specifies a
> DOS/Windows-style .exe executable program, remove the .exe suffix
> when generating the script file name.
I think that the test should ideally be target-dependent. But short of
that, how about we just try without the .exe prefix if the first attempt
failed, regardless of host and/or target?
In other words:
1. Try loading <filename>-gdb.gdb
2. If (1) fails, and <filename> ends with '.exe':
Try loading <filename-minus-exe>-gdb.gdb
That way, if you are cross-building a Windows GDB on GNU/Linux, and
try to debug it from GNU/Linux as well, the Linux-to-Windows cross GDB
would be able to pickup the gdb-gdb.gdb file automatically.
--
Joel
next prev parent reply other threads:[~2012-08-18 16:11 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-18 12:32 Eli Zaretskii
2012-08-18 13:21 ` Jan Kratochvil
2012-08-18 15:01 ` Eli Zaretskii
2012-08-18 16:19 ` Joel Brobecker
2012-08-18 17:11 ` Eli Zaretskii
2012-08-20 14:54 ` Tom Tromey
2012-08-27 16:48 ` [commit+7.5] apropos fix for auto-load texts [Re: GDB 7.5: Problems with the auto-load safe-path feature] Jan Kratochvil
2012-08-18 16:11 ` Joel Brobecker [this message]
2012-08-18 17:07 ` GDB 7.5: Problems with the auto-load safe-path feature Eli Zaretskii
2012-08-20 15:08 ` Jan Kratochvil
2012-08-20 16:36 ` Eli Zaretskii
2012-08-27 16:53 ` [commit+7.5] auto-load for .exe files [Re: GDB 7.5: Problems with the auto-load safe-path feature] Jan Kratochvil
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=20120818161049.GI2798@adacore.com \
--to=brobecker@adacore.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@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