aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.mi
AgeCommit message (Collapse)AuthorFilesLines
2005-09-272005-09-27 Bob Rossi <bob@brasko.net>Bob Rossi10-45/+46
* gdb.mi/mi-disassemble.exp, gdb.mi/mi2-disassemble.exp: Remove .* from test. Escape the | in mi_gdb_test call. * gdb.mi/mi-basics.exp, gdb.mi/mi-cli.exp, gdb.mi/mi-disassemble.exp, gdb.mi/mi-pthreads.exp, gdb.mi/mi-stack.exp, gdb.mi/mi2-basics.exp, gdb.mi/mi2-cli.exp, gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-pthreads.exp, gdb.mi/mi2-stack.exp: Add extra details to expected regex's in mi_gdb_test calls. * lib/mi-support.exp: Remove arbitrary .* from tests. (mi_gdb_test): Add string_regex variable. Add anchor to main -re. Fully anchor GDB/MI expected results in mi_gdb_test. * lib/gdb.exp (string_to_regexp): Escape the ] character. * gdb.base/sizeof.exp: Remove escape character. Correct test.
2005-09-112005-09-11 Bob Rossi <bob@brasko.net>Bob Rossi2-14/+8
* lib/mi-support.exp (mi_gdb_test): Change -re to not be anchored. * gdb.mi/mi-syn-frame.exp: Call mi_gdb_test twice instead of once for commands that return an MI output command and an asyncronous MI output command. * gdb.mi/mi-console.exp: Ditto.
2005-09-112005-09-11 Bob Rossi <bob@brasko.net>Bob Rossi1-0/+1
* gdb.mi/mi-var-child.c: Include <string.h>.
2005-08-042005-08-02 Bob Rossi <bob@brasko.net>Bob Rossi3-59/+32
* gdb.mi/mi-basics.exp: Tell mi_gdb_start to use a PTY for inferior. (test_setshow_inferior_tty): Add global mi_inferior_tty_name to scope. Change tests to inferior-tty-set/show. * gdb.mi/mi-console.exp: Tell mi_gdb_start to use a PTY for inferior. (47-exec-next): Use mi_gdb_test to get GDB and Inferior output. * gdb.mi/mi-syn-frame.exp: Tell mi_gdb_start to use a PTY for inferior. Use mi_gdb_test to get GDB and Inferior output. * lib/mi-support.exp (mi_inferior_spawn_id): Add inferior PTY descriptor. (mi_inferior_tty_name): Add inferior PTY file name. (mi_gdb_start): Add INFERIOR_PTY parameter. (mi_gdb_test): Add IPATTERN parameter.
2005-08-022005-08-02 Bob Rossi <bob@brasko.net>Bob Rossi2-12/+36
* gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Add MESSAGE parameter to mi_gdb_test. * lib/mi-support.exp (mi_gdb_test): Make MESSAGE parameter necessary.
2005-07-31 * gdb.mi/mi-var-child.c (do_children_tests): InitializeDaniel Jacobowitz2-0/+5
struct_declarations. * gdb.mi/mi-var-child.exp: Step over the initialization of struct_declarations.
2005-07-31 * gdb.mi/basics.c, gdb.mi/var-cmd.c: Revert last change.Daniel Jacobowitz6-29/+413
* gdb.mi/mi-stack.c: New file, based on gdb.mi/basics.c. * gdb.mi/mi-var-child.c: New file, based on gdb.mi/var-cmd.c. * gdb.mi/mi-stack.exp: Update to use mi-stack.c as a source file. * gdb.mi/mi-var-child.exp: Update to use mi-var-child.c as a source file.
2005-07-27* gdb.mi/var-cmd.c: Give long_array in _struct_decl 12 elements.Nick Roberts4-30/+54
(do_children_tests): Assign values to the extra elements. * gdb.mi/mi-var-child.exp: Adapt tests for extra elements and use them for tests for "-var-update --no-values" and "-var-update --all-values". Add test for "-var-list-children --simple-values". * gdb.mi/basics.c (callee4): Add integer array D[3]... * gdb.mi/mi-stack.exp (test_stack_locals_listing): ...to test "-stack-list-locals --simple-values" Improve doc strings and comments.
2005-07-10* gdb.mi/mi2-stack.exp (test_stack_locals_listing): Remove test forMark Kettenis1-7/+5
-stack-select-frame without arguments. (test_stack_frame_listing): Add test for newly implemented command -stack-info-frame.
2005-07-06Index: gdb/ChangeLogBob Rossi1-1/+31
+2005-07-06 Bob Rossi <bob@brasko.net> + + * fork-child.c (fork-inferior): Use accessor function for + inferior_io_terminal. + * infcmd.c (inferior_io_terminal): Make static. + (set_inferior_io_terminal): New function. + (get_inferior_io_terminal): Ditto. + (tty_command): Use accessor function. + (_initialize_infcmd): Add inferior_tty setshow variable. + (_initialize_infcmd): Remove tty command. + (_initialize_infcmd): Add a tty command that is an alias. + * inferior.h (set_inferior_io_terminal): New prototype. + (get_inferior_io_terminal): Ditto. + (new_tty_prefork): Add const qualifier to parameter. + * inflow.c (inferior_thisrun_terminal): Add const qualifier. + (new_tty_prefork): Add const qualifier to parameter. + * nto-procfs (procfs_create_inferior): Use accessor function. + (procfs_create_inferior): Add const qualifier to locals. + * win32-nat.c (child_create_inferior): Ditto. + * mi/mi-cmd-env.c (mi_cmd_inferior_tty_set): New function. + (mi_cmd_inferior_tty_set): Ditto. + * mi/mi-cmds.c (mi_cmds): Add inferior-tty-set and inferior-tty-show + * mi/mi-cmds.h (mi_cmd_inferior_tty_set): Add prototype. + (mi_cmd_inferior_tty_show): Ditto. Index: gdb/doc/ChangeLog +2005-07-06 Bob Rossi <bob@brasko.net> + + * gdb.texinfo (GDB/MI Miscellaneous Commands): Add -inferior-tty-set + and -inferior-tty-show. + (Input/Output): Document "set/show inferior-tty" and tty alias. Index: gdb/testsuite/ChangeLog +2005-07-06 Bob Rossi <bob@brasko.net> + + * gdb.mi/mi-basics.exp (test_setshow_inferior_tty): Test MI tty + command. + (Copyright): Update copyright.
2005-06-20(test_stack_locals_listing): Remove test for -stack-select-frame withoutNick Roberts1-7/+5
arguments. (test_stack_frame_listing): Add test for newly implemented command -stack-info-frame.
2005-06-13gdb/Daniel Jacobowitz2-6/+6
* mi/mi-main.c (register_changed_p, get_register): Use get_selected_frame. (mi_execute_command): Call mi_out_rewind after an error. testsuite/ * gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Don't expect excess MI output after an error.
2005-05-182005-05-17 Daniel Jacobowitz <dan@codesourcery.com>Daniel Jacobowitz15-76/+83
Dennis Brueni <dennis@slickedit.com> gdb/ * stack.c (print_frame): In MI mode, output a fullname attribute with the stack frame. gdb/doc/ * gdb.texinfo (GDB/MI Breakpoint Table Commands) (GDB/MI Data Manipulation, GDB/MI Program Control) (GDB/MI Stack Manipulation): Update examples to include the fullname attribute in stack frames. gdb/testsuite/ * gdb.mi/mi-cli.exp, gdb.mi/mi-return.exp, gdb.mi/mi-stack.exp, gdb.mi/mi-stepi.exp, gdb.mi/mi-syn-frame.exp, gdb.mi/mi-until.exp, gdb.mi/mi-var-display.exp, gdb.mi/mi-watch.exp, gdb.mi/mi2-cli.exp, gdb.mi/mi2-return.exp, gdb.mi/mi2-stack.exp, gdb.mi/mi2-syn-frame.exp, gdb.mi/mi2-until.exp, gdb.mi/mi2-var-display.exp: Expect fullname field in stack frames. * lib/mi-support.exp (mi_runto, mi_execute_to_helper): Likewise.
2005-05-08Add the fullname_syntax testsuite variable. This allows GDB to make sureBob Rossi2-3/+6
that the MI fullname field is an absolute path, instead of just checking for .* or /.*
2005-04-27 * ChangeLog: Correct some 2003-01-13 dates.Daniel Jacobowitz2-2/+2
* gdb.base/sigbpt.exp, gdb.base/signull.exp, gdb.cp/bs15503.exp, gdb.cp/exception.exp, gdb.cp/userdef.cc, gdb.cp/userdef.exp, gdb.mi/mi-console.exp, gdb.mi/mi2-console.exp, gdb.trace/collection.exp, gdb.trace/passc-dyn.exp, gdb.trace/tfind.exp: Update copyright years.
2005-03-08 * gdb.base/sigbpt.exp: Disable if gdb,nosignals.Nathan Sidwell2-32/+36
* gdb.base/signull.exp: Disable if gdb,nosignals. * gdb.cp/bs15503.exp: Disable if skip_cplus_tests * gdb.cp/exception.exp: Disable if skip_cplus_tests. * gdb.mi/mi-console.exp: Disable hello test if gdb,noinferiorio. * gdb.mi/mi2-console.exp: Likewise. * gdb.trace/collection.exp (run_trace_experiment): Consume the continue output at start. (gdb_collect_locals_test): Robustify regexp. * gdb.trace/passc-dyn.exp: Fix comment typo. * gdb.trace/tfind.exp: Don't enable optimization. Remove stray ']'.
2005-01-14Index: ChangeLogAndrew Cagney2-4/+6
2005-01-14 Andrew Cagney <cagney@gnu.org> * varobj.c (varobj_create): Add missing \n. Index: testsuite/ChangeLog 2005-01-14 Andrew Cagney <cagney@gnu.org> * gdb.mi/mi-var-cmd.exp: Adjust "create int" test to match output. * gdb.mi/mi2-var-cmd.exp: Ditto.
2004-10-142004-10-14 Andrew Cagney <cagney@gnu.org>Andrew Cagney1-1/+1
* gdb.mi/gdb701.c (main): Return 0.
2004-08-262004-08-26 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain3-2/+7
* gdb.mi/basics.c: Include <stdio.h>. * gdb.mi/pthreads.c: Include <stdlib.h>. * gdb.mi/var-cmd.c: Include <stdlib.h>.
2004-08-252004-08-24 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-0/+39
* gdb.mi/basics.c: Add copyright notice. * gdb.mi/var-cmd.c: Add copyright notice.
2004-08-172004-08-17 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain8-149/+189
* gdb.mi/mi-var-block.exp: Use gdb_get_line_number. Remove reference to bug-gnu@prep.ai.mit.edu. * gdb.mi/mi-var-child.exp: Likewise. * gdb.mi/mi-var-cmd.exp: Likewise. * gdb.mi/mi-var-display.exp: Likewise. * gdb.mi/mi2-var-block.exp: Likewise. * gdb.mi/mi2-var-child.exp: Likewise. * gdb.mi/mi2-var-cmd.exp: Likewise. * gdb.mi/mi2-var-display.exp: Likewise.
2004-08-152004-08-15 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain18-205/+341
* gdb.mi/mi-cli.exp: Use gdb_get_line_number. Remove reference to bug-gnu@prep.ai.mit.edu. * gdb.mi/mi-disassemble.exp: Likewise. * gdb.mi/mi-eval.exp: Likewise. * gdb.mi/mi-file.exp: Likewise. Also, add comment about the default line number. * gdb.mi/mi-return.exp: Likewise. * gdb.mi/mi-simplerun.exp: Likewise. * gdb.mi/mi-stack.exp: Likewise. * gdb.mi/mi-stepi.exp: Likewise. Also, replace wildcarded line number with explicit range test. * gdb.mi/mi-watch.exp: Likewise. * gdb.mi/mi2-break.exp: Likewise. * gdb.mi/mi2-cli.exp: Likewise. * gdb.mi/mi2-disassemble.exp: Likewise. * gdb.mi/mi2-eval.exp: Likewise. * gdb.mi/mi2-file.exp: Likewise. Also, add comment about the default line number. * gdb.mi/mi2-return.exp: Likewise. * gdb.mi/mi2-simplerun.exp: Likewise. * gdb.mi/mi2-stack.exp: Likewise. * gdb.mi/mi2-stepi.exp: Likewise. Also, replace wildcarded line number with explicit range test. * gdb.mi/mi2-watch.exp: Likewise.
2004-08-132004-08-13 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-42/+80
* gdb.mi/mi-break.exp: Use gdb_get_line_number. * gdb.mi/mi2-break.exp: Likewise.
2004-08-092004-08-09 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain19-19/+20
* gdb.mi/mi2-basics.exp, gdb.mi/mi2-break.exp, gdb.mi/mi2-console.exp, gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-eval.exp, gdb.mi/mi2-file.exp, gdb.mi/mi2-hack-cli.exp, gdb.mi/mi2-read-memory.exp, gdb.mi/mi2-regs.exp, gdb.mi/mi2-return.exp, gdb.mi/mi2-simplerun.exp, gdb.mi/mi2-stack.exp, gdb.mi/mi2-stepi.exp, gdb.mi/mi2-until.exp, gdb.mi/mi2-var-block.exp, gdb.mi/mi2-var-child.exp, gdb.mi/mi2-var-cmd.exp, gdb.mi/mi2-var-display.exp, gdb.mi/mi2-watch.exp: Update copyright years.
2004-08-092004-08-09 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain20-20/+20
* gdb.mi/gdb792.exp, gdb.mi/mi-basics.exp, gdb.mi/mi-break.exp, gdb.mi/mi-console.exp, gdb.mi/mi-disassemble.exp, gdb.mi/mi-eval.exp, gdb.mi/mi-file.exp, gdb.mi/mi-hack-cli.exp, gdb.mi/mi-read-memory.exp, gdb.mi/mi-regs.exp, gdb.mi/mi-return.exp, gdb.mi/mi-simplerun.exp, gdb.mi/mi-stack.exp, gdb.mi/mi-stepi.exp, gdb.mi/mi-until.exp, gdb.mi/mi-var-block.exp, gdb.mi/mi-var-child.exp, gdb.mi/mi-var-cmd.exp, gdb.mi/mi-var-display.exp, gdb.mi/mi-watch.exp: Update copyright years.
2004-07-08I added the testcase for -file-list-exec-source-files to mi2-file.exp.Bob Rossi2-14/+14
It should have been added to mi-file.exp. So, here it is.
2004-06-10Add the -file-list-exec-source-files command to MI.Bob Rossi1-2/+12
2004-02-132004-02-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney20-4605/+0
* gdb.mi/mi1-basics.exp, gdb.mi/mi1-break.exp: Delete file. * gdb.mi/mi1-console.exp, gdb.mi/mi1-disassemble.exp: Delete file. * gdb.mi/mi1-eval.exp, gdb.mi/mi1-hack-cli.exp: Delete file. * gdb.mi/mi1-pthreads.exp, gdb.mi/mi1-read-memory.exp: Delete file. * gdb.mi/mi1-regs.exp, gdb.mi/mi1-return.exp: Delete file. * gdb.mi/mi1-simplerun.exp, gdb.mi/mi1-stack.exp: Delete file. * gdb.mi/mi1-stepi.exp, gdb.mi/mi1-symbol.exp: Delete file. * gdb.mi/mi1-until.exp, gdb.mi/mi1-var-block.exp: Delete file. * gdb.mi/mi1-var-child.exp, gdb.mi/mi1-var-cmd.exp: Delete file. * gdb.mi/mi1-var-display.exp, gdb.mi/mi1-watch.exp: Delete file.
2004-01-24Update copyright year.Nick Roberts1-1/+1
2004-01-23 * gdb.mi/mi-var-child.exp: Update copyright year. Move new testDaniel Jacobowitz1-5/+4
after -var-update.
2004-01-20Test for case "-var-list-children --all-values NAME".Nick Roberts1-0/+4
2004-01-20(test_stack_locals_listing): Test for case "-stack-list-locals 2".Nick Roberts1-0/+5
2004-01-132004-01-13 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni4-8/+8
* gdb.threads/gcore-thread.exp: Prefix name of binary with test specific name. * gdb.mi/gdb669.exp: Ditto. * gdb.mi/mi-pthreads.exp: Ditto. * gdb.mi/mi1-pthreads.exp: Ditto. * gdb.mi/mi2-pthreads.exp: Ditto.
2004-01-132004-01-12 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-10/+14
* gdb.mi/mi2-basics.exp: Make sure that full pathnames are escaped correctly.
2004-01-12Eliminate the old mi/tui specific ChangeLog files as in ...Andrew Cagney1-0/+0
Added Files: mi/ChangeLog-1999-2003 testsuite/gdb.mi/ChangeLog-1999-2003 tui/ChangeLog-1998-2003 Removed Files: mi/ChangeLog testsuite/gdb.mi/ChangeLog tui/ChangeLog
2004-01-082004-01-08 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain1-2/+2
* gdb.mi/pthreads.c (done_making_threads): Remove extraneous semicolon after end of function.
2003-11-062003-11-05 Michael Chastain <mec@shout.net>Michael Chastain1-1/+8
* gdb.mi/pthreads.c (routine): Handle early return from sleep.
2003-10-242003-10-22 Michael Chastain <mec@shout.net>Michael Chastain1-0/+25
* gdb.mi/pthreads.c: Add copyright notice.
2003-08-17 * mi-var-display.exp (-var-list-children weird): Accept functionDaniel Jacobowitz3-3/+3
pointers with argument types. * mi1-var-display.exp (-var-list-children weird): Likewise. * mi2-var-display.exp (-var-list-children weird): Likewise.
2003-08-072003-08-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-11/+13
* gdb.base/attach.exp, gdb.base/detach.exp, gdb.base/gcore.exp, gdb.mi/mi-basics.exp, gdb.threads/gcore-thread.exp, gdb.trace/save-trace.exp: Make sure that full pathnames are escaped correctly.
2003-08-072003-08-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni1-23/+0
* configure.in: Don't generate config.h from config.hin. * configure: Regenerate. * config.hin: Remove file. * gdb.mi/pthreads.c: Remove include of config.h, and other ifdefs. * gdb.threads/pthreads.c: Ditto.
2003-08-07Index: ChangeLogAndrew Cagney23-0/+5008
2003-08-07 Andrew Cagney <cagney@redhat.com> * interps.h (INTERP_MI2, INTERP_MI3): Define. Index: doc/ChangeLog 2003-08-07 Andrew Cagney <cagney@redhat.com> * gdb.texinfo (Mode Options): Mention that "mi2" was included in GDB 6.0. Index: mi/ChangeLog 2003-08-07 Andrew Cagney <cagney@redhat.com> * mi-interp.c (_initialize_mi_interp): Register "mi2" and "mi3". Make "mi" select "mi2". Index: testsuite/gdb.mi/ChangeLog 2003-08-07 Andrew Cagney <cagney@redhat.com> * mi2-basics.exp: Copy base MI .exp file, set MIFLAGS to -i=mi2. * mi2-break.exp, mi2-cli.exp, mi2-console.exp: Ditto. * mi2-disassemble.exp, mi2-eval.exp, mi2-file.exp: Ditto. * mi2-hack-cli.exp, mi2-pthreads.exp, mi2-read-memory.exp: Ditto. * mi2-regs.exp, mi2-return.exp, mi2-simplerun.exp: Ditto. * mi2-stack.exp, mi2-stepi.exp, mi2-syn-frame.exp: Ditto. * mi2-until.exp, mi2-var-block.exp, mi2-var-child.exp: Ditto. * mi2-var-cmd.exp, mi2-var-display.exp, mi2-watch.exp: Ditto.
2003-05-04 From Thierry Schneider <tpschneider1@yahoo.com>:Joel Brobecker2-0/+67
* mi1-symbol.exp (-symbol-list-lines): New test file to validate all symbol-related commands
2003-04-082003-04-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-0/+6
* gdb792.exp: Skip when C++.
2003-04-02Adding -file-list-exec-source-file command to MIBob Rossi1-0/+65
2003-02-24 * mi-syn-frame.exp: Don't run this test when gdb,nosignals is set.Stephane Carrez2-1/+10
2003-02-062003-02-06 Jason Molenda (jason-cl@molenda.com)Jason Molenda1-0/+4
* gdb.mi/mi-syn-frame.c (subroutine): Add a comment explaining why the code is written that way.
2003-02-062003-02-05 Jason Molenda (jason-cl@molenda.com)Jason Molenda1-2/+3
* gdb.mi/mi-syn-frames.c (subroutine): Add an extra statement at the beginning so the breakpoint doesn't get set on the loop.
2003-02-062003-02-05 Keith Seitz <keiths@redhat.com>Andrew Cagney1-0/+208
Andrew Cagney <ac131313@redhat.com> * gdb.mi/mi-cli.exp: New file.
2003-02-022003-02-02 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-52/+52
From 2002-11-10 Jason Molenda (jason-cl@molenda.com): * mi-cmd-var.c (mi_cmd_var_list_children): CHILDREN field is now a list; still a tuple when in mi1. * gdbmi.texinfo: Update var-list-children example. 2003-02-02 Andrew Cagney <ac131313@redhat.com> 2002-11-10 Jason Molenda (jason-cl@molenda.com): * gdb.mi/mi-var-child.exp: -var-list-children's CHILDREN field is now a list, not a tuple. * gdb.mi/mi-var-display.exp: Ditto. * gdb.mi/gdb792.exp: Ditto.