aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
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
2009-12-21 * mi/mi-main.c (mi_cmd_gdb_exit): Flush raw_stdout.Vladimir Prus4-0/+17
2009-12-21 PR gdb/10884Vladimir Prus5-0/+53
* value.c (value_primitive_field): Call check_typedef on the type.
2009-12-21 * COPYING: Update to GPL version 3.Joel Brobecker2-292/+628
2009-12-21 * gpl.texi: Update to version 3 of the GPL.Joel Brobecker2-316/+646
2009-12-21*** empty log message ***gdbadmin1-1/+1
2009-12-202009-12-20 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+5
* amd64-tdep.c (amd64_epilogue_frame_cache): Fix buf size.
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-20 * Makefile.in: Update copyright header.Joel Brobecker3-6/+10
* observer.texi: Fix the copyright header of the generated files.
2009-12-20 * darwin-nat-info.c, solib-spu.c, spu-multiarch.c,Joel Brobecker6-19/+15
regformats/regdat.sh, features/Makefile: Update copyright header.
2009-12-20*** empty log message ***gdbadmin1-1/+1
2009-12-19 * event-loop.c: Include unistd.h if it exists.Doug Evans2-0/+6
2009-12-19 * linux-low.c (my_waitpid): Move definition away from being inDoug Evans2-75/+78
between linux_tracefork_child/linux_test_for_tracefork.
2009-12-19 * arm-linux-tdep.c (ARM_OABI_SYSCALL_RESTART_SYSCALL): New macro.Maciej W. Rozycki2-0/+42
(ARM_LDR_PC_SP_12): Likewise. (arm_linux_restart_syscall_init): New function. (arm_linux_restart_syscall_tramp_frame): New variable. (arm_linux_init_abi): Install the arm_linux_restart_syscall_tramp_frame unwinder.
2009-12-19 gdb/Doug Evans6-8/+27
* gdb_proc_service.h (psaddr_t): Fix type. * linux-thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix signature to match glibc. (thread_db_get_thread_local_address): Use psaddr_t for type of address to match parameter of td_thr_tls_get_addr_p. Cast through psaddr_t instead of (void*) to match parameter of td_thr_tls_get_addr_p. gdbserver/ * gdb_proc_service.h (psaddr_t): Fix type. * thread-db.c (thread_db_info.td_thr_tls_get_addr_p): Fix signature to match glibc.
2009-12-19*** empty log message ***gdbadmin1-1/+1
2009-12-182009-12-17 Stan Shebs <stan@codesourcery.com>Stan Shebs2-0/+9
* breakpoint.c (bpstat_check_location): Check for tracepoints.
2009-12-18*** empty log message ***gdbadmin1-1/+1