This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug gdb/18777] New: Want a -cd option that says "Pretend I started gdb in that directory."


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]