This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/15979] current_directory not updated if chdir done from python
- From: "dje at google dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Wed, 25 Sep 2013 23:53:16 +0000
- Subject: [Bug gdb/15979] current_directory not updated if chdir done from python
- Auto-submitted: auto-generated
- References: <bug-15979-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=15979
--- Comment #1 from dje at google dot com ---
More things to look into:
1) cd_command has code to canonicalize out "." and ".." in paths but it doesn't
handle symlinks (whether it should or not is debatable, so this could be a
non-bug, depending on how wants to define things).
2) There is also gdb_dirbuf.
This can lead to things like:
bash$ gdb
(gdb) pwd
Working directory /home/dje/src/play/subdir.
(gdb) cd ..
Working directory /home/dje/src/play.
(gdb) python os.chdir ("..")
(gdb) pwd
Working directory /home/dje/src/play
(canonically /home/dje/src).
--
You are receiving this mail because:
You are on the CC list for the bug.