aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2003-01-04 Fix PR gdb/844Daniel Jacobowitz8-105/+29
* lib/gdb.exp (gdb_compile): Handle "quiet" option. (gdb_compile_pthreads): Pass "quiet" to gdb_compile. * gdb.threads/gcore-thread.exp: Use gdb_compile_pthreads. Return instead of calling gdb_suppress_entire_file. * gdb.threads/print-threads.exp: Likewise. * gdb.threads/schedlock.exp: Likewise. * gdb.threads/killed.exp: Return instead of calling gdb_suppress_entire_file. * gdb.threads/linux-dp.exp: Likewise. * gdb.threads/pthreads.exp: Likewise.
2003-01-04gdb/Daniel Jacobowitz4-19/+18
* buildsym.h (processing_hp_compilation): Remove obsolete variable. * gdbarch.sh Remove include of "value.h" in gdbarch.h. (COERCE_FLOAT_TO_DOUBLE): Remove. * gdbarch.c: Regenerate. * gdbarch.h: Regenerate. * Makefile.in: Remove value_h from gdbarch_h. * valops.c (coerce_float_to_double): New variable. (default_coerce_float_to_double): Remove. (standard_coerce_float_to_double): Remove. (value_arg_coerce): Use coerce_float_to_double. (_initialize_valops): Add "set coerce-float-to-double". * value.h (default_coerce_float_to_double): Remove prototype. (standard_coerce_float_to_double): Remove prototype. * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as prototyped. * mdebugread.c (parse_symbol): Likewise. * stabsread.c (define_symbol): Mark all functions as prototyped. * hppa-tdep.c (hppa_coerce_float_to_double): Remove. * alpha-tdep.c (alpha_gdbarch_init): Remove call to set_gdbarch_coerce_float_to_double. * arm-tdep.c (arm_gdbarch_init): Likewise. * frv-tdep.c (frv_gdbarch_init): Likewise. * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out). * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise. * mips-tdep.c (mips_gdbarch_init): Likewise. (mips_coerce_float_to_double): Remove. * rs6000-tdep.c (rs6000_gdbarch_init): Likewise. (rs6000_coerce_float_to_double): Remove. * s390-tdep.c (s390_gdbarch_init): Likewise. * sh-tdep.c (sh_gdbarch_init): Likewise. (sh_coerce_float_to_double): Remove. * sparc-tdep.c (sparc_gdbarch_init): Likewise. (sparc_coerce_float_to_double): Remove. * v850-tdep.c (v850_gdbarch_init): Likewise. * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise. * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove. * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove. (hppa_coerce_float_to_double): Remove prototype. * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove. doc/ * gdb.texinfo (Controlling GDB): Add ABI section. Document "set coerce-float-to-double". * gdbint.texinfo (COERCE_FLOAT_TO_DOUBLE): Remove documentation. testsuite/ * gdb.base/callfuncs.exp: Don't XFAIL unprototyped functions for stabs. * gdb.base/completion.exp: Allow marker1(void) as well as marker1(). * gdb.base/whatis.exp: Always allow (void) after function names.
2003-01-04 * gdb.c++/casts.exp: Correct regexp.Daniel Jacobowitz2-2/+6
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.