aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2003-01-04* configure.in: Call AC_CONFIG_HEADER. Don't callMark Kettenis30-7854/+297
AC_CONFIG_SUBDIRS on gdb.arch, gdb.asm, gdb.base gdb.c++ gdb.java, gdb.disasm, gdb.mi, gdb.threads and gdb.trace. Call AC_CHECK_HEADERS on pthread.h. Put Makefiles in the aforementioned directories in the AC_OUPUT call. * config.hin: New file. * gdb.mi/gdb669.exp, gdb.mi/mi-pthreads.exp, gdb.mi/mi1-pthreads.exp, gdb.threads/gcore-thread.exp, gdb.threads/killed.exp, gdb.threads/print-threads.exp, gdb.threads/pthreads.exp, gdb.threads/schedlock.exp: Make sure we pass -I$objdir instead of -I$objdir/$subdir in compilation. * gdb.arch/configure.in, gdb.arch/configure, gdb.asm/configure.in, gdb.asm/configure, gdb.base/configure.in, gdb.base/configure, gdb.c++/configure.in, gdb.c++/configure, gdb.disasm/configure.in, gdb.disasm/configure, gdb.java/configure.in, gdb.java/configure, gdb.mi/configure.in, gdb.mi/configure, gdb.mi/config.in, gdb.threads/configure.in, gdb.threads/configure, gdb.threads/config.in, gdb.trace/configure.in, gdb.trace/configure: Removed.
2003-01-042003-01-03 Michael Chastain <mec@shout.net>Michael Chastain2-1/+6
* gdb.base/miscexprs.c: Fix PR gdb/697, "buglet in testsuite/gdb.base/miscexprs.c, off-by-1 array reference".
2003-01-04 * gdb.base/store.exp: Fix regular expressions.Daniel Jacobowitz2-9/+13
2003-01-04* configure.in: Rewrite.Mark Kettenis3-248/+234
* configure: Regenerated.
2003-01-032003-01-03 David Carlton <carlton@math.stanford.edu>David Carlton4-0/+85
* gdb.base/psymtab.exp: New file. * gdb.base/psymtab1.c: Ditto. * gdb.base/psymtab2.c: Ditto.
2002-12-24gdb.base/maint.exp: Update expect output to include 'ObjC'.Adam Fedor2-3/+7
2002-12-232002-12-23 David Carlton <carlton@math.stanford.edu>David Carlton2-0/+17
* gdb.base/selftest.exp (do_steps_and_nexts): Allow initial brace and current_directory initialization.
2002-12-23* gdb.trace/tfind.exp: Pass '-O1' flag via the 'optimize' option,Jim Blandy2-2/+10
rather than as part of the output file name.
2002-12-22* gdb.base/attach.exp: There's no need to copy the test program toJim Blandy2-31/+6
/tmp; that was only ever necessary on HP/UX, and this test is entirely disabled there anyway.
2002-12-22* gdb.c++/psmang.exp: Doc fix.Jim Blandy2-0/+12
2002-12-21* gdb.c++/psmang.exp, gdb.c++/psmang1.cc, gdb.c++/psmang2.cc: NewJim Blandy4-0/+532
test.
2002-12-202002-12-20 David Carlton <carlton@math.stanford.edu>David Carlton2-0/+5
* gdb.c++/annota2.exp: KFAIL annotate-quit.
2002-12-192002-12-18 Michael Chastain <mec@shout.net>Michael Chastain2-1/+5
* gdb.c++/annota2.exp: Add copyright year 2002.
2002-12-172002-12-17 David Carlton <carlton@math.stanford.edu>David Carlton6-151/+140
* gdb.c++/try_catch.cc: Add marker comments. * gdb.c++/try_catch.exp: Get line numbers from marker comments. * gdb.c++/m-data.cc: Delete namespace __gnu_test. * gdb.c++/m-static.cc: Ditto. * gdb.c++/m-static1.cc: Ditto. * gdb.c++/try_catch.cc: Ditto.
2002-12-162002-12-16 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-3/+20
* lib/mi-support.exp (mi_reinitialize_dir): Check mi level to see whether we are using the new -environment-directory command which resets via -r or the old version of the command which may prompt the user. Part of fix for gdb/741.
2002-12-16Remove obsolete testsuite code.Andrew Cagney78-7572/+47
2002-12-132002-12-13 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-7/+85
* mi-basics.exp: Change tests for -environment-directory. Also add tests for -environment-cd, -environment-pwd, and -environment-path. Part of fix for PR gdb/741.
2002-12-112002-12-11 David Carlton <carlton@math.stanford.edu>David Carlton3-7/+35
* gdb.c++/m-data.exp: Add test for members that shadow global variables: see PR gdb/804. * gdb.c++/m-data.cc: Ditto.
2002-12-11 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change toDaniel Jacobowitz2-4/+11
CHILD_FOLLOW_FORK. * hppah-nat.c (saved_vfork_pid): Add. (child_post_follow_vfork): Remove. (child_follow_fork): New function. (child_wait): Call detach_breakpoints after receiving the child vfork. Call child_resume directly instead of going through resume (). Make sure we have the exec before reporting the vfork. * inferior.h (follow_inferior_reset_breakpoints): Add prototype. * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove. (follow_fork): New function. Call target_follow_fork. (follow_inferior_reset_breakpoints): New function broken out from old follow_inferior_fork. (resume): Remove hack to follow exec after vfork. * inftarg.c (child_post_follow_vfork): Remove. (child_follow_fork): New function. (init_child_ops): Replace to_post_follow_vfork with to_follow_fork. * target.c (cleanup_target): Replace to_post_follow_vfork with to_follow_fork. (update_current_target): Likewise. (setup_target_debug): Likewise. (debug_to_post_follow_vfork): Remove. (debug_to_follow_fork): New function. * target.h (struct target_ops): Replace to_post_folow_vfork with to_follow_fork. (child_post_follow_vfork): Remove prototype. (child_follow_fork): Add prototype. (target_post_follow_vfork): Remove macro. (target_follow_fork): Add macro. testsuite/ * gdb.base/foll-vfork.exp: Re-enable test on HP/UX.
2002-12-062002-12-06 David Carlton <carlton@math.stanford.edu>David Carlton2-24/+33
* gdb.base/store.c: Don't declare functions static.
2002-12-052002-12-04 Andrew Cagney <ac131313@redhat.com>Andrew Cagney3-0/+425
* gdb.base/store.exp, gdb.base/store.c: New files.
2002-12-04 * gdb.base/selftest.exp: Update for current gdb.Daniel Jacobowitz2-2/+6
2002-12-04 * gdb.base/maint.exp: Only dump symbols from one source fileDaniel Jacobowitz2-14/+14
or objfile.
2002-12-04 * gdb.base/step-test.exp: Allow MIPS to return to the line of aDaniel Jacobowitz2-2/+11
function call.
2002-11-25* lib/mi-support.exp (mi_delete_breakpoints): Change name ofJim Blandy2-1/+6
function appearing in error message.
2002-11-22Revert previous change --- the hour was late, and I was confused aboutJim Blandy3-75/+0
its status.
2002-11-22* gdb.base/step-line.exp: Check that GDB can handle filenames thatJim Blandy3-0/+75
appear in the line number info, but not in the preprocessor macro info. * lib/gdb.exp (gdb_internal_error_regexp): New variable. (gdb_internal_error_resync): New procedure. (gdb_test): If the command results in an internal error, answer GDB's questions until we get back to a prompt.
2002-11-22 * gdb.base/maint.exp (help maint dump-me): Update with typo fix.Daniel Jacobowitz2-1/+5
2002-11-092002-11-09 Klee Dienes <kdienes@apple.com>Klee Dienes3-451/+455
* chexp.exp: Mark as obsolete. * pr-5016.exp: Remove stray trailing newline.
2002-11-082002-11-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-1/+26
* lib/mi-support.exp (mi_gdb_start): Verify the startup message for mi1 and current mi is in correct format. New mi startup message should be in mi console format. This is part of fix for PR gdb/604.
2002-11-08 * printcmd.c (disassemble_command): Remove obsolete function.Fernando Nasser2-1/+6
(_initialize_printcmd): Do not create disassemble command here. * cli/cli-cmds.c (disassemble_command): New function. Implements disassemble command. (init_cli_cmds): Create disassemble command here instead. * gdb.asm/asm-source.exp: Adjust patter to new disassembler routine which explicitly prints the zero offset as "+0".
2002-11-052002-11-05 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-0/+154
* gdb792.cc: New file to test patch for PR gdb/792. * gdb792.exp: Ditto.
2002-11-052002-11-04 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni23-688/+93
* mi-console.exp: Use mi_runto, mi_run_to_main, mi_next_to, mi_step_to wherever possible. Update copyright notices. * mi-disassemble.exp: Ditto. * mi-eval.exp: Ditto. * mi-read-memory.exp: Ditto. * mi-regs.exp: Ditto. * mi-return.exp: Ditto. * mi-stack.exp: Ditto. * mi-stepi.exp: Ditto. * mi-var-block.exp: Ditto. * mi-var-cmd.exp: Ditto. * mi-watch.exp: Ditto. * mi1-console.exp: Ditto. * mi1-disassemble.exp: Ditto. * mi1-eval.exp: Ditto. * mi1-read-memory.exp: Ditto. * mi1-regs.exp: Ditto. * mi1-return.exp: Ditto. * mi1-stack.exp: Ditto. * mi1-stepi.exp: Ditto. * mi1-var-block.exp: Ditto. * mi1-var-cmd.exp: Ditto. * mi1-watch.exp: Ditto.
2002-10-232002-10-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-0/+47
* mi-var-cmd.exp: Add tests to verify that a -var-assign that changes a value shows up in the changelist of a -var-update. Part of fix for gdb/702. * mi1-var-cmd.exp: Ditto.
2002-10-23 * gdb.threads/schedlock.c (args): Make unsigned.Daniel Jacobowitz2-1/+15
2002-10-22 * gdb.asm/asm-source.exp: Add "mips*-*" pattern. Update lineDaniel Jacobowitz5-13/+93
numbers. Allow "foo2|selected stack frame". * gdb.asm/asmsrc1.s: Use gdbasm_declare and gdbasm_end. * gdb.asm/asmsrc2.s: Likewise. * gdb.asm/common.inc: Define gdbasm_declare and gdbasm_end. Update comments. * gdb.asm/mips.inc: New file.
2002-10-18gdb.base/default.exp: Update expected output to include 'ObjC'.Adam Fedor3-6/+11
gdb.base/help.exp: Likewise.
2002-10-17 * gdb.base/constvars.c (struct crass, struct crisp): New structs.Kevin Buettner3-0/+15
* gdb.base/constvars.exp (ptype crass, ptype crisp): New tests.
2002-10-032002-10-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston5-8/+17
* mi-return.exp: Change expected frame output to remove extraneous space in level field when frame level is single digit. Part of fix for PR gdb/192. * mi-stack.exp: Ditto. * mi1-return.exp: Ditto. * mi1-stack.exp: Ditto.
2002-10-032002-10-03 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston4-34/+42
* mi-var-block.exp: Change expected output from -var-update command to expect list format for "changelist". Fix for PR gdb/672. * mi-var-cmd.exp: Ditto. * mi-var-child: Ditto.
2002-10-02* gdb.c++/casts.cc, gdb.c++/casts.exp: New test.Jim Blandy3-0/+104
2002-10-012002-10-01 Andrew Cagney <ac131313@redhat.com>Andrew Cagney20-0/+4842
* mi1-basics.exp: Copy of mi1-basics.exp MIFLAGS set "-i=mi1". * mi1-break.exp, mi1-console.exp, mi1-disassemble.exp: Ditto. * mi1-eval.exp, mi1-hack-cli.exp, mi1-pthreads.exp: Ditto. * mi1-read-memory.exp, mi1-regs.exp, mi1-return.exp: Ditto. * mi1-simplerun.exp, mi1-stack.exp, mi1-stepi.exp: Ditto. * mi1-until.exp, mi1-var-block.exp, mi1-var-child.exp: Ditto. * mi1-var-cmd.exp, mi1-var-display.exp, mi1-watch.exp: Ditto.
2002-09-29Delete no-longer-needed tests.Andrew Cagney19-4717/+10
2002-09-28 * gdb.base/annota1.exp (info break): Make directory components ofKevin Buettner3-10/+28
path optional since not all compilers emit this debug information. * gdb.base/shlib-call.exp (step inside shr2): Don't fail if first step ends up stepping out of the function instead of stopping on the epilogue.
2002-09-27 * lib/insight-support.exp (gdbtk_start): Figure out whereKeith Seitz2-5/+19
the insight executable is based on where gdb is. Use this executable to start insight instead of gdb.
2002-09-252002-09-25 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-0/+112
* frame.c: Include "gdb_string.h" and "builtin-regs.h". (frame_map_regnum_to_name): New function. (frame_map_name_to_regnum): New function. * frame.h (frame_map_name_to_regnum): Declare. (frame_map_regnum_to_name): Declare. * builtin-regs.c (builtin_reg_map_regnum_to_name): New function. * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare. * parse.c: Do not include "builtin-regs.h". (target_map_name_to_register): Delete function. (write_dollar_variable): Use frame_map_name_to_regnum. * parser-defs.h (target_map_name_to_register): Delete declaration. * expprint.c: Include "frame.h". (print_subexp): Use frame_map_regnum_to_name. * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name. * infcmd.c (registers_info): Use frame_map_name_to_regnum. 2002-09-25 Andrew Cagney <cagney@redhat.com> * gdb.base/pc-fp.exp, gdb.base/pc-fp.c: New test.
2002-09-25 * mi-pthreads.exp (get_mi_thread_list): Check if expect_outKeith Seitz3-6/+35
exists before using it. (check_mi_and_console_threads): Likewise. * gdb669.exp (get_mi_thread_list): Likewise. (check_mi_and_console_threads): Likewise.
2002-09-24 * configure.in: Add config header.Keith Seitz7-17/+733
Check for pthread.h. * configure: Regenerate. * config.in: New file. * pthreads.c: New file. * mi-pthreads.exp: New file to test thread functionality. * gdb669.exp: New file.
2002-09-242002-09-24 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-2/+46
* gdb.gdb/complaints.exp (test_initial_complaints): Rename test_isolated_complaints. (test_empty_complaint): New function. (test_empty_complaints): New function. Check no output when no complaints.
2002-09-20Add new tests for charset support.Kevin Buettner3-0/+621