This is the mail archive of the gdb-patches@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]

Re: [patch] [python] Prompt substitution


On Wednesday 20 July 2011 12:33:24, Phil Muldoon wrote:
> +gdb_test_multiple "set prompt blah " "set blah in GDB" {
> +    -re "\[\r\n\]$newprompt2 $" {
> +       pass "set prompt blah overriden"
> +    }
> +}
> +
> +gdb_test_multiple "python gdb.prompt_hook = None" "Delete hook" {
> +    -re "\[\r\n\]$newprompt2 $" {
> +       pass "Delete old hook"
> +    }
> +}

Hmm:

...
PASS: gdb.python/python.exp: show prompt shows guarded prompt
set prompt blah 
py prompt 2 PASS: gdb.python/python.exp: set prompt blah overriden
python gdb.prompt_hook = None
py prompt 2 PASS: gdb.python/python.exp: Delete old hook

I think this last PASS is actually a bug.  We've disabled the python
hook, so we should get the "set prompt" prompt back ("blah")
instead of still seeing the python prompt.  Agree?

(My WIP no-prompt-stack patch turned that into a FAIL,
but it looks like it's a bug fix, not a regression.)

-- 
Pedro Alves


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