public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "dje at google dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug gdb/18777] New: Want a -cd option that says "Pretend I started gdb in that directory."
Date: Wed, 05 Aug 2015 20:17:00 -0000	[thread overview]
Message-ID: <bug-18777-4717@http.sourceware.org/bugzilla/> (raw)

https://sourceware.org/bugzilla/show_bug.cgi?id=18777

            Bug ID: 18777
           Summary: Want a -cd option that says "Pretend I started gdb in
                    that directory."
           Product: gdb
           Version: unknown
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: gdb
          Assignee: unassigned at sourceware dot org
          Reporter: dje at google dot com
  Target Milestone: ---

The current -cd behaviour is broken for most(all?) of my use cases.

I want to be able to start gdb and have it behave is if I started gdb in the
specified directory. -cd does not do this as it is processed way too late.
E.g., after system.gdbinit and after -ix/-iex options.

Changing the current -cd behaviour would break -ix/-iex that depend
on the current behaviour of processing -cd *after* -ix/-iex.

I'm tempted to add a new -icd option, but bleah.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


             reply	other threads:[~2015-08-05 20:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-05 20:17 dje at google dot com [this message]
2024-01-03 13:13 ` [Bug gdb/18777] " ssbssa 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-18777-4717@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).