Commit Graph

2558 Commits

Author SHA1 Message Date
Denis Pilat d701dcab23 2007-02-02 Denis Pilat <denis.pilat@st.com>
* gdb.threads/threadapply.exp: check that frame is not changed by
	the thread apply all command.
2007-02-02 12:40:11 +00:00
Andreas Schwab 6d9c3a8703 * gdb.gdb/selftest.exp (do_steps_and_nexts): Add more matches. 2007-01-31 19:32:12 +00:00
Andreas Schwab 3c50d7b90e * gdb.dwarf2/dup-psym.S: Use .2byte/.4byte instead of .short/.int
in the dwarf sections.
	* gdb.dwarf2/mac-fileno.S: Likewise.
2007-01-31 16:43:00 +00:00
Andreas Schwab 783e3e2f8e * gdb.base/callfuncs.exp (do_get_all_registers): Filter out
bspstore register on ia64.
2007-01-31 15:37:49 +00:00
Andreas Schwab cc8e9b1294 * gdb.cp/annota3.exp ("watch triggered on a.x"): Match optional
"frame-begin" annotation.
2007-01-29 19:09:47 +00:00
Andreas Schwab 78ff580ec9 * gdb.cp/annota2.exp ("watch triggered on a.x"): Allow arbitrary
number of "frames-invalid" annotations.
2007-01-29 18:58:24 +00:00
Daniel Jacobowitz 704a4f78bb * gdb.base/commands.exp: Call if_commands_test.
(gdb_test_no_prompt, if_commands_test): New.
2007-01-29 16:22:36 +00:00
Mark Kettenis e741bf94ae * gdb.threads/sigthread.c (NSIGS): Make bigger. 2007-01-28 16:45:35 +00:00
Mark Kettenis 4590cfcbee Wrap long line. 2007-01-28 14:23:13 +00:00
Andreas Schwab 474d0ad39b * gdb.dwarf2/dw2-basic.S: Use .2byte/.4byte/.8byte instead of
.short/.int/.quad in the dwarf sections.
	* gdb.dwarf2/dw2-intercu.S: Likewise.
	* gdb.dwarf2/dw2-intermix.S: Likewise.
2007-01-27 11:09:35 +00:00
Jan Kratochvil e784b426e6 * gdb.base/charsign.exp, gdb.base/charsign.c: New files.
* gdb.arch/i386-sse.exp: Check $xmm.v16_int8 printing as a number array.
	* gdb.base/printcmds.exp: Sign-provided CHARs now became arrays.
	* gdb.base/setvar.exp: Likewise.
2007-01-26 20:53:15 +00:00
Andreas Schwab 9a01813aed * gdb.base/corefile.exp: Allow non-empty argument list in reinit
test.
2007-01-26 14:55:27 +00:00
Andreas Schwab 37f08e0480 * gdb.base/multi-forks.exp ("restart $i"): Also match
__kernel_syscall_via_break.
2007-01-26 14:53:10 +00:00
Vladimir Prus 6e2a9270a0 Fix computation of the 'editable' attribute and
value changeability for for references.
        * varobj.c (get_value_type): New function.
        (c_variable_editable): Use get_value_type.
        (varobj_value_is_changeable): Likewise.
2007-01-24 10:49:31 +00:00
Daniel Jacobowitz e515b47028 * Makefile.in (ALL_SUBDIRS): Add gdb.xml.
* configure: Regenerated.
	* configure.ac (AC_OUTPUT): Add gdb.xml/Makefile.
	* gdb.xml/Makefile.in, gdb.xml/tdesc-arch.exp,
	gdb.xml/tdesc-bogus.xml, gdb.xml/tdesc-errors.exp,
	gdb.xml/trivial.xml, gdb.xml/tdesc-unknown.xml: New files.
	* lib/gdb.exp (gdb_skip_xml_test): New function.
2007-01-23 17:11:55 +00:00
Daniel Jacobowitz 08d8bcd7cf From Nick Hudson:
* target.c (update_current_target): Correct typo.

	* gdb.base/sigrepeat.exp: Correct error message.
