summaryrefslogtreecommitdiff
path: root/gdb/testsuite
Commit message (Collapse)AuthorAgeFilesLines
* Switch the license of all .c files to GPLv3.Joel Brobecker2007-08-23134-672/+466
| | | | | Switch the license of all .h files to GPLv3. Switch the license of all .cc files to GPLv3.
* * configure.ac: Switch license to GPLv3.Joel Brobecker2007-08-232-5/+7
|
* Switch the licensing to GPLv3 for all .ads and .adb files.Joel Brobecker2007-08-2315-50/+32
|
* gdb/testsuite/Daniel Jacobowitz2007-08-223-0/+34
| | | | | | | | | | | * gdb.base/callfuncs.exp (do_function_calls): Use t_double_int and t_int_double. * gdb.base/callfuncs.c (t_double_int, t_int_double): New. gdb/ * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New. (mips_n32n64_push_dummy_call): Always increment float_argreg along with argreg. Use mips_n32n64_fp_arg_chunk_p.
* * gdb.base/step-line.c: Switch license to GPL version 3, andJoel Brobecker2007-08-184-14/+19
| | | | | update copyright year. * gdb.base/step-line.inp: Likewise.
* * gdb.base/gdb1555.exp: Make expected output immune to formattingJoel Brobecker2007-08-183-13/+21
| | | | | changes inside gdb1555.c. * gdb.base/pending.exp: Likewise.
* * config/default.exp: New file.Daniel Jacobowitz2007-08-132-0/+22
|
* * linespec.c (minsym_found): Advance to the next line if possible.Daniel Jacobowitz2007-07-314-2/+119
| | | | | * gdb.base/prologue.c, gdb.base/prologue.exp: New. * lib/gdb.exp (gdb_breakpoint): Handle "temporary".
* * gdb.base/dump.exp: Force the correct endianness for binaryMaciej W. Rozycki2007-07-302-0/+31
| | | | formats not carrying this information.
* * gdb.threads/staticthreads.exp: Match .*sem_post.Daniel Jacobowitz2007-07-272-1/+5
|
* * gdb.base/readline.exp (operate_and_get_next): Match the finalDaniel Jacobowitz2007-07-272-0/+8
| | | | prompt.
* * lib/mi-support.exp (mi_gdb_target_load): Do a "kill" priorKevin Buettner2007-07-232-0/+9
| | | | to restarting SID.
* * gdb.cp/ref-params.exp (gdb_start_again): Invoke `gdb_exit'Kevin Buettner2007-07-192-0/+6
| | | | prior to `gdb_start'.
* * config/sid.exp (gdb_load): Add test for empty argument. AdjustKevin Buettner2007-07-192-3/+11
| | | | | return value to be compatible with gdb_run_cmd in lib/gdb.exp. Remove call to gdb_unload.
* 2007-07-17 Pedro Alves <pedro_alves@portugalmail.pt>Daniel Jacobowitz2007-07-173-20/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Daniel Jacobowitz <dan@codesourcery.com> * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o. * coff-pe-read.c (read_pe_exported_syms): Delete verbose printf. * NEWS: Mention gdbserver DLL support. * gdb.base/unload.c (dlopen, dlsym, dlclose, dlerror): Define for __WIN32__. (SHLIB_NAME): Delete definition. Always pass dlerror to fprintf. * gdb.base/unload.exp: Use shared library test routines. * inferiors.c (all_dlls, dlls_changed, get_dll): New. (add_thread): Minor cleanups. (clear_inferiors): Move lower in the file. Clear the DLL list. (free_one_dll, match_dll, loaded_dll, unloaded_dll, clear_list): New. * remote-utils.c (prepare_resume_reply): Check dlls_changed. (xml_escape_text): New. * server.c (handle_query): Handle qXfer:libraries:read. Report it for qSupported. (handle_v_cont): Report errors. (gdbserver_version): Update. (main): Correct size of own_buf. Do not report initial DLL events. * server.h (struct dll_info, all_dlls, dlls_changed, loaded_dll) (unloaded_dll, xml_escape_text): New. * win32-low.c (enum target_waitkind): Update comments. (win32_add_one_solib, get_image_name, winapi_EnumProcessModules) (winapi_GetModuleInformation, winapi_GetModuleFileNameExA) (win32_EnumProcessModules, win32_GetModuleInformation) (win32_GetModuleFileNameExA, load_psapi, psapi_get_dll_name) (winapi_CreateToolhelp32Snapshot, winapi_Module32First) (winapi_Module32Next, win32_CreateToolhelp32Snapshot) (win32_Module32First, win32_Module32Next, load_toolhelp) (toolhelp_get_dll_name, handle_load_dll, handle_unload_dll): New. (get_child_debug_event): Handle DLL events. (win32_wait): Likewise.
* 2007-07-03 Markus Deuling <deuling@de.ibm.com>Ulrich Weigand2007-07-034-0/+161
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * cp-namespace.c (lookup_symbol_file): Add block to lookup_symbol_global call. * Makefile.in (solist_h): Add dependency on symtab header. (symtab.o): Add dependency on solist header. * solib.c (solib_global_lookup): New function. * solib-svr4.c (scan_dyntag): Likewise. (elf_locate_base): Call helper routine scan_dyntag. (elf_lookup_lib_symbol): New function. (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops. * solist.h (symtab.h): New include. (struct target_so_ops): New member lookup_lib_global_symbol. (solib_global_lookup): New prototype. * symtab.c: New include solist.h. (lookup_objfile_from_block): New function. (lookup_global_symbol_from_objfile): New function. (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call. (lookup_symbol_global): Call library-specific lookup procedure. * symtab.h (lookup_global_symbol_from_objfile): New prototype. * NEWS: Document framework. testsuite/ * gdb.base/solib-symbol.exp: New file (testcase multiple symbol lookup). * gdb.base/solib-symbol-lib.c: Likewise. * gdb.base/solib-symbol-main.c: Likewise.
* * infrun.c (inferior_ignoring_startup_exec_events): Delete.Daniel Jacobowitz2007-07-027-6/+231
| | | | | | | | | | | | | | | | | | | | | | | | (start_remote): Use STOP_QUIETLY_REMOTE. (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED support on a SOLIB_ADD definition. Update breakpoints_inserted. Update to match shared library event breakpoint support. Only resume if appropriate. Handle STOP_QUIETLY_REMOTE. (normal_stop): Handle TARGET_WAITKIND_LOADED. * fork-child.c (startup_inferior): Do not set inferior_ignoring_startup_exec_events * inferior.h (inferior_ignoring_startup_exec_events): Delete declaration. (enum stop_kind): Improve documentation. Add STOP_QUIETLY_REMOTE. * config/gdbserver.exp (gdb_reconnect): New. * gdb.base/so-disc-shr.c, gdb.base/solib-disc.c, gdb.base/solib-disc.exp: New files. * lib/gdb.exp (gdb_test_multiple): Allow tests to match "Ending remote debugging". (gdb_compile): Add shlib_load flag. * lib/gdbserver-support.exp (gdbserver_run): Save the protocol and port. (gdbserver_reconnect): New.
* 2007-07-01 Daniel Jacobowitz <dan@codesourcery.com>Daniel Jacobowitz2007-07-012-1/+28
| | | | | | | | | | | | | * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove. (struct gdb_readline_wrapper_cleanup): Remove prompt_orig. (gdb_readline_wrapper_cleanup): Do not reset the prompt. (gdb_readline_wrapper): Do not save the prompt. Pass our prompt to display_gdb_prompt. 2007-07-01 Nick Roberts <nickrob@snap.net.nz> Daniel Jacobowitz <dan@codesourcery.com> * gdb.base/annota3.exp: Test for if construct.
* * c_variable.c: Include <stdlib.h> for a declaration of exit().Maciej W. Rozycki2007-06-272-0/+6
|
* * gdb.base/chng-syms.exp: Handle glibc's __GI_exit.Daniel Jacobowitz2007-06-262-1/+5
|
* gdb/:Maciej W. Rozycki2007-06-214-13/+20
| | | | | | | | | | * printcmd.c (do_one_display): If display/i, start with an initial line feed to avoid bad layout if there is a branch delay slot. gdb/testsuite/: * gdb.base/display.exp: Allow a newline after display/i. * gdb.base/pc-fp.exp: Likewise. * gdb.base/sigbpt.exp: Likewise.
* * Makefile.in (mips-tdep.o): Update.Daniel Jacobowitz2007-06-132-6/+31
| | | | | | | | | | | | | | | | | | | | | | | | | * mips-tdep.c (struct register_alias, mips_o32_aliases) (mips_n32_n64_aliases, mips_register_aliases): New. (mips_register_name): Call tdesc_register_name. (mips_tdesc_register_reggroup_p): New. (mips_pseudo_register_type, value_of_mips_user_reg): New. (mips_gdbarch_init): Add target-described register support. Register aliases for register names. * target-descriptions.c (tdesc_register_name): Make global. (tdesc_register_in_reggroup_p): New function, broken out from tdesc_register_reggroup_p. (tdesc_register_reggroup_p): Use it. * target-descriptions.h (tdesc_register_name) (tdesc_register_in_reggroup_p): New prototypes. * NEWS: Correct formatting. Mention MIPS register support. * features/mips-cp0.xml, features/mips-fpu.xml, features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml, features/mips64-cpu.xml: New files. * gdb.xml/tdesc-regs.exp: Add MIPS support. Allow multiple required features to be included. * gdb.texinfo (MIPS Features): New subsection.
* * gdb.threads/manythreads.exp: Prevent expect buffer overflowDaniel Jacobowitz2007-06-122-1/+24
| | | | in info threads output.
* * target.h (enum target_object): Add TARGET_OBJECT_SPU.Ulrich Weigand2007-06-123-0/+485
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU. * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers. (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM, SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM. * spu-tdep.c (infospucmdlist): New variable. (spu_register_name): Handle additional pseudo registers. (spu_register_type): Likewise. (spu_pseudo_register_read): Likewise. (spu_pseudo_register_write): Likewise. (spu_pseudo_register_read_spu): New function. (spu_pseudo_register_write_spu): Likewise. (info_spu_event_command): New function. (info_spu_signal_command): Likewise. (info_spu_mailbox_list): Likewise. (info_spu_mailbox_command): Likewise. (spu_mfc_get_bitfield): Likewise. (info_spu_dma_cmdlist): Likewise. (info_spu_dma_command): Likewise. (info_spu_proxydma_command): Likewise. (info_spu_command): Likewise. (_initialize_spu_tdep): Install "info spu" commands. testsuite/ChangeLog: * gdb.arch/spu-info.exp: New testcase. * gdb.arch/spu-info.c: New file. doc/ChangeLog: * gdb.texinfo (Architectures): Add new SPU section to document Cell Broadband Engine SPU architecture specific commands.
* * gdb.arch/thumb-prologue.c: Record the breakpoint address inDaniel Jacobowitz2007-06-053-6/+26
| | | | | tpcs_offset. Restore lr after the call. * gdb.arch/thumb-prologue.exp: Use tpcs_offset.
* * lib/gdbserver-support.exp (gdbserver_spawn): Only match full_buffer.Daniel Jacobowitz2007-05-233-1/+23
| | | | | (gdbserver_run): Kill any running gdbserver. * lib/mi-support.exp (mi_gdb_target_load): Likewise.
* * gdb.base/sigbpt.exp: Preset segv_addr.Maciej W. Rozycki2007-05-172-0/+5
|
* * lib/gdb.exp (gdb_compile): Add support for Windows DLLs.Daniel Jacobowitz2007-05-1610-30/+142
| | | | | | | | | | | | | | | | (gdb_compile_shlib): Likewise. (skip_shlib_tests, gdb_download, gdb_load_shlibs): New. (default_gdb_init): Clear cleanfiles. (gdb_finish): Delete recorded cleanfiles. * lib/gdbserver-support.exp (gdbserver_spawn): Use gdb_download. * gdb.base/gdb1555.exp: Use skip_shlib_tests and gdb_load_shlibs. Do not use isnative. * gdb.base/pending.exp, gdb.base/shlib-call.exp, gdb.base/shreloc.exp, gdb.base/so-impl-ld.exp: Likewise. * gdb.base/solib-weak.exp: Likewise. Skip for DLL targets. * gdb.base/unload.exp: Likewise. Do not pass empty option to gdb_compile.
* * config/unknown.exp: Remove.Vladimir Prus2007-05-152-21/+4
|
* 2007-05-15 Markus Deuling <deuling@de.ibm.com>Ulrich Weigand2007-05-152-0/+8
| | | | * gdb.base/info-proc.exp: Check is_remote.
* 2007-05-14 Markus Deuling <deuling@de.ibm.com>Ulrich Weigand2007-05-142-1/+5
| | | | * gdb.base/gcore.exp: Initialize variable core_supported.
* * gdb.threads/linux-dp.exp: Allow non-hexadecimal IDs also.Daniel Jacobowitz2007-05-142-2/+6
|
* * linux-thread-db.c (thread_db_pid_to_str): Print thread IDsDaniel Jacobowitz2007-05-143-3/+9
| | | | | | | | as hexadecimal. * gdb.threads/linux-dp.exp: Expect hexadecimal thread IDs. * gdb.threads/print-threads.exp (test_all_threads): Allow negative and hexadecimal thread IDs.
* * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead ofDaniel Jacobowitz2007-05-142-1/+6
| | | | | | | | | | STRUCTOP_STRUCT. * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of STRUCTOP_STRUCT. * jv-typeprint.c (java_print_type): Do not crash on NULL varstring. * gdb.java/jprint.java (public): Avoid invalid call to static method.
* 2007-05-14 Denis Pilat <denis.pilat@st.com>Denis Pilat2007-05-1414-47/+8
| | | | | | | | * gdb.mi/mi-console.exp, gdb.mi/gdb669.exp, gdb.mi/mi-cli.exp, gdb.mi/mi-regs.exp, gdb.mi/mi-stepi.exp, gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-cli.exp, gdb.mi/mi2-console.exp, gdb.mi/mi2-disassemble.exp, gdb.mi/mi2-regs.exp, gdb.mi/mi2-stepi.exp, gdb.mi/mi-disassemble.exp, gdb.mi/mi2-syn-frame.exp: Remove commands already run in mi_run_to_main.
* * gdb.base/overlays.exp: Add support for targets with only codeUlrich Weigand2007-05-114-25/+260
| | | | | | | overlay support, not data overlay. Support spu-*-* target in this mode. * gdb.base/ovlymgr.c: Provide stubs for spu target. * gdb.base/spu.ld: New file.
* * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.Daniel Jacobowitz2007-05-072-0/+8
| | | | | | | | | | | | * NEWS: Mention improved C++ thunk support. * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline. * cp-abi.c (cplus_skip_trampoline): New. * cp-abi.h (cplus_skip_trampoline): New prototype. (struct cp_abi_ops): Add skip_trampoline member. * gnu-v3-abi.c (gnuv3_skip_trampoline): New. (init_gnuv3_ops): Set skip_trampoline. * gdb.cp/virtfunc.exp (proc do_tests): Test stepping through a thunk.
* * gdb.fortran/complex.exp, gdb.fortran/complex.f: New files.Daniel Jacobowitz2007-05-073-0/+75
|
* * gdb.java/jmain.exp: Handle demangled names with and without methodDaniel Jacobowitz2007-04-292-3/+36
| | | | signatures.
* * gdb.mi/mi-syn-frame.c (main, foo, bar)Daniel Jacobowitz2007-04-295-26/+28
| | | | | | | | (have_a_very_merry_interrupt): Remove calls to puts. * gdb.mi/mi-syn-frame.exp, gdb.mi/mi2-syn-frame.exp: Do not expect inferior output. * lib/mi-support.exp (mi_gdb_test): Check gdb,noinferiorio. Correct test names.
* * gdb.base/auxv.exp (core_works): Also check is_remote.Daniel Jacobowitz2007-04-294-3/+9
| | | | * gdb.base/checkpoint.exp, gdb.base/multi-forks.exp: Likewise.
* * gdb.base/sigaltstack.exp: Use 'srcfile' in errorVladimir Prus2007-04-256-5/+17
| | | | | | | | | message, not the undefined 'module' variable. * gdb.base/siginfo.exp: Likewise. * gdb.base/sigstep.exp: Likewise. * lib/gdbserver-support.exp (gdb_target_cmd): Quote serialport. * lib/mi-support.exp (mi_gdb_target_cmd): Likewise.
* * config/sim.exp (gdb_target_sim): Just return with -1 when settingCorinna Vinschen2007-04-252-3/+9
| | | | | target sim fails. Return 0 otherwise. (gdb_load): Return prematurely if gdb_target_sim fails.
* 2007-04-16 Denis Pilat <denis.pilat@st.com>Denis Pilat2007-04-162-0/+6
| | | | * gdb.base/setshow.exp: Reset height after having set it to 100.
* 2007-04-16 Denis Pilat <denis.pilat@st.com>Denis Pilat2007-04-162-12/+29
| | | | * gdb.mi/mi2-stack.exp: update from mi-stack.exp.
* 2007-04-16 Denis Pilat <denis.pilat@st.com>Denis Pilat2007-04-162-2/+6
| | | | * gdb.mi/mi2-var-display.exp: Test for the fullname field.
* * varobj.h (varobj_set_frozen): NewVladimir Prus2007-04-144-2/+111
| | | | | | | | | | | | | | | | | | | | | | | | | (varobj_get_frozen): New. (varobj_update): New parameter explicit. * varobj.c (struct varobj): New fields frozen and not_fetched. (varobj_set_frozen, varobj_get_frozen): New. (install_new_value): Don't fetch values for frozen variable object, or children thereof. Allow a frozen variable object to have non-fetched value. (varobj_update): Allow updating child variables. Don't traverse frozen children. (new_variable): Initialize the frozen field. (c_value_of_variable): Return NULL for frozen variable without any value yet. * mi/mi-cmd-var.c (varobj_update_one): New parameter 'explicit'. (mi_cmd_var_create): Output the 'frozen' field, as soon as testsuite is adjusted to expect that field. (mi_cmd_var_set_frozen): New. (mi_cmd_var_update): Pass the 'explicit' parameter to varobj_update_one. * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'. * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
* * gdb.base/type-opaque-lib.c, gdb.base/type-opaque-main.c,Jan Kratochvil2007-04-114-0/+251
| | | | gdb.base/type-opaque.exp: New files.
* * gdb.mi/mi-var-child.cVladimir Prus2007-04-018-37/+69
| | | | | | | | | | | | | | | | | | | (do_children_tests): User char[2] instead of char so that automatic printing of pointers to char don't give unpredicable result. * gdb.mi/var-cmd.c (do_locals_test): Initialize local variables. * gdb.mi/mi-var-child.exp: Step to right line of do_children_tests. * gdb.mi/mi2-var-child.exp: Likewise. * gdb.mi/mi-var-cmd.exp: Step to right line of do_locals_tests. (do_children_tests): User char[2] instead of char so that automatic printing of pointers to char don't give unpredicable result. * gdb.mi/mi2-var-cmd.exp: Likewise. * lib/mi-support.exp (mi_continue_to_line): Pass test name to mi_wait_for_stop.
* * MAINTAINERS: Remove d10v entry.Daniel Jacobowitz2007-03-304-61/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Makefile.in (SFILES): Remove dwarfread.c. (COMMON_OBS): Remove dwarfread.o. (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o) (remote-est.o, rom68k-rom.o): Delete. * NEWS: Mention removal of d10v, target abug, target cpu32bug, target est, target rom68k, and DWARF 1. * configure.tgt: Mark d10v as removed. * dwarf2read.c: Doc update. * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset, and lnsize. (elf_locate_sections): Do not set them. (elf_symfile_read): Do not call dwarf_build_psymtabs. * symfile.h (dwarf_build_psymtabs): Delete prototype. * config/m68k/monitor.mt (TDEPFILES): Prune. * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c, remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete. * gdb.texinfo (M68K): Remove obsolete ROM monitors. * gdbint.texinfo (DWARF 1): Delete section and other dwarfread.c references. * gdb.asm/asm-source.exp: Remove d10v case. * lib/gdb.exp (skip_cplus_tests): Likewise. * gdb.asm/d10v.inc: Deleted.