aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2004-03-052004-03-05 David Carlton <carlton@kealia.com>David Carlton5-3/+49
* cp-namespace.c (cp_lookup_transparent_type_loop): Fix recursion bug. 2004-03-05 David Carlton <carlton@kealia.com> * gdb.cp/rtti.exp: Add 'print *obj3' test. * gdb.cp/rtti.h: Update copyright. (namespace n2::n3): New. * gdb.cp/rtti1.cc: (refer_to (n2::n3::C3 *)): New. (n2::n3::func3): New. (main): Call n2::n3::func3. * gdb.cp/rtti2.cc: Update copyright. (n2::create3): New.
2004-03-04* gdb.asm/openbsd.inc: Fix typo.Mark Kettenis2-1/+5
2004-03-03Committed under "obvious fix rule".Fred Fish2-2/+7
2004-03-03 Fred Fish <fnf@redhat.com> * gdb.base/pc-fp.exp (get_valueofx): Fix apparent typo to now set "val" instead of unused "size". Update copyright year.
2004-02-29 * gdb.cp/ctti.exp: Handle unsigned char type. Expect templatesDaniel Jacobowitz6-21/+28
to use unsigned char. * gdb.cp/cttiadd.c, gdb.cp/cttiadd1.c, gdb.cp/cttiadd2.c, gdb.cp/cttiadd3.c: Change type of variable to unsigned char.
2004-02-29 * config/gdbserver.exp (gdbserver_gdb_load): Wait for a completeDaniel Jacobowitz2-2/+9
line of output.
2004-02-29 * gdb.base/relocate.c (dummy): Initialize.Daniel Jacobowitz2-1/+5
2004-02-29 * gdb.base/chng-syms.exp: Anchor exit pattern. AllowDaniel Jacobowitz2-1/+9
a breakpoint at exit.
2004-02-28Reviewed and approved by drow@false.org.Fred Fish2-0/+8
2004-02-27 Fred Fish <fnf@redhat.com> * gdb.base/chng-syms.exp: Add expect condition to match failing case that isn't a timeout.
2004-02-272004-02-27 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-1/+6
* gdb.base/bigcore.exp: Disable on HP/UX, no sparse corefile support.
2004-02-26Reviewed and approved by cagney@gnu.org.Fred Fish4-77/+145
2004-02-26 Fred Fish <fnf@redhat.com> * gdb.arch/gdb1431.c: Remove. * gdb.arch/gdb1431.s: New file, copy of gdb1291.s * gdb.arch/gdb1431.exp: Use "advance" correctly instead of "until" incorrectly.
2004-02-26 * gdb.cp/class2.cc (empty): New class.Joel Brobecker3-1/+22
(refer): New function. (main): Declare an object of type empty and use it. * gdb.cp/class2.exp: Print the value of an object of type empty.
2004-02-262004-02-26 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-1/+6
* gdb.base/langs.exp: Update query string to match the new nquery format used for pending breakpoints.
2004-02-26Index: ChangeLogAndrew Cagney5-87/+100
2004-02-26 Andrew Cagney <cagney@redhat.com> Fix PR i18n/1570. * charset.c (backslashable, backslashed, represented): Remove 'e' from list of escaped characters, not part of ISO-C. Index: charset.c Index: testsuite/ChangeLog 2004-02-26 Andrew Cagney <cagney@redhat.com> Fix PR i18n/1570. * gdb.base/charset.c: Update copyright notice. (main, init_string): Remove the escape character '\e' tests. * gdb.base/printcmds.exp (test_print_all_chars): Ditto. * gdb.base/charset.exp (valid_host_charset): Ditto. * gdb.base/setvar.exp: Ditto.
2004-02-242004-02-24 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-11/+8
* gdb.base/corefile.exp: Use gdb_test_multiple, make "accessing mmapped data in core file" PASS and FAIL messages consistent.
2004-02-242004-02-24 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-1/+8
* gdb.java/jmisc.exp: Use the fully quallified name of "main" when setting a breakpoint. Work around PR java/1565.
2004-02-232004-02-23 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-5/+11
* lib/gdb.exp (gdb_breakpoint): Update query string to match new nquery format. * gdb.base/pending.exp: Ditto.
2004-02-23Missed adding ChangeLog entry and updating copyright year in a previousFred Fish2-2/+8
check in of callfuncs.exp. 2004-02-20 Fred Fish <fnf@redhat.com> * gdb.base/callfuncs.exp (do_function_calls): Remove extraneous blank in test for "returns short", for consistency with other "returns xxx" tests. Update copyright year.
2004-02-22* configure.in: Run stabs tests on *BSD.Mark Kettenis3-3/+8
* configure: Regenerated.
2004-02-21* gdb.base/bigcore.exp: Bail out on *BSD instead of only NetBSD.Mark Kettenis2-1/+5
2004-02-20Remove extraneous blank characterFred Fish1-1/+1
2004-02-19Testcase suggested by ezannoni@redhat.com.Fred Fish3-0/+114
2004-02-19 Fred Fish <fnf@redhat.com> New testcase for PR breakpoint/1558. * gdb.arch/gdb1558.exp: New file. * gdb.arch/gdb1558.c: New file.
2004-02-192004-02-19 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-1/+5
* gdb.base/nodebug.exp: Fix typo.
2004-02-182004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>Jim Blandy2-1/+3
Committed by Jim Blandy <jimb@redhat.com>. * gdb.objc/basicclass.exp: Adapt to fixed return type of printHi.
2004-02-182004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>Jim Blandy2-2/+4
Committed by Jim Blandy <jimb@redhat.com>. * gdb.base/dump.exp: Handle negative offsets in decimal, not hex.
2004-02-182004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>Jim Blandy1-0/+6
Committed by Jim Blandy <jimb@redhat.com>. * gdb.base/float.exp: Support s390*-*-* targets.
2004-02-182004-02-17 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>Jim Blandy1-0/+2
Committed by Jim Blandy <jimb@redhat.com>. * config/s390/nm-linux.h: Update comments. Do not include "solib.h". (KERNEL_U_ADDR, REGISTER_U_ADDR, U_REGS_OFFSET): Remove. (FETCH_INFERIOR_REGISTERS): Define. * config/s390/s390.mh (NATDEPFILES): Remove core-aout.o and core-regset.o. * config/s390/s390x.mt: Remove. * config/s390/tm-s390.h: Remove. * config/s390/tm-linux.h: Do not include "s390/tm-s390.h". (TARGET_ELF64): Remove. (SKIP_TRAMPOLINE_CODE): Do not undefine. * configure.tgt [s390-*-*, s390x-*-*]: Merge into single s390*-*-* case; always set gdb_target to s390. * regformats/reg-s390.dat: Remove control registers. * regformats/reg-s390x.dat: Likewise. * s390-tdep.h: New file. * s390-nat.c: Do not include <asm/processor.h> or <value.h>. Include "inferior.h" and "s390-tdep.h". Remove private definition of offsetof. (s390_register_u_addr): Remove. (regmap_gregset, regmap_fpregset): Define. (supply_gregset, fill_gregset): Reimplement. (supply_fpregset, fill_fpregset): Likewise. (s390_inferior_tid): New function. (fetch_regs, store_regs, fetch_fpregs, store_fpregs): Likewise. (fetch_inferior_registers, store_inferior_registers): Likewise. * s390-tdep.c: Do not define S390_TDEP. Include "defs.h" instead of <defs.h>. Include "reggroups.h", "regset.h", and "s390-tdep.h". Global replace of S390_GP0_REGNUM by S390_R0_REGNUM. Global replace of S390_FP0_REGNUM by S390_F0_REGNUM. (struct gdbarch_tdep): Define. (struct s390_register_info): Define. (s390_register_info): New variable. (s390_register_name): Reimplement. (s390_register_type): New function. (s390_register_raw_size, s390x_register_raw_size): Remove. (s390_cannot_fetch_register): Remove. (s390_register_byte): Remove. (s390_register_virtual_type, s390x_register_virtual_type): Remove. (s390_dwarf_regmap): New variable. (s390_dwarf_reg_to_regnum): New function. (s390_stab_reg_to_regnum): Remove. (s390_pseudo_register_read, s390_pseudo_register_write): New functions. (s390x_pseudo_register_read, s390x_pseudo_register_write): Likewise. (s390_convert_register_p): Likewise. (s390_register_to_value, s390_value_to_register): Likewise. (s390_register_reggroup_p): Likewise. (s390_regmap_gregset, s390x_regmap_gregset, s390_regmap_fpregset, s390_gregset, s390x_gregset, s390_fpregset): New variables. (s390_supply_regset, s390_regset_from_core_section): New functions. (GDB_TARGET_IS_ESAME): Move here from tm-s390.h. (S390_FPR_SIZE): Likewise. (S390_GPR_SIZE): Likewise. Redefine in terms of GDB_TARGET_IS_ESAME. Global replace of DEPRECATED_REGISTER_SIZE by S390_GPR_SIZE. (S390_NUM_GPRS): Move here from tm-s390.h. (S390_NUM_FPRS): Likewise. (s390_in_function_epilogue_p): New function. (s390_is_sigreturn): Replace S390_PSW_ADDR_SIZE by S390_GPR_SIZE. Replace S390_PC_REGNUM by S390_PSWA_REGNUM. (s390_gdbarch_init): Allocate and set up gdbarch_tdep structure. Replace s390_stab_reg_to_regnum by s390_dwarf_reg_to_regnum. Replace S390_FP_REGNUM by S390_SP_REGNUM. Remove calls to: set_gdbarch_deprecated_max_register_raw_size, set_gdbarch_deprecated_max_register_virtual_size, set_gdbarch_deprecated_register_byte, set_gdbarch_cannot_fetch_register, set_gdbarch_cannot_store_register, set_gdbarch_deprecated_register_size, set_gdbarch_deprecated_register_raw_size, set_gdbarch_deprecated_register_virtual_size, set_gdbarch_deprecated_register_virtual_type, set_gdbarch_deprecated_register_bytes. Add calls to: set_gdbarch_num_pseudo_regs, set_gdbarch_register_type, set_gdbarch_convert_register_p, set_gdbarch_register_to_value, set_gdbarch_value_to_register, set_gdbarch_register_reggroup_p, set_gdbarch_regset_from_core_section, set_gdbarch_pseudo_register_read, set_gdbarch_pseudo_register_write, set_gdbarch_in_function_epilogue_p. * Makefile.in (s390-nat.o, s390-tdep.o): Update dependencies. (s390_tdep_h): New variable.
2004-02-18* gdb.base/gdb1555.exp: New file.Adam Fedor4-0/+181
* gdb.base/gdb1555-main.c, gdb.base/gdb1555.c: New files.
2004-02-182004-02-17 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+7
* Makefile.in (defs_h): Remove dependency on progress_h. * defs.h (QUIT): Remove use of PROGRESS macro. Remove include of progress.h. * main.c (captured_main): Delete use of START_PROGRESS and END_PROGRESS. 2004-02-17 Elena Zannoni <ezannoni@redhat.com> * gdb.base/selftest.exp (do_steps_and_nexts): Add comment.
2004-02-16 2004-02-16 Fred Fish <fnf@redhat.com>Fred Fish4-51/+173
* gdb.arch/gdb1291.c: Remove * gdb.arch/gdb1291.s: New test input file. * gdb.arch/gdb1291.exp: Expand test to check case that should not fail. Test for correct result, known incorrect result, other failures and timeouts.
2004-02-162004-02-16 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-0/+400
* gdb.base/bigcore.exp: New file. * gdb.base/bigcore.c: New file.
2004-02-132004-02-13 Andrew Cagney <cagney@redhat.com>Andrew Cagney21-4605/+13
* 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-02-112004-02-11 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-0/+6
* gdb.asm/ia64.inc (gdbasm_startup): Make sure first instruction executed is an alloc instruction.
2004-02-112004-02-11 David Carlton <carlton@kealia.com>David Carlton3-0/+111
* linespec.c (decode_compound): Only look for a class symbol when considering all but the rightmost component. 2004-02-11 David Carlton <carlton@kealia.com> * gdb.cp/breakpoint.exp: New. * gdb.cp/breakpoint.cc: New.
2004-02-112004-02-11 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain36-119/+48
Partial fix for PR gdb/1543. * gdb.cp/ambiguous.exp, gdb.cp/annota2.exp, gdb.cp/annota3.exp, gdb.cp/anon-union.exp, gdb.cp/casts.exp, gdb.cp/classes.exp, gdb.cp/cplusfuncs.exp, gdb.cp/ctti.exp, gdb.exp/demangle.exp, gdb.cp/derivation.exp, gdb.cp/exception.exp, gdb.cp/hang.exp, gdb.cp/inherit.exp, gdb.cp/local.exp, gdb.cp/maint.exp, gdb.cp/member-ptr.exp, gdb.cp/method.exp, gdb.cp/misc.exp, gdb.cp/namespace.exp, gdb.cp/overload.exp, gdb.cp/ovldbreak.exp, gdb.cp/psmang.exp, gdb.cp/ref-types.exp, gdb.cp/templates.exp, gdb.cp/userdef.exp, gdb.cp/virtfunc.exp: Remove reference to bug-gdb@prep.ai.mit.edu . * gdb.cp/bs15503.cc, gdb.cp/class2.cc, gdb.cp/cttiadd.cc, gdb.cp/cttiadd1.cc, gdb.cp/cttiadd2.cc, gdb.cp/cttiadd3.cc, gdb.cp/exception.cc, gdb.cp/member-ptr.cc, gdb.cp/namespace1.cc: Likewise.
2004-02-102004-02-10 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-0/+15
* lib/gdb.exp (gdb_expect_list): Recover from internal-errors using gdb_internal_error_resync.
2004-02-09 * gdb.threads/thread-specific.exp: Stop early if no threads areDaniel Jacobowitz2-0/+10
found.
2004-02-092004-02-09 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-2/+6
* gdb.base/pending.exp: Remove extra \n from gdb_test calls.
2004-02-08 * lib/gdb.exp (gdb_breakpoint): Fail on unexpected pendingDaniel Jacobowitz2-2/+7
breakpoints.
2004-02-08 * config/sim.exp (gdb_load): Handle $arg == "".Daniel Jacobowitz4-9/+19
* lib/gdb.exp (gdb_run_cmd): Honor gdb,do_reload_on_run. * gdb.objc/basicclass.exp: Use gdb_run_cmd.
2004-02-072004-02-07 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+10
* gdb.base/maint.exp: Update test to reflect obstack changes.
2004-02-052004-02-04 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston3-4/+15
* gdb.base/pendshr.c (pendfunc): New function that calls pendfunc1. * gdb.base/pending.c: Call pendfunc instead of pendfunc1.
2004-02-04Reviewed and approved by drow@mvista.com.Fred Fish3-2/+11
2004-02-04 Fred Fish <fnf@redhat.com> * gdb.arch/gdb1431.c: Add underbar prefixed version of global function symbols and update copyright years. * gdb.arch/gdb1291.c: Ditto.
2004-02-042004-02-03 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-18/+22
* gdb.cp/virtfunc.exp: Accept both "ctor()" and "ctor(void)".
2004-02-042004-02-03 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-4/+8
* gdb.cp/inherit.exp: Accept both "ctor()" and "ctor(void)".
2004-02-042004-02-03 Michael Chastain <mec.gnu@mindspring.com>Michael Chastain2-0/+8
* gdb.cp/inherit.exp: Accept output with gcc 3.2-7-rh.
2004-02-02Reviewed and approved by drow@mvista.com.Fred Fish2-4/+15
2004-02-02 Fred Fish <fnf@redhat.com> * gdb.base/bang.exp: Use gdb_run_cmd so this tests works with remote targets. Update copyright years.
2004-02-022004-02-02 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston7-4/+357
* lib/gdb.exp (gdb_breakpoint): Add pending breakpoint support. * gdb.base/langs.exp: Fix test which attempts to create breakpoint on non-existent function to handle new pending support. * gdb.base/shlib-call.exp: Use gdb_breakpoint to set a breakpoint. * gdb.base/pending.exp: New test. * gdb.base/pending.c: New file. * gdb.base/pendshr.c: Ditto.
2004-02-022004-02-02 David Carlton <carlton@kealia.com>David Carlton3-1/+49
* valops.c (enum oload_classification): New. (find_overload_match): Break implementation into separate functions; delete #if 0'd code; look for symbols within namespaces. (find_oload_champ_namespace,find_oload_champ_namespace_loop) (find_oload_champ,oload_method_static,classify_oload_match): New. * cp-support.h: Add declaration for cp_func_name; update declaration for make_symbol_overload_list. * cp-support.c (cp_func_name): New. (overload_list_add_symbol): Fix comment, use SYMBOL_LINKAGE_NAME and SYMBOL_NATURAL_NAME. (make_symbol_overload_list): Take a function name and a namespace instead of a symbol; change implementation. (make_symbol_overload_list_using): New. (make_symbol_overload_list_qualified, read_in_psymtabs): New. 2004-02-02 David Carlton <carlton@kealia.com> * gdb.cp/overload.exp: Add overloadNamespace tests. * gdb.cp/overload.cc (dummyClass, dummyInstance): New. (overloadNamespace, XXX): New. (main): Call XXX::marker2.
2004-02-02Reviewed and approved by drow@mvista.com:Fred Fish8-13/+23
2004-02-01 Fred Fish <fnf@redhat.com> * gdb.base/dump.exp: Use runto_main instead of "runto main". * gdb.base/finish.exp: Ditto. * gdb.base/gcore.exp: Ditto. * gdb.base/huge.exp: Ditto. * gdb.base/info-proc.exp: Ditto. * gdb.base/return2.exp: Ditto. * gdb.threads/gcore-thread.exp: Ditto.
2004-02-02 * gdb.threads/thread-specific.exp: Add missing anchor to regexp.Daniel Jacobowitz2-1/+5