aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2003-06-22 * gdb.base/relocate.exp: Test add-symbol-file with a variableDaniel Jacobowitz2-0/+31
offset.
2003-06-22 * gdb.c++/pr-1210.cc: New file.Daniel Jacobowitz3-0/+100
* gdb.c++/pr-1210.exp: New file.
2003-06-22 * lib/mi-support.exp (mi_run_cmd): Expect an MI response toDaniel Jacobowitz2-1/+6
000-exec-continue.
2003-06-15* gdb.base/attach.exp: Use -1 for the ID of a nonexistent processMark Kettenis2-2/+8
on *-*-*bsd* instead of *-*-freebsd*.
2003-06-142003-06-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-49/+104
* gdb.base/store.exp: Test longest and doublest. Test all parameters. Weaken return statement match. * gdb.base/store.c: Add longest and doublest - aka long long and long double functions. Put all parameters into local register variables. Use negative values.
2003-06-142003-06-14 Andrew Cagney <cagney@redhat.com>Andrew Cagney3-63/+113
* gdb.base/fileio.c: Include <errno.h>, and <sys/wait.h>. Gag -Wformat errors. Add lost line. Use WEXITSTATUS to get system exit status. * gdb.base/fileio.exp: Disable target when nointerrupts and noinferiorio, instead of limiting it to remote. Use remote_exec instead of system.
2003-06-122003-06-12 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-0/+6
* gdb.base/float.exp: Add ia64 support.
2003-06-12 * gdb.base/fileio.exp: Run only on remote targets.Corinna Vinschen2-0/+9
2003-06-10 * gdb.base/fileio.c: New file, testing File-I/O.Corinna Vinschen3-0/+740
* gdb.base/fileio.exp: Ditto.
2003-06-09Shared-object relocation testsRaoul Gough5-0/+302
2003-06-08* gdb.base/readline.exp: Add tests for operate-and-get-next with aMark Kettenis3-1/+293
fully filled history list. * gdb.base/gdb_history: New file.
2003-06-08* gdb.base/signals.exp: XFAIL "continue to func1" onMark Kettenis2-0/+4
i*86-*-freebsd*.
2003-06-08* gdb.base/attach.exp: When trying to attach to a nonexistentMark Kettenis2-24/+39
process, make it possible to specify the PID based on the target, and do so for *-*-freebsd*.
2003-06-02 * gdb.base/float.exp: Add expected regexp for alpha-*-*.Richard Henderson2-1/+7
2003-06-02 * top.h (lim_at_start): Declare.Richard Henderson2-0/+8
* main.c (captured_main): Set it. * top.c (lim_at_start): Define. (command_loop): Use it instead of &environ. * event-top.c (command_handler): Likewise. * gdb.base/selftest.exp: Next over lim_at_start initialization.
2003-06-02 * gdb.base/dump.exp [alpha*-*-*]: Add -taso linker switch.Richard Henderson2-1/+12
2003-06-02 * gdb.asm/asm-source.exp: Dissassemble from &globalvar insteadDaniel Jacobowitz2-1/+6
of globalvar.
2003-06-01* gdb.asm/asm-source.exp: Check for memory read errors inMark Kettenis2-1/+6
disassembler test on *BSD too.
2003-06-01 * gdb.asm/alpha.inc (gdbasm_enter): Use numeric register namesRichard Henderson3-3/+15
for .frame. (gdbasm_call): Lose ldgp. (gdbasm_startup): Add frame information. * gdb.asm/asm-source.exp (alpha*-*): Add -no-mdebug to asm-flags.
2003-05-31* gdb.base/float.exp: Expect similar output for x86_64-*-* as forMark Kettenis2-1/+6
i?86-*-*.
2003-05-30* gdb.asm/asm-source.exp: Make sure the final link succeeds onMark Kettenis2-0/+14
FreeBSD.
2003-05-30 * gdb.asm/alpha.inc: New file.Richard Henderson3-0/+69
* gdb.asm/asm-source.exp: Use it.
2003-05-29* gdb.base/corefile.exp: Find corefiles on Linux, which names themJim Blandy2-7/+30
'core.PID'.
2003-05-22* gdb.base/corefile.exp: Tolerate stuff after argument parens inJim Blandy2-1/+6
backtrace.
2003-05-202003-05-20 David Carlton <carlton@math.stanford.edu>David Carlton2-0/+36
* gdb.c++/namespace1.cc: Actually do 'cvs add' before committing this time.
2003-05-202003-05-19 David Carlton <carlton@bactrian.org>David Carlton5-0/+283
* gdb.c++/rtti.exp: New file, containing tests for PR c++/488. * gdb.c++/rtti.h, gdb.c++/rtti1.cc, gdb.c++/rtti2.cc: Ditto. 2003-05-19 David Carlton <carlton@bactrian.org> * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
2003-05-202003-05-19 David Carlton <carlton@bactrian.org>David Carlton3-11/+111
Partial fix for PR c++/827. * cp-support.h: Include symtab.h. Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace. * cp-namespace.c: Update contributors. (cp_lookup_symbol_nonlocal): New. (lookup_namespace_scope, cp_lookup_symbol_namespace) (lookup_symbol_file): Ditto. * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal. * block.h: Declare block_scope, block_using, block_global_block. * block.c (block_scope): New. (block_using, block_global_block): Ditto. * Makefile.in (cp_support_h): Depend on symtab_h. * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc. 2003-05-19 David Carlton <carlton@bactrian.org> * gdb.c++/namespace.exp: Add namespace scope and anonymous namespace tests. Bump copyright date. * gdb.c++/namespace.cc: Add anonymous namespace and namespace C. (main): Call C::D::marker2. * gdb.c++/namespace1.cc: New file.
2003-05-142003-05-14 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-4/+38
Roland McGrath <roland@redhat.com> * gdb.threads/linux-dp.exp: Account for fact that in nptl model there is no manager thread.
2003-05-082003-05-08 Jeff Johnston <jjohnstn@redhat.com>Jeff Johnston2-5/+15
* gdb.threads/schedlock.exp: Remove assumption that all threads will run in a particular small time slice. Also ensure we break in one of the child threads rather than the main thread.
2003-05-07Add support for assembly source testing on the s390x.Jim Blandy3-0/+76
* gdb.asm/asm-source.exp: Add a case for the s390x-*-* architecture. * gdb.asm/s390x.inc: New file.
2003-05-07* gdb.asm/asm-source.exp: Use a 'switch -glob' statement, not aJim Blandy2-52/+60
succession of 'if' statements.
2003-05-05Index: testsuite/ChangeLogAndrew Cagney2-0/+11
2003-05-05 Andrew Cagney <cagney@redhat.com> * gdb.base/maint.exp: Add tests for "maint print dummy-frames". Index: doc/ChangeLog 2003-05-05 Andrew Cagney <cagney@redhat.com> * gdb.texinfo (Maintenance Commands): Document "maint print dummy-frames". 2003-05-05 Andrew Cagney <cagney@redhat.com> * dummy-frame.c: Include "command.h" and "gdbcmd.h". (fprint_dummy_frames): New function. (maintenance_print_dummy_frames): New function. (_initialize_dummy_frame): Add command "maint print dummy-frames". * frame.c (fprint_frame_id): Make global. * frame.h (fprint_frame_id): Declare. * Makefile.in (dummy-frame.o): Update dependencies.
2003-05-052003-05-03 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-2/+7
* gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE. (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename SIZEOF_CALL_DUMMY_WORDS. (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS. (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY. (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename CALL_DUMMY_BREAKPOINT_OFFSET. (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename CALL_DUMMY_START_OFFSET. (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH. * gdbarch.h, gdbarch.c: Re-generate. * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update. * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update. * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update. * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update. * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update. * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update. * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update. * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update. * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update. * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update. * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update. * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update. * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update. * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update. * config/sparc/tm-sparc.h: Update. Index: doc/ChangeLog 2003-05-03 Andrew Cagney <cagney@redhat.com> * gdbint.texinfo (Target Architecture Definition): Make CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_LENGTH, FIX_CALL_DUMMY, CALL_DUMMY_BREAKPOINT_OFFSET and CALL_DUMMY_BREAKPOINT_OFFSET deprecated. Index: mi/ChangeLog 2003-05-03 Andrew Cagney <cagney@redhat.com> * mi-main.c (mi_cmd_data_write_register_values): Replace REGISTER_SIZE with DEPRECATED_REGISTER_SIZE. Index: testsuite/ChangeLog 2003-05-03 Andrew Cagney <cagney@redhat.com> * gdb.base/watchpoint.exp: Rename CALL_DUMMY_BREAKPOINT_OFFSET to DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET in comments.
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-05-02gdb:Elena Zannoni2-56/+123
2003-05-02 Elena Zannoni <ezannoni@redhat.com> * charset.c (GDB_DEFAULT_TARGET_CHARSET, GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file. (host_charset_name, target_charset_name): New vars for use by set/show commands. (host_charset_enum, target_charset_enum): New enums for set/show commands. (set_charset_sfunc, set_host_charset_sfunc, set_target_charset_sfunc): New functions. (set_host_charset, set_target_charset): Make static. (list_charsets, set_host_charset_command, set_target_charset_command): Delete functions. (show_charset_command): Rewrite as.... (show_charset): Hook this up with the set/show command mechanism. (_initialize_charset): Change names of charsets to match the set/show enums. Use host_charset_name and target_charset_name. Use set/show mechanism for charset, host-charset, target-charset commands. Do not make 'show host-charset' and 'show target-charset' be aliases of 'show charset'. * charset.h (set_host_charset, set_target_charset): Don't export, they are not used outside the file. gdb/testsuite: 2003-05-01 Elena Zannoni <ezannoni@redhat.com> * gdb.base/charset.exp: Update based on new behavior of set/show charset commands. gdb/doc: 2003-05-02 Elena Zannoni <ezannoni@redhat.com> * gdb.texinfo (Character Sets): Update to reflect new behavior of set/show charsets commands.
2003-05-012003-05-01 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-2/+31
* disasm.c (gdb_disassemble_from_exec): Delete global variable. (gdb_disassembly): Make "di" non static, always initialize and cleanup. Always use dis_asm_read_memory. (gdb_dis_asm_read_memory): Delete function. 2003-05-01 Andrew Cagney <cagney@redhat.com> * gdb.asm/asm-source.exp: Check that "disassm" and "x/i" of a variable do not give memory errors.
2003-05-01* Makefile.in (ALL_SUBDIRS): Add gdb.objcAdam Fedor8-42/+382
* configure.in (AC_OUTPUT): Add gdb.objc/Makefile * gdb.objc/Makefile.in, gdb.objc/basicclass.exp, gdb.objc/basicclass.m: : New files * lib/gdb.exp (gdb_compile_objc): New procedure.
2003-04-28 * gdb.base/signals.exp: Make backtrace tests more specific.Daniel Jacobowitz2-3/+7
2003-04-232003-04-23 David Carlton <carlton@bactrian.org>David Carlton2-0/+17
* cp-support.c (cp_find_first_component): Accept 'operator' in more locations. 2003-04-23 David Carlton <carlton@bactrian.org> * gdb.c++/maint.exp (test_first_component): Add tests for 'operator' in more locations.
2003-04-16 * gdb.base/args.exp: Invoke gdb_load for simulator targets.Kevin Buettner2-0/+16
2003-04-162003-04-16 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-9/+14
* gdb.base/completion.exp: Make 'info func mark' complete on 'info func marke' instead. Update test name.
2003-04-152003-04-15 David Carlton <carlton@math.stanford.edu>David Carlton2-0/+83
* Makefile.in (SFILES): Add cp-namespace.c. (COMMON_OBS): Add cp-namespace.o. (block.o): Depend on gdb_obstack_h and cp_support_h. (buildsym.o): Depend on cp_support_h. (cp-namespace.o): New. (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h, gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h. (dwarf2read.o): Depend on cp_support_h. * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE. * dwarf2read.c (process_die): Set processing_has_namespace_info, processing_current_namespace. (read_namespace): Update processing_current_namespace; check for anonymous namespaces. (dwarf2_name): New function. (dwarf2_extension): Ditto. * cp-support.h: Update copyright, contributors. Add inclusion guards. Add opaque declaration for structs obstack, block, symbol. (struct using_direct): New struct. Add declarations for cp_find_first_component, cp_entire_prefix_len, processing_has_namespace_info, processing_current_namespace, cp_is_anonymous, cp_add_using_directive, cp_initialize_namespace, cp_finalize_namespace, cp_set_block_scope, cp_scan_for_anonymous_namespaces. * cp-namespace.c: New file. * cp-support.c: Update copyright. Include ctype.h, gdb_assert.h, gdbcmd.h. New variable maint_cplus_cmd_list. (cp_find_first_component): New function. (cp_entire_prefix_len, maint_cplus_command) (first_component_command, _initialize_cp_support): Ditto. * buildsym.c: Include cp-support.h. New variable using_list. (add_symbol_to_list): Check for anonymous namespaces. (finish_block): Set block's scope. (start_symtab): Initialize C++ namespace support. (end_symtab): Finalize C++ namespace support. * block.h: Add opaque declarations for structs block_namespace_info, using_direct, and obstack. Add declarations for block_set_scope and block_set_using. (struct block): Add 'language_specific' member. (BLOCK_NAMESPACE): New macro. * block.c: Include gdb_obstack.h and cp-support.h. (struct block_namespace_info): New struct. (block_set_scope): New function. (block_set_using, block_initialize_namespace): Ditto. 2003-04-15 David Carlton <carlton@math.stanford.edu> * gdb.c++/maint.exp: New file.
2003-04-152003-04-14 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-3/+11
* gdb.threads/schedlock.c: Change type of thread function argument to long, to avoid warnings on 64-bit platforms.
2003-04-142003-04-14 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+7
* gdb.base/attach.exp: Add new message from ptrace in case of attaching to nonexistent process.
2003-04-11* gdb.c++/derivation.exp, gdb.c++/overload.exp,Jim Blandy7-9/+18
gdb.c++/userdef.cc: Place comments on the lines to which the marker function might return. * gdb.c++/derivation.exp, gdb.c++/overload.exp, gdb.c++/userdef.exp: Look for those comments to check that we've returned to the right place, instead of checking line numbers.
2003-04-112003-04-11 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-2/+7
* gdb.threads/pthreads.exp (test_startup): When setting a breakpoint match on sourcefile name, instead of directory name.
2003-04-102003-04-10 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-1/+13
* gdb.base/completion.exp: Use string_to_regexp to match the working directory name.
2003-04-09* gdb.c++/derivation.exp, gdb.c++/overload.exp,Jim Blandy4-0/+60
gdb.c++/userdef.exp: If GDB fails to restore the selected frame after an inferior function call, report the failure, but allow the test to continue.
2003-04-082003-04-08 Andrew Cagney <cagney@redhat.com>Andrew Cagney2-0/+6
* gdb792.exp: Skip when C++.
2003-04-05 * gdb.base/break.exp: marker4() is defined at line 46 when compiledStephane Carrez2-0/+9
with -DPROTOTYPES.