2011-08-17 Phil Muldoon <pmuldoon@redhat.com>
Tom Tromey <tromey@redhat.com> Matt Rice <ratmice@gmail.com> * python/lib/gdb/prompt.py: New file. * python/lib/gdb/command/prompt.py: New file. * NEWS: Document set extended-prompt and gdb.prompt library 2011-08-17 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Prompt): Add set/show extended-prompt documentation (Basic Python): Add prompt_hook anchor. (Python modules): Reword module text to reflect multiple modules. (gdb.prompt): Document gdb.prompt module. 2011-08-17 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/python.exp: Add extended-prompt tests.
This commit is contained in:
parent
72b5104c84
commit
fa3a4f150f
9 changed files with 361 additions and 2 deletions
|
@ -275,3 +275,29 @@ gdb_test_multiple "end" "end programming" {
|
|||
pass "end programming"
|
||||
}
|
||||
}
|
||||
|
||||
gdb_py_test_multiple "prompt substitution readline" \
|
||||
"python" "" \
|
||||
"import gdb.command.prompt" "" \
|
||||
"end" ""
|
||||
|
||||
gdb_test_multiple "set extended-prompt one two three " \
|
||||
"set basic extended prompt" {
|
||||
-re "\[\r\n\]one two three $" {
|
||||
pass "set basic extended prompt"
|
||||
}
|
||||
}
|
||||
|
||||
gdb_test_multiple "set extended-prompt \\w " \
|
||||
"set extended prompt working directory" {
|
||||
-re "\[\r\n\].*gdb.*testsuite.* $" {
|
||||
pass "set extended prompt working directory"
|
||||
}
|
||||
}
|
||||
|
||||
gdb_test_multiple "set extended-prompt some param \\p{python print-stack} " \
|
||||
"set extended prompt parameter" {
|
||||
-re "\[\r\n\]some param True $" {
|
||||
pass "set extended prompt parameter"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue