aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-02-10 * vec.h (VEC_block_remove): Place VEC_ASSERT_INFO on the rightPedro Alves2-2/+11
side of the parenthesis. Merge from GCC: 2010-07-13 Jakub Jelinek <jakub@redhat.com> * vec.h (VEC_block_remove): Fix comment.
2011-02-10*** empty log message ***gdbadmin1-1/+1
2011-02-09*** empty log message ***gdbadmin1-1/+1
2011-02-082011-02-08 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+5
* linux-nat.c (linux_nat_filter_event): Fix typo in comment.
2011-02-08gdb/Jan Kratochvil2-8/+14
* i386-tdep.c (i386_process_record): Rename l suffixes to d suffixes in comments for pcmpgtd, pcmpeqd, psubd, paddd, pcmpgtd, pcmpeqd, psubd and paddd.
2011-02-08gdb/Jan Kratochvil2-3/+11
PR 12361. * i386-tdep.c (i386_process_record) <0x660f3807>: Fix the comment to phsubsw. (i386_process_record) <lddqu>: Fix the opcode to 0xf20ff0. (i386_process_record) <0x0f3807>: Fix the comment to phsubsw.
2011-02-08include/ChangeLog:Ulrich Weigand8-11/+783
* dwarf2.h (enum dwarf_calling_convention): Add DW_CC_GDB_IBM_OpenCL. gdb/ChangeLog: * dwarf2read.c (read_subroutine_type): Set special calling convention flag for functions compiled by IBM XL C for OpenCL. * ppc-sysv-tdep.c: Include "dwarf2.h" (ppc_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types calling convention. (do_ppc_sysv_return_value): Add FUNC_TYPE argument. Implement IBM OpenCL vector types calling convention. (ppc_sysv_abi_return_value): Pass through FUNC_TYPE. (ppc_sysv_abi_broken_return_value): Likewise. (ppc64_sysv_abi_push_dummy_call): Implement IBM OpenCL vector types calling convention. (ppc64_sysv_abi_return_value): Likewise. * spu-tdep.c: Include "dwarf2.h" (spu_return_value): Implement IBM OpenCL vector types calling convention. gdb/testsuite/ChangeLog: * gdb.opencl/callfuncs.cl: New file. * gdb.opencl/callfuncs.exp: New test. * gdb.opencl/Makefile.in (EXECUTABLES): Add callfuncs.
2011-02-08ChangeLog:Ulrich Weigand5-37/+39
* ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Implement correct ABI for AltiVec vector arguments. testsuite/ChangeLog: * gdb.arch/altivec-abi.c (vec_func): Make use of intv_on_stack_f when computing result. * gdb.arch/altivec-abi.exp: Update expected results.
2011-02-08*** empty log message ***gdbadmin1-1/+1
2011-02-07 * valprint.c (val_print): Extend comment.Pedro Alves8-63/+61
* ada-valprint.c (ada_valprint): Rewrite comment deferring interface explanation to val_print. (ada_val_print_array): Adjust comment to current interface. (print_field_values): Adjust comment to current interface. * c-valprint.c (c_val_print): Rewrite comment deferring interface explanation to val_print. * f-valprint.c (f_val_print): Ditto. * jv-valprint.c (java_val_print): Ditto. * m2-valprint.c (m2_val_print): Ditto. * p-valprint.c (pascal_val_print): Ditto.
2011-02-07 * gdb.base/break-interp.exp: Remove ${objdir} from test messages.Thiago Jung Bauermann6-10/+23
* gdb.base/jit.exp: Likewise. * gdb.base/pie-execl.exp: Likewise. * gdb.base/solib-nodir.exp: Likewise. * gdb.base/solib-overlap.exp: Likewise.
2011-02-07 * breakpoint.c (parse_breakpoint_sals): Fix description.Thiago Jung Bauermann2-3/+10
2011-02-07 gdb/server/Pedro Alves6-20/+106
* server.c (gdb_read_memory): Change return semantics to allow partial transfers. (handle_search_memory_1): Adjust. (process_serial_event) <'m' packet>: Handle partial transfers. * tracepoint.c (traceframe_read_mem): Handle partial transfers. gdb/testsuite/ * gdb.trace/collection.c (global_pieces): New. * gdb.trace/collection.exp (gdb_collect_global_in_pieces_test): New procedure. (gdb_trace_collection_test): Call it.
2011-02-07*** empty log message ***gdbadmin1-1/+1
2011-02-06*** empty log message ***gdbadmin1-1/+1
2011-02-05Add the file that prev commit forget.Hui Zhu18-0/+1366
2011-02-05*** empty log message ***gdbadmin1-1/+1
2011-02-04Add Python support for GDB events.Sami Wagiaalla9-6/+308
2011-02-04 Sami Wagiaalla <swagiaal@redhat.com> * gdb.python/py-evthreads.c: New file. * gdb.python/py-evthreads.exp: New file. * gdb.python/py-events.py: New file. * gdb.python/py-events.exp: New file. * gdb.python/py-events.c: New file. 2011-02-04 Sami Wagiaalla <swagiaal@redhat.com> Oguz Kayral <oguzkayral@gmail.com> * python/py-inferior.c (python_on_normal_stop): New function. (python_on_resume): New function. (python_inferior_exit): New function. (gdbpy_initialize_inferior): Add normal_stop, target_resumed, and inferior_exit observers. * python/py-evtregistry.c: New file. * python/py-threadevent.c : New file. * python/py-event.c: New file. * python/py-evts.c: New file. * python/py-continueevent.c: New file. * python/py-bpevent.c: New file. * python/py-signalevent.c: New file. * python/py-exetiedevent.c: New file. * python/py-breakpoint.c (gdbpy_breakpoint_from_bpstats): New function. Move struct breakpoint_object from here... * python/python-internal.h: ... to here. * python/py-event.h: New file. * python/py-events.h: New file. * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpointstopevent.o, py-continueevent.o, py-event.o, py-eventregistry.o, py-events.o, py-exitedevent.o, py-signalstopevent.o, and py-stopevent.o. (SUBDIR_PYTHON_SRCS): Add py-breakpointstopevent.c, py-continueevent.c, py-event.c, py-eventregistry.c, py-events.c, py-exitedevent.c, py-signalstopevent.c, and py-stopevent.c. Add build rules for all the above.
2011-02-04 * dwarf2read.c (dwarf2_section_empty_p): New function.Tom Tromey2-8/+42
(dwarf2_read_section): Use dwarf2_section_empty_p. (dwarf2_section_size): New function. (dwarf2_get_section_info): Unconditionally read section. (dwarf2_read_index): Use dwarf2_section_empty_p. (partial_read_comp_unit_head): Use dwarf2_section_size. (dwarf2_symbol_mark_computed): Likewise.
2011-02-04 * gdbint.texinfo (Formatting): Mention some formatting guidelinesPedro Alves2-1/+28
for casts and unary operators.
2011-02-042011-02-04 David Daney <ddaney@caviumnetworks.com>David Daney2-0/+6
* NEWS: Add item for "catch syscall" on mips*-linux* targets.
2011-02-04 * gdb.texinfo (GDB/MI Async Records): Document that symbols-loadedTom Tromey2-5/+11
is not useful.
2011-02-04gdb/David Daney8-2/+1037
2011-02-04 David Daney <ddaney@caviumnetworks.com> * mips-linux-tdep.c: Include xml-syscall.h. (mips_linux_get_syscall_number): New function. (mips_linux_init_abi): Add calls to mips_linux_get_syscall_number() and set_xml_syscall_file_name(). * data-directory/Makefile.in (SYSCALLS_FILES): Add mips-o32-linux.xml, mips-n32-linux.xml and mips-n64-linux.xml * syscalls/mips-n32-linux.xml: New file. * syscalls/mips-n64-linux.xml: New file. * syscalls/mips-o32-linux.xml: New file. gdb/testsuite/ 2011-02-04 David Daney <ddaney@caviumnetworks.com> * gdb.base/catch-syscall.exp: Enable for mips*-linux*.
2011-02-04 * dwarf2read.c (dwarf2_ranges_read): Skip empty range entries.Ulrich Weigand2-1/+32
Complain about inverted range entries. (dwarf2_record_block_ranges): Likewise.
2011-02-04 Fix some typos.Thiago Jung Bauermann3-6/+17
* breakpoint.c (update_watchpoint): Fix name of the update_global_location_list function. (print_one_breakpoint): Fix typo. (_initialize_breakpoint): Remove extra space in hbreak help string. * breakpoint.h (struct bp_location) <length>: Fix field description.
2011-02-04 * regcache.c (registers_changed_ptid): Don't explictly alwaysPedro Alves2-11/+26
clear `current_regcache'. Only clear current_thread_ptid and current_thread_arch when PTID matches. Only reinit the frame cache if PTID matches the current inferior_ptid. Move alloca(0) call to ... (registers_changed): ... here.
2011-02-04*** empty log message ***gdbadmin1-1/+1
2011-02-03 * arm-tdep.c (arm_skip_stack_protector): Accept any symbol thatUlrich Weigand2-1/+7
starts with __stack_chk_guard as stack guard symbol.
2011-02-03http://sourceware.org/ml/gdb-patches/2010-12/msg00300.htmlAndrew Burgess6-6/+132
Improve the ordering of line table entries when dealing with the end of sequence markers. This will allow us to disassemble over the border between two compile units while also displaying source code information.
2011-02-03*** empty log message ***gdbadmin1-1/+1
2011-02-02 * arm-tdep.c (skip_prologue_function): Add GDBARCH and IS_THUMBUlrich Weigand2-26/+51
arguments. Skip in-prologue calls to glibc __aeabi_read_tp implementation even if no symbols are available. (thumb_analyze_prologue): Update call to skip_prologue_function. (arm_analyze_prologue): Likewise.
2011-02-02 * arm-tdep.c: Include "observer.h".Ulrich Weigand2-0/+770
(arm_prologue_this_id): Use frame PC if get_frame_func returns 0. (arm_exidx_data_key): New static variable. (struct arm_exidx_entry, arm_exidx_entry_s): New data types. (struct arm_exidx_data): Likewise. (arm_exidx_data_free): New function. (arm_compare_exidx_entries): Likewise. (arm_obj_section_from_vma): Likewise. (arm_exidx_new_objfile): Likewise. (arm_find_exidx_entry): Likewise. (arm_exidx_fill_cache): Likewise. (arm_exidx_unwind_sniffer): Likewise. (arm_exidx_unwind): New global variable. (arm_gdbarch_init): Append unwinder arm_exidx_unwind. (_initialize_arm_tdep): Attach arm_exidx_new_objfile to new_objfile observer. Register arm_exidx_data_key as objfile data.
2011-02-02 * arm-tdep.c (arm_analyze_load_stack_chk_guard): Avoid build breakUlrich Weigand2-20/+26
due to accessing uninitialized variable. Fix indentation.
2011-02-02 gdb/Pedro Alves5-2/+61
* c-valprint.c (c_value_print): When doing virtual base pointer adjustment, create a new value with adjusted contents rather than changing the contents of the value being printed (and getting it wrong). gdb/testsuite/ * gdb.cp/virtbase.cc (VirtualBase, VirtualMiddleA, VirtualMiddleB) (Virtual): New structs. (virtual_o, virtual_middle_b): New globals. * gdb.cp/virtbase.exp: New tests.
2011-02-02 * xml-support.c (xml_find_attribute): New.Pedro Alves8-35/+76
(xinclude_start_include): Use it. * xml-support.h (xml_find_attribute): Declare. * memory-map.c (memory_map_start_memory) (memory_map_start_property): Use xml_find_attribute. * osdata.c (osdata_start_osdata, osdata_start_column): Use xml_find_attribute. * remote.c (start_thread): Use xml_find_attribute. * solib-target.c (library_list_start_segment) (library_list_start_section, library_list_start_library) (library_list_start_list): Use xml_find_attribute. * xml-tdesc.c (tdesc_start_target, tdesc_start_feature) (tdesc_start_union, tdesc_start_struct, tdesc_start_flags) (tdesc_start_field): Use xml_find_attribute.
2011-02-02 * opencl-lang.c (STRINGIFY): Rename to OCL_STRING.Ulrich Weigand2-6/+11
(BUILD_OCL_VTYPES): Update.
2011-02-02fix gdb+python build failure if using non-GNU sedJoel Brobecker3-2/+38
Non-GNU sed do not like the '?' quantifier when used in a s/// regexp that involve back-references, causing the build to fail when trying to link with Python support. This fixes it by using the '*' quantifier instead. gdb/ChangeLog: * configure.ac: Work around non-GNU sed limitation when computing python version number. * configure: Regenerate.
2011-02-02*** empty log message ***gdbadmin1-1/+1
2011-02-01gdb/Jan Kratochvil2-0/+50
Fix debug printing of TYPE_INSTANCE. * expprint.c (print_subexp_standard) <TYPE_INSTANCE>: New. (dump_subexp_body_standard) <TYPE_INSTANCE>: New.
2011-02-01gdb/Jan Kratochvil6-600/+457
Fix debug printing of BINOP_IN, OP_OBJC_MSGCALL, OP_F77_UNDETERMINED_ARGLIST, OP_COMPLEX, OP_OBJC_SELECTOR, OP_NAME, OP_OBJC_NSSTRING, OP_F90_RANGE and OP_DECFLOAT. * ada-operator.inc: Rename the file to ... * ada-operator.def: ... here, wrap all the entries by macro OP. * expprint.c (op_name_standard): Remove all the entries. Include "std-operator.def" instead. * expression.h (enum exp_opcode): Include "std-operator.def" and "ada-operator.def". Move all the entries ... * std-operator.def: ... here, wrap all the entries by macro OP.
2011-02-01*** empty log message ***gdbadmin1-1/+1
2011-01-312011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov4-0/+333
* gdb.base/jit.exp: New file. * gdb.base/jit-main.c: New file. * gdb.base/jit-solib.c: New file.
2011-01-312011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov1-0/+23
* breakpoint.h (remove_jit_event_breakpoints): New prototype. * breakpoint.c (remove_jit_event_breakpoints): New function. * jit.c (jit_descriptor_addr): Delete. (registering_code): Delete. (clear_int): Delete. (jit_inferior_data): New variable. (struct jit_inferior_data): New type. (get_jit_inferior_data): New function. (jit_inferior_data_cleanup): New function. (jit_read_descriptor): Adjust. (jit_register_code): Adjust. (jit_breakpoint_re_set_internal): New function; move code here ... (jit_inferior_init): ... from here. (jit_breakpoint_re_set): Adjust. (jit_reset_inferior_data_and_breakpoints): New function. (jit_inferior_created_observer): Adjust. (jit_inferior_exit_hook): Adjust. (jit_executable_changed_observer): New function. (jit_event_handler): Adjust. (_initialize_jit): Adjust.
2011-01-312011-01-31 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov3-73/+141
* breakpoint.h (remove_jit_event_breakpoints): New prototype. * breakpoint.c (remove_jit_event_breakpoints): New function. * jit.c (jit_descriptor_addr): Delete. (registering_code): Delete. (clear_int): Delete. (jit_inferior_data): New variable. (struct jit_inferior_data): New type. (get_jit_inferior_data): New function. (jit_inferior_data_cleanup): New function. (jit_read_descriptor): Adjust. (jit_register_code): Adjust. (jit_breakpoint_re_set_internal): New function; move code here ... (jit_inferior_init): ... from here. (jit_breakpoint_re_set): Adjust. (jit_reset_inferior_data_and_breakpoints): New function. (jit_inferior_created_observer): Adjust. (jit_inferior_exit_hook): Adjust. (jit_executable_changed_observer): New function. (jit_event_handler): Adjust. (_initialize_jit): Adjust.
2011-01-312011-01-31 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+6
* m32r-tdep.c (m32r_gdbarch_init): Replace accidentally deleted line.
2011-01-31 * gdb.opencl/convs_casts.exp: Use tbreak instead of break toUlrich Weigand5-8/+16
proceed to initial kernel entry point. * gdb.opencl/datatypes.exp: Likewise. * gdb.opencl/operators.exp: Likewise. * gdb.opencl/vec_comps.exp: Likewise.
2011-01-31Added new namespace tests.Sami Wagiaalla5-0/+183
2011-01-31 Sami Wagiaalla <swagiaal@redhat.com> * gdb.cp/nsnested.cc: New. * gdb.cp/nsnested.exp: New. * gdb.cp/nsnoimports.exp: New. * gdb.cp/nsnoimports.cc: New.
2011-01-31 PR python/12216:Tom Tromey4-1/+32
* python/python.c (execute_gdb_command): Call prevent_dont_repeat. * top.c (suppress_dont_repeat): New global. (dont_repeat): Use it. (prevent_dont_repeat): New function. * command.h (prevent_dont_repeat): Declare.
2011-01-31 * infcmd.c (finish_backward): Use breakpoint_set_silent.Tom Tromey5-14/+65
* python/py-breakpoint.c (bppy_set_silent): Use breakpoint_set_silent. (bppy_set_thread): Use breakpoint_set_thread. (bppy_set_task): Use breakpoint_set_task. * breakpoint.h (breakpoint_set_silent, breakpoint_set_thread) (breakpoint_set_task): Declare. (make_breakpoint_silent): Remove. * breakpoint.c (breakpoint_set_silent): New function. (breakpoint_set_thread): Likewise. (breakpoint_set_task): Likewise. (make_breakpoint_silent): Remove.
2011-01-31 * breakpoint.h (user_breakpoint_p): Declare.Tom Tromey3-6/+22
* breakpoint.c (user_breakpoint_p): New function. (breakpoint_1): Use it. (save_breakpoints): Likewise.