aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
AgeCommit message (Collapse)AuthorFilesLines
2010-01-01Update copyright year in most headers.Joel Brobecker968-989/+1057
Automatic update by copyright.sh.
2009-12-31 Add new tracepoint action teval.Stan Shebs2-0/+32
* tracepoint.c (teval_pseudocommand): New function. (validate_actionline): Add teval action case. (encode_actions): Ditto. (_initialize_tracepoint): Define teval pseudocommand. * NEWS: Mention teval. * gdb.texinfo (Tracepoint Actions): Describe teval. * gdb.trace/actions.exp: Test teval action.
2009-12-30gdb/Thiago Jung Bauermann3-1/+19
* valarith.c (value_equal_contents): New function. * value.h (value_equal_contents): Declare. * breakpoint.c (watchpoint_check): Use value_equal_contents instead of value_equal. gdb/testsuite/ * gdb.base/watchpoint.exp (test_watchpoint_in_big_blob): New function. (top level): Call test_watchpoint_in_big_blob. * gdb.base/watchpoint.c (buf): Change size to value too big for hardware watchpoints. (func3): Write to buf.
2009-12-30 Add default-collect variable.Stan Shebs2-0/+13
* tracepoint.c (default_collect): New global. (encode_actions): Use it. (download_tracepoint): Test it, for otherwise action-less tracepoints. (_initialize_tracepoint): Add set/show. * NEWS: Mention default-collect. * gdb.texinfo (Tracepoint Actions): Describe default-collect. * gdb.trace/actions.exp: Test default-collect.
2009-12-282009-12-28 Stan Shebs <stan@codesourcery.com>Stan Shebs3-3/+115
Add trace state variables. * ax.h (enum agent_op): Add getv, setv, and tracev. (ax_tsv): Declare. * ax-gdb.c: Include tracepoint.h. (gen_expr): Handle BINOP_ASSIGN, BINOP_ASSIGN_MODIFY, and OP_INTERNALVAR. (gen_expr_binop_rest): New function, split from gen_expr. * ax-general.c (ax_tsv): New function. (aop_map): Add new bytecodes. * tracepoint.h (struct trace_state_variable): New struct. (tsv_s): New typedef. (find_trace_state_variable): Declare. * tracepoint.c (tvariables): New global. (next_tsv_number): New global. (create_trace_state_variable): New function. (find_trace_state_variable): New function. (delete_trace_state_variable): New function. (trace_variable_command): New function. (delete_trace_variable_command): New function. (tvariables_info): New function. (trace_start_command): Download tsvs with initial values. (_initialize_tracepoint): Add new commands. * NEWS: Mention the addition of trace state variables. ==> doc/ChangeLog <== 2009-12-28 Stan Shebs <stan@codesourcery.com> * gdb.texinfo (Trace State Variables): New section. (Tracepoint Packets): Describe trace state variable packets. * agentexpr.texi (Bytecode Descriptions): Describe trace state variable bytecodes. ==> testsuite/ChangeLog <== 2009-12-28 Stan Shebs <stan@codesourcery.com> * gdb.trace/tsv.exp: New file. * gdb.base/completion.exp: Update ambiguous info output.
2009-12-28 * gdb.base/find.c (main): Reference search buffers.Daniel Jacobowitz12-21/+93
* gdb.base/included.c (main): Reference integer. * gdb.base/ptype.c (charfoo): Declare. (intfoo): Call charfoo. * gdb.base/scope0.c (useitp): New function. (usestatics): Use useitp. (useit): Add a type for val. * gdb.base/scope1.c (useit1): Take a pointer argument. (usestatics1): Update calls to useit1. * gdb.cp/call-c.cc: Declare foo. (main): Call foo. * gdb.cp/m-static.cc (main): Reference test4.elsewhere. * gdb.cp/namespace.cc (ensureOtherRefs): Declare. (main): Call C::ensureRefs and ensureOtherRefs. * gdb.cp/namespace1.cc (C::ensureOtherRefs): Also reference int variables. (ensureOtherRefs): New function. * gdb.cp/overload.cc (main): Call all overloadNamespace variants. * gdb.cp/templates.cc (main): Call t5i.value.
2009-12-24gdb/testsuite/Jan Kratochvil3-7/+8
Fix compatibility with G++-4.5. * gdb.cp/expand-sals.cc (main): Remove the "exit-line" comment. * gdb.cp/expand-sals.exp: Remove breakpoint on "exit-line". (uncaught return): Remove.
2009-12-23gdb/Jan Kratochvil2-1/+52
* breakpoint.c (bpstat_stop_status): Iterate using ALL_BREAKPOINTS and the B->LOC list. Remove gdb_assert on B. Change bp_hardware_watchpoint continue to break. Remove variable update_locations. Remove HIT_COUNT increment protection by an ENABLE_STATE check. Inline the delayed update_global_location_list call. gdb/testsuite/ * gdb.base/condbreak.exp: Put breakpoint on marker3 and marker4. (bp_location13, bp_location14, bp_location17, bp_location18) (marker3_proto, marker4_proto): New variables. (breakpoint info): Update output. (run until breakpoint at marker3, run until breakpoint at marker4): New tests.
2009-12-23gdb/Jan Kratochvil5-22/+134
* breakpoint.c (bpstat_stop_status): Check BL->SHLIB_DISABLED. (print_breakpoint_location): New comment. Check LOC->SHLIB_DISABLED. Check LOC validity before printing it. Use LOC instead of B->LOC. Swap the if conditionals order. gdb/testsuite/ * gdb.base/unload.c (main): Change the UNLOADSHR parameter to 1. Replace the printf call of Y by provided "y-set-1" label. New block for the second shared library. * gdb.base/unload.exp: Compile also the second library, call gdb_load_shlibs also for it. Use now gdb_breakpoint. (single pending breakpoint info): Rename to ... (pending breakpoint info before run): ... this extended test. (libfile2, libname2, libsrcfile2, libsrc2) (lib_sl2): New variables. (exec_opts): Set also SHLIB_NAME2. (pending breakpoint info on first run at shrfunc1) (pending breakpoint info on second run at shrfunc1) (pending breakpoint info on second run at shrfunc2) (print y from libfile, print y from libfile2): New tests. * gdb.base/unloadshr.c (shrfunc1): Change the returned value. * gdb.base/unloadshr2.c: New.
2009-12-222009-12-22 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+5
* record.c (record_message): Change argument. (record_message_wrapper): New function. (do_record_message): Change it name to "record_message_wrapper_safe". Let it call "record_message_wrapper". (record_resume_error): Deleted. (record_resume): Call "record_message". (record_wait): Deleted record_resume_error. Call "record_message_wrapper_safe". Set status when do_record_message need stop the inferior. 2009-12-22 Hui Zhu <teawater@gmail.com> * gdb.reverse/sigall-reverse.exp: Adjust.
2009-12-21Fix typo in filename.Joel Brobecker1-1/+1
2009-12-21 PR gdb/10884Vladimir Prus3-0/+45
* value.c (value_primitive_field): Call check_typedef on the type.
2009-12-20 * Makefile.in gdb.ada/gnat_ada.gpr, gdb.base/gcore-buffer-overflow.c,Joel Brobecker11-56/+52
gdb.base/gcore-buffer-overflow.exp, gdb.base/source-error.gdb, gdb.base/watch_thread_num.c, gdb.java/jprint.java, gdb.mi/mi-async.exp, gdb.modula2/unbounded-array.exp, gdb.modula2/unbounded1.c: Update copyright header.
2009-12-10Fix for PR 9399 gdb can't call or print a const function that uses virtual ↵Chris Moller4-1/+107
inheritance
2009-12-102009-12-10 Oza Pawandeep (paawan1982@yahoo.comMichael Snyder5-0/+429
* gdb.reverse/i387-env-reverse.c: New file. * gdb.reverse/i387-env-reverse.exp: New file. * gdb.reverse/i387-stack-reverse.c: New file. * gdb.reverse/i387-stack-reverse.exp: New file.
2009-12-082009-12-08 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon2-0/+28
PR python/10804 * python/py-type.c (typy_range): New Function. 2009-12-08 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/py-type.exp (test_range): New test. 2009-12-08 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Types In Python): Describe range function.
2009-12-032009-12-03 Richard Ward <richard.j.ward1@googlemail.com>Phil Muldoon4-1/+179
* python/py-type.c (convert_field): New attribute "is_base_class". doc/ 2009-12-03 Richard Ward <richard.j.ward1@googlemail.com> * gdb.texinfo (Types In Python): Describe "is_base_class". testsuite/ 2009-12-03 Phil Muldoon <pmuldoon@redhat.com> PR python/10805 * gdb.python/py-type.exp: New file. * gdb.python/py-type.c: New file. * Makefile.in: Add py-type.
2009-12-03gdbTom Tromey2-0/+17
* python/python.c (gdbpy_parse_and_eval): New function. (GdbMethods): Add "parse_and_eval". gdb/testsuite * gdb.python/py-value.exp (test_parse_and_eval): New function. gdb/doc * gdb.texinfo (Basic Python): Document gdb.parse_and_eval.
2009-12-03ChangeLog:Paul Pluzhnikov3-0/+97
2009-12-03 Paul Pluzhnikov <ppluzhnikov@google.com> PR gdb/11022 * breakpoint.c (invalidate_bp_value_on_memory_change): New function. (_initialize_breakpoint): Add it as memory change observer. testsuite/ChangeLog: 2009-12-03 Paul Pluzhnikov <ppluzhnikov@google.com> PR gdb/11022 * gdb.base/pr11022.exp: New test. * gdb.base/pr11022.c: New test.
2009-12-03gdb/testsuite/Jan Kratochvil3-20/+57
Fix spurious false FAILs. * gdb.base/structs.c (chartest): New. (main): Fill-in chartest. * gdb.base/structs.exp (anychar_re, first): New. (start_structs_test): Import global anychar_re and first. New gdb_test call "set print elements 300; ${testfile}" (start_structs_test <$first>): New block. (any): Import global anychar_re. New variable ac. Use ${ac}.
2009-11-30gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.base/bigcore.exp (extract_heap): Set $lim limit to 200.
2009-11-30gdb/testsuite/Jan Kratochvil3-2/+10
* gdb.base/foll-fork.exp (unpatch child, breakpoint at exit call): Force $srcfile file. * gdb.base/foll-fork.c (callee): Comment out the printf call.
2009-11-27gdb/Ulrich Weigand4-3/+9
* s390-nat.c (s390_can_use_hw_breakpoint): Only support breakpoints of type bp_hardware_watchpoint. gdb/testsuite/ * gdb.base/hbreak.exp: Disable for s390*-*-* targets. * gdb.base/watchpoint-hw-hit-once.exp: Likewise. * gdb.threads/watchthreads-reorder.exp: Likewise.
2009-11-25 PR gdb/8704Daniel Jacobowitz2-2/+36
* breakpoint.c (find_condition_and_thread): Correct task error message. * c-exp.y (yylex): Stop before "thread N", "task N", or abbreviations of those. doc/ * gdb.texinfo (Thread-Specific Breakpoints): Thread specifiers are allowed after the breakpoint condition. testsuite/ * gdb.base/condbreak.exp: Test combinations of "break *EXP", "if", and "thread". Correct matching in the previous test.
2009-11-25 * gdb.cp/extern-c.cc, gdb.cp/extern-c.exp: New test.Daniel Jacobowitz3-0/+89
2009-11-232009-11-23 Michael Snyder <msnyder@vmware.com>Michael Snyder3-3/+164
* gdb.reverse/watch-reverse.exp: Extend test for hw watchpoints. * gdb.reverse-watch-precsave.exp: Ditto.
2009-11-23gdb/ChangeLog:Paul Pluzhnikov3-3/+8
2009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com> * cli/cli-cmds.c (disassemble_command): Split on comma. (init_cli_cmds): Update help. * NEWS: Mention incompatible change to 'disassemble'. gdb/testsuite/ChangeLog: 2009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.asm/asm-source.exp: Adjust. * gdb.base/help.exp: Adjust. gdb/doc/ChangeLog: 2009-11-23 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.texinfo (Machine Code): Adjust.
2009-11-22 * gdb.base/catch-syscall.exp (test_catch_syscall_fail_nodatadir)Pedro Alves2-3/+13
(do_syscall_tests_without_xml): Set data-directory to /the/path/to/nowhere.
2009-11-21 gdb/Pedro Alves3-0/+215
* breakpoint.h (struct breakpoint) <watchpoint_thread>: New field. * breakpoint.c (watchpoint_in_thread_scope): New. (update_watchpoint): Skip if the local watchpoint's thread doesn't match the current thread, or if the current thread is running. (watchpoint_check): Ditto. (watch_command_1): Set the watchpoint's watchpoint_thread field. gdb/testsuite/ * gdb.threads/local-watch-wrong-thread.c, gdb.threads/local-watch-wrong-thread.exp: New files.
2009-11-21 * gdb.cp/cplusfuncs.exp (info_func_regexp, print_addr): Don'tPedro Alves2-2/+7
assume new `regsub' syntax available.
2009-11-20gdb/Jan Kratochvil3-2/+84
Fix repeated rwatch output. * amd64-linux-nat.c (amd64_linux_dr_set, amd64_linux_dr_set_control) (amd64_linux_dr_set_addr, amd64_linux_dr_reset_addr) (amd64_linux_dr_get_status): New comments. (amd64_linux_dr_unset_status): New function. (_initialize_amd64_linux_nat): Install it. * i386-linux-nat.c (i386_linux_dr_get, i386_linux_dr_set) (i386_linux_dr_set_control, i386_linux_dr_set_addr) (i386_linux_dr_reset_addr, i386_linux_dr_get_status): New comments. (i386_linux_dr_unset_status): New function. (_initialize_i386_linux_nat): Install it. * i386-nat.c (I386_DR_WATCH_MASK): New macro. (I386_DR_WATCH_HIT): Use I386_DR_WATCH_MASK. (i386_insert_aligned_watchpoint): Call i386_dr_low.unset_status. * i386-nat.h (struct i386_dr_low_type): Extend comments for set_control, set_addr, reset_addr and get_status. New unset_status. * breakpoint.c (update_watchpoint): Extend the comment. gdb/testsuite/ * gdb.base/watchpoint-hw-hit-once.exp, gdb.base/watchpoint-hw-hit-once.c: New.
2009-11-20gdb/Pedro Alves3-0/+477
2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com> Pedro Alves <pedro@codesourcery.com> Fix reordered watchpoints triggered in other threads during all-stop. * linux-nat.c (resume_callback, linux_nat_resume): Clear stopped_by_watchpoint. (save_sigtrap, linux_nat_stopped_by_watchpoint) (linux_nat_stopped_data_address): New. (stop_wait_callback, linux_nat_filter_event): Call save_sigtrap. (linux_nat_add_target): Install linux_nat_stopped_by_watchpoint and linux_nat_stopped_data_address. * linux-nat.h (struct lwp_info): New fields stopped_by_watchpoint, stopped_data_address_p and stopped_data_address. gdb/testsuite/ 2009-11-20 Jan Kratochvil <jan.kratochvil@redhat.com> * gdb.base/watchthreads-reorder.exp, gdb.base/watchthreads-reorder.c: New.
2009-11-172009-11-17 Nathan Sidwell <nathan@codesourcery.com>Maxim Kuvyrkov2-0/+7
* features/m68k-core.xml: New file. 2009-11-17 Nathan Sidwell <nathan@codesourcery.com> * gdb.xml/tdesc-regs.exp: Use for m68k.
2009-11-15 * gdb.base/watch-vfork.c, gdb.base/watch-vfork.exp: New files.Pedro Alves3-0/+97
2009-11-13 * lib/gdb.exp (current_target_name): New procedure.Daniel Jacobowitz2-1/+25
(gdb_wrapper_target): New variable. (gdb_wrapper_init): Set gdb_wrapper_target. (default_gdb_init): Check gdb_wrapper_target before rebuilding the wrapper.
2009-11-13 gdb/testsuite/Daniel Jacobowitz2-2/+10
* gdb.base/remote.exp: Delete the slowest load test. Do not load with fixed packet sizes.
2009-11-13 gdb/testsuite/Daniel Jacobowitz2-1/+8
* gdb.cp/virtfunc.exp (do_tests): If runto_main fails, give up.
2009-11-13 gdb/testsuite/Daniel Jacobowitz2-2/+6
* gdb.base/freebpcmd.exp: Delete unused variable. Specify srcfile when setting a breakpoint.
2009-11-132009-11-13 Maciej W. Rozycki <macro@codesourcery.com>Daniel Jacobowitz2-0/+14
* gdb.base/find.c (int8_t, int16_t, int32_t, int64_t): Undefine macros.
2009-11-13 gdb/testsuite/Daniel Jacobowitz4-10/+31
* gdb.cp/formatted-ref.exp (test_p_x_ref_addr): Allow the reference to be in memory. * gdb.base/display.c (force_mem): New. (do_loops): Use it. Add breakpoint comments. (do_vars): Add a breakpoint comment. * gdb.base/display.exp: Use gdb_get_line_number. Remove hardcoded line numbers.
2009-11-13 * gdb.base/pending.exp: Use gdb_run_cmd to start the programNathan Froyd2-1/+9
instead of a bare "run".
2009-11-13gdb/ChangeLog:Paul Pluzhnikov2-3/+7
2009-11-13 Paul Pluzhnikov <ppluzhnikov@google.com> * python/py-prettyprint.c (print_string_repr): Suppress address printing testsuite/ChangeLog: 2009-11-13 Paul Pluzhnikov <ppluzhnikov@google.com> * gdb.python/py-prettyprint.exp: Adjust.
2009-11-12 testsuite/Daniel Jacobowitz2-5/+15
* lib/cell.exp (skip_cell_tests): Clean up test files before returning.
2009-11-12 testsuite/Daniel Jacobowitz5-41/+29
* lib/gdb.exp (gdb_test_multiple): Handle "y or [n]", "[y] or n", and the breakpoint menu. Do not call perror if a prompt is seen. Consume the following GDB prompt. * gdb.cp/method2.exp (test_break): Use gdb_test_multiple. * gdb.cp/namespace.exp: Use gdb_test. * gdb.cp/templates.exp: Use gdb_test. (test_template_breakpoints): Use gdb_test_multiple.
2009-11-12 testsuite/Daniel Jacobowitz2-11/+16
* gdb.base/break1.c (struct some_struct, values): Move earlier. (marker4): Reference values.
2009-11-12 testsuite/Daniel Jacobowitz2-20/+22
* gdb.base/macscp.exp: Avoid the first FAIL if macro information is missing.
2009-11-12 * gdb.base/break.c (need_malloc): New.Daniel Jacobowitz9-4/+41
* gdb.base/constvars.c (main): Reference crass and crisp. * gdb.base/gdb1821.c (main): Reference bar. * gdb.cp/gdb1355.cc (main): Reference s1. * gdb.cp/hang1.cc (dummy2, dummy3): Declare. (main): Call them. * gdb.cp/hang2.cc (dummy2): Define. * gdb.cp/hang3.cc (dummy3): Define. * gdb.cp/m-data.cc (main): Reference shadow.
2009-11-12 * lib/gdb.exp (gdb_compile): Also set rpath for shlib=, on aNathan Froyd2-12/+30
remote host.
2009-11-12 * gdb.base/step-line.exp: Copy step-line.inp to the remote host.Nathan Froyd10-3/+60
* gdb.dwarf2/dw2-basic.exp: Copy file1.txt to the remote host. * gdb.dwarf2/dw2-compressed.exp: Likewise. * gdb.dwarf2/dw2-intercu.exp: Likewise. * gdb.dwarf2/dw2-intermix.exp: Likewise. * gdb.dwarf2/dw2-producer.exp: Likewise. * gdb.dwarf2/mac-fileno.exp: Likewise. * gdb.python/py-prettyprint.exp (run_lang_tests): Copy py-prettyprint.py to the remote host. * gdb.python/py-mi.exp: Copy py-mi.py to the remote host.
2009-11-11 * gdb.cp/classes.cc (ByAnyOtherName): Add typedef andKeith Seitz3-1/+12
use it instead of "Foo". * gdb.cp/classes.exp (do_tests): Add a test to access a method through a typedef'd class name.