public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug gdb/18777] New: Want a -cd option that says "Pretend I started gdb in that directory."
@ 2015-08-05 20:17 dje at google dot com
  2024-01-03 13:13 ` [Bug gdb/18777] " ssbssa at sourceware dot org
  0 siblings, 1 reply; 2+ messages in thread
From: dje at google dot com @ 2015-08-05 20:17 UTC (permalink / raw)
  To: gdb-prs

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.


^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug gdb/18777] Want a -cd option that says "Pretend I started gdb in that directory."
  2015-08-05 20:17 [Bug gdb/18777] New: Want a -cd option that says "Pretend I started gdb in that directory." dje at google dot com
@ 2024-01-03 13:13 ` ssbssa at sourceware dot org
  0 siblings, 0 replies; 2+ messages in thread
From: ssbssa at sourceware dot org @ 2024-01-03 13:13 UTC (permalink / raw)
  To: gdb-prs

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

Hannes Domani <ssbssa at sourceware dot org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ssbssa at sourceware dot org

--- Comment #1 from Hannes Domani <ssbssa at sourceware dot org> ---
Couldn't you just use -iex "cd ..." to do that as well?

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-03 13:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-05 20:17 [Bug gdb/18777] New: Want a -cd option that says "Pretend I started gdb in that directory." dje at google dot com
2024-01-03 13:13 ` [Bug gdb/18777] " ssbssa at sourceware dot org

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).