aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2010-01-01Fix build failure in inf-ptrace.c.Joel Brobecker3-7/+7
* inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
2010-01-01 * server.c (gdbserver_version): Update copyright year to 2010.Joel Brobecker3-2/+7
* gdbreplay.c (gdbreplay_version): Likewise.
2010-01-01 * top.c (print_gdb_version): Update copyright year.Joel Brobecker2-1/+5
2010-01-01ChangeLog rotation for 2010.Joel Brobecker3-13572/+13582
2010-01-01Fix break *FUN'address thread NUM.Joel Brobecker2-1/+8
* ada-lex.l (task): Expand rule to also match the thread keyword.
2010-01-01Fix break *FUN'address task NUM.Joel Brobecker3-0/+15
* ada-lex.l (task): New rule. * ada-lang.c (valid_task_id): Make sure the Ada task list has been built before using it.
2010-01-01*** empty log message ***gdbadmin1-1/+1
2009-12-31 Add new tracepoint action teval.Stan Shebs7-0/+136
* 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-31 * tracepoint.c (trace_find_command): Error out if trace running.Stan Shebs2-0/+27
(trace_find_pc_command): Ditto. (trace_find_tracepoint_command): Ditto. (trace_find_line_command): Ditto. (trace_find_range_command): Ditto. (trace_find_outside_command): Ditto.
2009-12-31Fix a typo.Joel Brobecker1-1/+1
2009-12-31Internal error while loading core on alpha-tru64.Joel Brobecker2-3/+12
* corelow.c (core_open): Delete unused local variables. Use inferior_appeared instead of add_inferior_silent.
2009-12-31*** empty log message ***gdbadmin1-1/+1
2009-12-30 * tracepoint.c (trace_status_command): Add some status output.Stan Shebs2-0/+16
2009-12-3020090-12-30 Jan Kratochvil <jan.kratochvil@redhat.com>Thiago Jung Bauermann2-0/+13
Thiago Jung Bauermann <bauerman@br.ibm.com> * breakpoint.c (update_watchpoint): Change b->type to bp_watchpoint before calling hw_watchpoint_used_count.
2009-12-30 * breakpoint.c (watchpoint_check): Expand the function description.Joel Brobecker2-1/+8
2009-12-30gdb/Thiago Jung Bauermann7-3/+52
* 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 Shebs7-5/+94
* 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-30*** empty log message ***gdbadmin1-1/+1
2009-12-29 * language.c (pointer_type): Un-comment out.Stan Shebs3-13/+24
* ax-gdb.c: Include language.h, use pointer_type throughout instead of testing TYPE_CODE_PTR. (gen_fetch): Include TYPE_CODE_REF. (gen_cast): Ditto.
2009-12-29 * ax-gdb.c (gen_expr): Handle logical and, logical or, andStan Shebs2-1/+72
conditional expressions.
2009-12-29*** empty log message ***gdbadmin1-1/+1
2009-12-282009-12-28 Stan Shebs <stan@codesourcery.com>Stan Shebs13-119/+791
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-28 * NEWS: Document "info variables" change.Daniel Jacobowitz6-3/+29
* dwarf2read.c (new_symbol): Add file-scope external unresolved symbols to global_symbols. * symtab.c (search_symbols): Skip LOC_UNRESOLVED symbols. doc/ * gdb.texinfo (Symbols): "info variables" prints definitions, not declarations.
2009-12-28 * defs.h (print_address_symbolic, build_address_symbolic): UpdateDaniel Jacobowitz6-12/+33
prototypes. * printcmd.c (print_address_symbolic): Take a gdbarch argument. Pass it to build_address_symbolic. All callers updated. (build_address_symbolic): Take a gdbarch argument. Use gdbarch_addr_bits_remove for functions. All callers updated.
2009-12-28 * linux-low.c: Delete inclusion of ansidecl.h, elf/common.h,Doug Evans2-5/+14
elf/external.h. Include <elf.h> instead but only if necessary.
2009-12-28 * ax-gdb.c (gen_expr) <OP_THIS>: Lookup `this' in the context ofPedro Alves2-16/+10
the tracepoint, not of the selected frame and language.
2009-12-28 * linux-low.c (linux_remove_process): Remove `detaching'Pedro Alves3-8/+45
parameter. Don't release/detach from thread_db here. (linux_kill): Release/detach from thread_db here, ... (linux_detach): ... and here, before actually detaching. (linux_wait_1): ... and here, when a process exits. * thread-db.c (any_thread_of): New. (thread_db_free): Switch the current inferior to a thread of the passed in process.
2009-12-28*** empty log message ***gdbadmin1-1/+1
2009-12-27*** empty log message ***gdbadmin1-1/+1
2009-12-26*** empty log message ***gdbadmin1-1/+1
2009-12-25*** empty log message ***gdbadmin1-1/+1
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-242009-12-23 Stan Shebs <stan@codesourcery.com>Stan Shebs2-0/+35
* ax-gdb.c (gen_expr): Handle OP_THIS.
2009-12-242009-12-23 Stan Shebs <stan@codesourcery.com>Stan Shebs5-12/+143
* ax-gdb.h (gen_trace_for_var): Declare. * ax-gdb.c (gen_trace_for_var): New function. * dwarf2loc.c (dwarf_expr_frame_base_1): New function, split from... (dwarf_expr_frame_base): ...here. (dwarf2_tracepoint_var_ref): Add computed location case. * tracepoint.c (collect_symbol): Add scope arg and LOC_COMPUTED case. (add_local_symbols): Update call to collect_symbol. (encode_actions): Ditto.
2009-12-24*** empty log message ***gdbadmin1-1/+1
2009-12-232009-12-23 Dmitry Gorbachev <d.g.gorbachev@gmail.com>Tom Tromey3-2/+14
PR gdb/11110 * tracepoint.h (deprecated_trace_find_hook) (deprecated_trace_start_stop_hook): Declare extern. * tracepoint.c (deprecated_trace_find_hook) (deprecated_trace_start_stop_hook): Define.
2009-12-23gdb/Jan Kratochvil4-66/+127
* 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 Kratochvil7-28/+152
* 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-23 * Makefile.in (SFILES): Add exceptions.c.Tom Tromey2-1/+6
2009-12-23*** empty log message ***gdbadmin1-1/+1
2009-12-22GDB 7.0.1 released.gdbadmin1-0/+4
2009-12-222009-12-22 Hui Zhu <teawater@gmail.com>Hui Zhu4-38/+51
* 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-22 * linux-x86-low.c: Delete outdated comment about Elf32_Phdr.Doug Evans2-4/+2
2009-12-22*** empty log message ***gdbadmin1-1/+1
2009-12-21 gdb/Doug Evans4-28/+47
* linux-nat.c (kill_lwp): Minor cleanup, move definition of tkill_failed into ifdef HAVE_TKILL_SYSCALL. Move setting of errno there too. Delete unnecessary resetting of errno after syscall. Minor comment changes to match gdbserver/linux-low.c:kill_lwp. gdbserver/ * linux-low.c (kill_lwp): Use __NR_tkill instead of SYS_tkill. Move definition of tkill_failed to ifdef __NR_tkill to avoid gcc warning ifndef __NR_tkill. Move setting of errno there too. Delete unnecessary resetting of errno after syscall. Minor comment changes to match gdb/linux-nat.c:kill_lwp.
2009-12-21 * configure.ac: Check for dladdr.Doug Evans5-1/+40
* config.in: Regenerate. * configure: Regenerate. * thread-db.c (dladdr_to_soname): Only define ifdef HAVE_DLADDR. (try_thread_db_load): Update.
2009-12-21 * linux-low.c (my_waitpid): Delete unnecessary prototype.Doug Evans2-1/+4
2009-12-21Fix typo in filename.Joel Brobecker1-1/+1
2009-12-21 * MAINTAINERS: Update my email address.Alan Modra2-1/+5