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/15979] current_directory not updated if chdir done from python


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.


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