From: Pedro Alves <palves@redhat.com>
To: Gary Benson <gbenson@redhat.com>, gdb-patches@sourceware.org
Subject: Re: set sysroot foo cannot be undone
Date: Tue, 10 Mar 2015 16:44:00 -0000 [thread overview]
Message-ID: <54FF1F7C.50201@redhat.com> (raw)
In-Reply-To: <20150310163823.GA22795@blade.nx>
On 03/10/2015 04:38 PM, Gary Benson wrote:
> Hi all,
>
> When you start GDB sysroot is set to "", unless you configured it
> differently. After you set it to something else it doesn't seem
> possible to restore sysroot to "". Would anyone object to my
> implementing an "unset sysroot" command?
Why not just make "set sysroot" (no argument) work? That's the
first thing that I blindly tried without even thinking about it,
thinking it'd just work like other commands (below). Did you find
a good reason that wouldn't be desirable?
$ gdb
GNU gdb (GDB) 7.9.50.20150309-cvs
...
(gdb) show debug-file-directory
The directory where separate debug symbols are searched for is "/usr/lib/debug".
(gdb) set debug-file-directory
(gdb) show debug-file-directory
The directory where separate debug symbols are searched for is "".
...
(gdb) show args
Argument list to give program being debugged when it is started is "".
(gdb) set args foo
(gdb) show args
Argument list to give program being debugged when it is started is "foo".
(gdb) set args
(gdb) show args
Argument list to give program being debugged when it is started is "".
...
Thanks,
Pedro Alves
next prev parent reply other threads:[~2015-03-10 16:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-10 16:38 Gary Benson
2015-03-10 16:44 ` Pedro Alves [this message]
2015-03-12 11:50 ` [OB PATCH] Allow "set sysroot" with no argument Gary Benson
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=54FF1F7C.50201@redhat.com \
--to=palves@redhat.com \
--cc=gbenson@redhat.com \
--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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).