2007-01-23 13:03:20 +00:00
Jan Kratochvil 43a9b631fc * gdb.arch/i386-gnu-cfi.exp, gdb.arch/i386-gnu-cfi.c,
gdb.arch/i386-gnu-cfi-asm.S: New files.
2007-01-21 22:41:41 +00:00
Jan Kratochvil 97c3f1f3a2 * lib/gdb.exp: Abort on missing `site.exp'. 2007-01-21 22:25:34 +00:00
Daniel Jacobowitz cb1df416fb 2007-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
Daniel Jacobowitz  <dan@codesourcery.com>

	* buildsym.c (end_symtab): Use preallocated symtab if available.
	Fill in SYMBOL_SYMTAB.
	* buildsym.h (struct subfile): Add symtab member.
	* dwarf2read.c (struct dwarf2_cu): Add line_header.
	(struct file_entry): Add symtab.
	(free_cu_line_header): New function.
	(read_file_scope): Use it.  Save line_header in the cu.  Process
	lines before DIEs.
	(add_file_name): Initialize new symtab member.
	(dwarf_decode_lines): Create symtabs for included files.
	(new_symbol): Set SYMBOL_SYMTAB.
	* symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
	(search_symbols): Likewise.
	* symtab.h (struct symbol): Add symtab member.
	(SYMBOL_SYMTAB): Define.

	* gdb.base/included.c, gdb.base/included.exp,
	gdb.base/included.h: New files.
2007-01-21 16:49:40 +00:00
Daniel Jacobowitz 3599012060 * gdb.base/bigcore.c (RLIMIT_CAP): Define.
(maximize_rlimit): Reduce limits on 64-bit systems.
2007-01-20 18:33:27 +00:00
Daniel Jacobowitz 6e81a11699 Correct date on last entry. 2007-01-20 17:42:43 +00:00
Mark Kettenis 2429decf93 From Marcus Deuling <deuling@de.ibm.com>:
* gdb.arch/altivec-regs.exp: Initialise variable endianness in
        every case.
2007-01-19 11:14:52 +00:00
Nick Roberts 18ef391a79 * gdb.mi/mi-basics.exp, gdb.mi/mi2-basics.exp (test_dir_specification)
(test_path_specification): Use objdir instead of srcdir to always
get an absolute filename.
2007-01-12 21:31:35 +00:00
Nick Roberts 6c3c41f329 *** empty log message *** 2007-01-12 21:30:07 +00:00
Daniel Jacobowitz 2f12c31222 * gdb.cp/member-ptr.cc (class Padding): Make contents public. 2007-01-12 20:15:47 +00:00
Nathan Sidwell 81d2cbae45 revert 2007-01-11 Nathan Sidwell <nathan@codesourcery.com>
* lib/gdb.exp (gdb_compile_test): New.
	(skip_ada_tests, skip_java_tests): New.
	(gdb_compile): Use gdb_compile_test for f77.
	* lib/ada.exp (gdb_compile_ada): Use gdb_compile_test to record result.
	* lib/java.exp (compile_java_from_source): Remove runtests check,
	use gdb_compile_test to record result.
	* gdb.ada/packed_array.exp, gdb.ada/fixed_points.exp,
	gdb.ada/exec_changed.exp, gdb.ada/start.exp,
	gdb.ada/watch_arg.exp, gdb.ada/null_record.exp,
	gdb.ada/array_return.exp, gdb.ada/arrayidx.exp,
	gdb.mi/mi-var-child-f.exp, gdb.fortran/types.exp,
	gdb.fortran/array-element.exp, gdb.fortran/subarray.exp,
	gdb.fortran/derived-type.exp, gdb.fortran/exprs.exp,
	gdb.java/jmisc.exp, gdb.java/jprint.exp,
	gdb.java/jv-print.exp, gdb.java/jmain.exp: Add language skip,
	adjust gdb_compile invocations.
2007-01-12 11:36:21 +00:00
Vladimir Prus 23da0d9454 Move ChangeLog entry to the right place 2007-01-11 20:57:10 +00:00
Vladimir Prus 81121995ba * gdb.mi/mi-var-cp.cc (reference_update_tests):
Make sure the variable we're using is in scope.
        (reference_to_pointer): Likewise.
2007-01-11 20:48:49 +00:00
Nathan Sidwell 147d6f8fa0 * lib/gdb.exp (gdb_compile_test): New.
(skip_ada_tests, skip_java_tests): New.
	(gdb_compile): Use gdb_compile_test for f77.
	* lib/ada.exp (gdb_compile_ada): Use gdb_compile_test to record result.
	* lib/java.exp (compile_java_from_source): Remove runtests check,
	use gdb_compile_test to record result.
	* gdb.ada/packed_array.exp, gdb.ada/fixed_points.exp,
	gdb.ada/exec_changed.exp, gdb.ada/start.exp,
	gdb.ada/watch_arg.exp, gdb.ada/null_record.exp,
	gdb.ada/array_return.exp, gdb.ada/arrayidx.exp,
	gdb.mi/mi-var-child-f.exp, gdb.fortran/types.exp,
	gdb.fortran/array-element.exp, gdb.fortran/subarray.exp,
	gdb.fortran/derived-type.exp, gdb.fortran/exprs.exp,
	gdb.java/jmisc.exp, gdb.java/jprint.exp,
	gdb.java/jv-print.exp, gdb.java/jmain.exp: Add language skip,
	adjust gdb_compile invocations.
2007-01-11 11:42:45 +00:00
Daniel Jacobowitz 4741b7375e * gdb.ada/catch_ex.exp: Call unsupported and stop if the runtime
has no debug information.
2007-01-10 03:46:03 +00:00
Daniel Jacobowitz 054410c315 * gdb.base/annota1.exp: Remove extra send_gdb. 2007-01-10 03:23:04 +00:00
Daniel Jacobowitz 818f79f66b 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
* symtab.c (matching_bfd_sections): Fix VMA matching for
	prelinked objects.

	* gdb.base/relativedebug.c, gdb.base/relativedebug.exp: New files.
2007-01-09 22:43:09 +00:00
Daniel Jacobowitz f7a6bb7039 2007-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
* minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
	nested symbols.

	* gdb.arch/i386-size-overlap.c, gdb.arch/i386-size-overlap.exp: New.
2007-01-09 22:14:35 +00:00
Daniel Jacobowitz 85bb071872 * copyright.sh (prunes): Add step-line.inp and step-line.c. 2007-01-09 21:37:30 +00:00
Daniel Jacobowitz 6aba47ca06 Copyright updates for 2007. 2007-01-09 17:59:20 +00:00
Daniel Jacobowitz 57e6678071 * varobj.c (install_new_value): Always update print_value.
(value_get_print_value): Immediately return NULL for missing
	values.

	* gdb.mi/mi-var-cmd.exp: Expect lpcharacter to update when
	lcharacter or linteger change.  Correct duplicated test name.
	* gdb.mi/mi2-var-cmd.exp: Likewise.
2007-01-08 23:11:47 +00:00
Daniel Jacobowitz 3d799a9542 * linux-nat.c (struct simple_pid_list): Add status.
(add_to_pid_list): Record the PID's status.
	(linux_record_stopped_pid): Likewise.  Make static.
	(pull_pid_from_list): Return the saved status.
	(linux_nat_handle_extended): Deleted.
	(linux_handle_extended_wait): Combine with linux_nat_handle_extended.
	Make static.  Handle non-SIGSTOP for a new thread's first signal.
	(flush_callback): Handle unexpected pending signals.
	(linux_nat_wait): Update calls to changed functions.
	* linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
	Remove prototypes for newly static functions.

	* gdb.threads/sigthread.c, gdb.threads/sigthread.exp: New.
2007-01-08 21:09:47 +00:00
Joel Brobecker 51679ba976 * gdb.base/nofield.c: New file.
* gdb.base/nofield.exp: New testcase.
2007-01-05 05:56:37 +00:00
Nick Roberts 986d03be0f mi-var-cp.exp: New test for references to pointers.
mi-var-cp.cc: (reference_to_pointer): New procedure for above test.
2007-01-04 23:08:56 +00:00
Nick Roberts eafb94e886 *** empty log message *** 2007-01-04 23:06:55 +00:00
Daniel Jacobowitz 5e572bb44a * Makefile.in (eval.o): Update dependencies.
* eval.c: Include "ui-out.h" and "exceptions.h".
	(evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
	Use value_zero if an error occurs when avoiding side effects.
	* varobj.c (c_value_of_root): Initialize new_val.

	* gdb.mi/mi-var-cmd.exp: Add tests for unreadable varobjs.
2007-01-04 21:59:10 +00:00
Daniel Jacobowitz 74a44383f0 * varobj.c (varobj_list_children): Stop if the number of children is
unknown.
	(c_number_of_children): Report no children for zero sized arrays.

	* lib/mi-support.exp (mi_runto_helper): Expect two prompts
	when continuing.
2007-01-04 21:55:04 +00:00
Daniel Jacobowitz 1b572db9ac * gdb.base/annota3.exp ($binfile): Append $EXEEXT.
Expect ".exe" extension.
2007-01-04 20:53:50 +00:00
Daniel Jacobowitz 381bc39bef * gdb.base/charset.exp: Add explicit filename to break.
* gdb.base/dbx.exp: Add explicit filename to breaks.
2007-01-04 20:42:24 +00:00
Daniel Jacobowitz 2b70e4c68a * gdb.mi/mi-file.exp: Use mi_gdb_file_cmd instead of mi_gdb_load.
* gdb.mi/mi2-file.exp: Likewise.
2007-01-04 20:37:26 +00:00
Daniel Jacobowitz 303b6f5dea * buildsym.c (start_subfile): Handle producer.
(record_producer): New function.
	* buildsym.h (struct subfile): Include producer.
	(record_producer): New prototype.
	* dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
	(struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
	armcc_cfa_offsets_reversed.
	(execute_cfa_program): Handle armcc_cfa_offsets_sf.
	(dwarf2_frame_find_quirks): New function.
	(dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
	(decode_frame_entry_1): Record the CIE version.  Record the
	augmentation.  Skip armcc augmentations.
	* dwarf2read.c (read_file_scope): Save the producer.
	* symtab.h (struct symtab): Rename unused version member to
	producer.
2007-01-04 20:26:42 +00:00
Vladimir Prus 2d0720d988 Implement specification of MI tests as comments
in C and C++ sources.
	* lib/mi-support.exp (mi_autotest_data): New variable.
	(mi_autotest_source): New variable.
	(count_newlines, mi_prepare_inline_tests)
	(mi_get_inline_test, mi_continue_to_line)
	(mi_run_inline_test, mi_tbreak)
	(mi_send_resuming_command, mi_wait_for_stop): New functions.
	* gdb.mi/mi-var-cp.exp: Move most content to the C file.
	Run inline tests.
	* gdb.mi/mi-var-cp.cc: Define tests here.
2007-01-04 20:12:15 +00:00
Vladimir Prus f7e97bb3d8 Simplify usage of mi_continue_to.
* lib/mi-support.exp (mi_runto_helper): Renamed
        from mi_runto, added new parameter 'run_or_continue'.
        (mi_runto): Use mi_runto_helper.
        (mi_continue_to): Accept just function name as parameter.
        Use mi_runto_helper.
        * gdb.mi/mi-var-cmd.exp: Adjust to changes.
        * gdb.mi/mi2-var-cmd.exp: Likewise.
2007-01-04 18:58:03 +00:00
Joel Brobecker f9e182823d Make this testcase a bit more realistic. The current code
is too simplistic, and allows the compiler to optimize out
        some of the entities we need for this testcase.
        * gdb.ada/null_record/bar.ads (Void_Star): New type.
        (Do_Nothing): Add extra parameter.
        * gdb.ada/null_record/bar.adb (Do_Nothing): Likewise.
        * gdb.ada/null_record/null_record.adb: Fake use of type Empty
        by using a variable of type Void_Star.
2007-01-04 10:59:03 +00:00
Joel Brobecker fd678c6573 * gdb.ada/catch_ex/foo.adb: New file.
* gdb.ada/catch_ex.exp: New testcase.
2007-01-04 05:39:01 +00:00