~ubuntu-branches/debian/jessie/gdb/jessie

« back to all changes in this revision

Viewing changes to gdb/testsuite/gdb.base/completion.exp

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Jacobowitz
  • Date: 2010-03-20 01:21:29 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100320012129-t7h25y8zgr8c2369
Tags: 7.1-1
* New upstream release, including:
  - PIE support (Closes: #346409).
  - C++ improvements, including static_cast<> et al, namespace imports,
    and bug fixes in printing virtual base classes.
  - Multi-program debugging.  One GDB can now debug multiple programs
    at the same time.
  - Python scripting improvements, including gdb.parse_and_eval.
  - Updated MIPS Linux signal frame layout (Closes: #570875).
  - No internal error stepping over _dl_debug_state (Closes: #569551).
* Update to Standards-Version: 3.8.4 (no changes required).
* Include more relevant (and smaller) docs in the gdbserver package
  (Closes: #571132).
* Do not duplicate documentation in gdb64, gdb-source, and libgdb-dev.
* Fix crash when switching into TUI mode (Closes: #568489).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright 1998, 1999, 2002, 2003, 2004, 2007, 2008, 2009
 
1
# Copyright 1998, 1999, 2002, 2003, 2004, 2007, 2008, 2009, 2010
2
2
# Free Software Foundation, Inc.
3
3
 
4
4
# This program is free software; you can redistribute it and/or modify
211
211
        -re "^info t foo\\\x07$"\
212
212
            { send_gdb "\n"
213
213
              gdb_expect {
214
 
                      -re "Ambiguous info command \"t foo\": target, tasks, terminal, threads, tp, tracepoints, types\\..*$gdb_prompt $"\
 
214
                      -re "Ambiguous info command \"t foo\": target, tasks, terminal, threads, tp, tracepoints, tvariables, types\\..*$gdb_prompt $"\
215
215
                                        { pass "complete 'info t foo'"}
216
216
                      -re ".*$gdb_prompt $" { fail "complete 'info t foo'"}
217
217
                      timeout           {fail "(timeout) complete 'info t foo'"}
227
227
        -re "^info t\\\x07$"\
228
228
            { send_gdb "\n"
229
229
              gdb_expect {
230
 
                      -re "Ambiguous info command \"t\": target, tasks, terminal, threads, tp, tracepoints, types\\..
 
230
                      -re "Ambiguous info command \"t\": target, tasks, terminal, threads, tp, tracepoints, tvariables, types\\..
231
231
*$gdb_prompt $"\
232
232
                                        { pass "complete 'info t'"}
233
233
                      -re ".*$gdb_prompt $" { fail "complete 'info t'"}
245
245
        -re "^info t \\\x07$"\
246
246
            { send_gdb "\n"
247
247
              gdb_expect {
248
 
                      -re "Ambiguous info command \"t \": target, tasks, terminal, threads, tp, tracepoints, types\\..
 
248
                      -re "Ambiguous info command \"t \": target, tasks, terminal, threads, tp, tracepoints, tvariables, types\\..
249
249
*$gdb_prompt $"\
250
250
                                        { pass "complete 'info t '"}
251
251
                      -re ".*$gdb_prompt $" { fail "complete 'info t '"}
724
724
 
725
725
 
726
726
# GDB used to fail adding / on directories, on the first try only.
727
 
# Do not use the `completion' start here as it would conflict with the
728
 
# testcase (complete 'file ./gdb.base/complet') expectations.
729
 
set uniquedir ${objdir}/${subdir}/compl-uNiQuEdIr
 
727
set uniquedir ../testsuite/gdb.base/comp-dir
730
728
set escapeduniquedir [string_to_regexp ${uniquedir}]
731
729
set uniquesu subdi
732
730
set uniquesub ${uniquesu}r
733
731
set escapeuniquesub [string_to_regexp ${uniquesub}]
734
 
file mkdir ${uniquedir}/${uniquesub}
735
732
send_gdb "dir ${uniquedir}\t"
736
733
gdb_expect {
737
734
        -re "${escapeduniquedir}/" {