This is the mail archive of the
gdb-cvs@sourceware.org
mailing list for the GDB project.
gdb and binutils branch master updated. 6427bef6d182b98dce746467c7c09e19e7cf7e2d
- From: qiyao at sourceware dot org
- To: gdb-cvs at sourceware dot org
- Date: 30 Oct 2014 01:48:00 -0000
- Subject: gdb and binutils branch master updated. 6427bef6d182b98dce746467c7c09e19e7cf7e2d
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gdb and binutils".
The branch, master has been updated
via 6427bef6d182b98dce746467c7c09e19e7cf7e2d (commit)
from 0d93a331c239b0ec629b177b3b4ef55a277a45ee (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=6427bef6d182b98dce746467c7c09e19e7cf7e2d
commit 6427bef6d182b98dce746467c7c09e19e7cf7e2d
Author: Yao Qi <yao@codesourcery.com>
Date: Thu Oct 30 09:42:36 2014 +0800
Don't replace '\' with '\\' in before_prompt_hook
In gdb/command/prompt.py:before_prompt_hook, the '\' in the new prompt
is replaced with '\\', shown as below,
> def before_prompt_hook(self, current):
> if self.value is not '':
> newprompt = gdb.prompt.substitute_prompt(self.value)
> return newprompt.replace('\\', '\\\\')
> else:
> return None
I don't see any explanations on this in comments nor email. As doc
said, "set extended-prompt \w" substitute the current working
directory, but it prints something different from what pwd or
os.getcwdu() prints on mingw32 host.
(gdb) python print os.getcwdu()^M
\\build2-lucid-cs\yqi\yqi\arm-none-eabi
(gdb) pwd^M
Working directory \\build2-lucid-cs\yqi\yqi\arm-none-eabi
(gdb) set extended-prompt \w
\\\\build2-lucid-cs\\yqi\\yqi\\arm-none-eabi
This makes me think whether the substitution in before_prompt_hook is
necessary or not. This patch is to remove this substitution.
Run gdb.python on x86_64-linux and arm-none-eabi on mingw32 host. No
regressions.
gdb:
2014-10-30 Yao Qi <yao@codesourcery.com>
* python/lib/gdb/command/prompt.py (before_prompt_hook): Don't
replace '\\' with '\\\\'.
-----------------------------------------------------------------------
Summary of changes:
gdb/ChangeLog | 5 +++++
gdb/python/lib/gdb/command/prompt.py | 3 +--
2 files changed, 6 insertions(+), 2 deletions(-)
hooks/post-receive
--
gdb and binutils