aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-02-192011-02-19 Michael Snyder <msnyder@vmware.com>Michael Snyder2-33/+61
* reverse.c (delete_one_bookmark): Argument is now bookmark id rather than pointer to bookmark struct. (delete_bookmark_command): Use get_number_or_range. (goto_bookmark_command): Parse with get_number instead of strtoul. (bookmark_1): New function. Print info for one bookmark. (bookmarks_info): Use get_number_or_range and bookmark_1.
2011-02-192011-02-18 Michael Snyder <msnyder@vmware.com>Michael Snyder2-39/+17
* thread.c (thread_apply_command): Re-implement using get_number_or_range.
2011-02-192011-02-18 Michael Snyder <msnyder@vmware.com>Michael Snyder2-23/+8
* thread.c (info_threads_command): Re-implement using get_number_or_range.
2011-02-19*** empty log message ***gdbadmin1-1/+1
2011-02-18gdbTom Tromey7-216/+143
* common/ax.def: New file. * ax.h (enum agent_op): Use ax.def. * ax-general.c (aop_map): Use ax.def. gdbserver * Makefile.in (tracepoint-ipa.o): Depend on ax.def. (tracepoint.o): Likewise. * tracepoint.c (enum gdb_agent_op): Use ax.def. (gdb_agent_op_names): Likewise.
2011-02-18gdbTom Tromey8-23/+76
* ax-general.c (aop_map): Add pick and rot. * dwarf2loc.c (compile_dwarf_to_ax) <DW_OP_over>: Reimplement. <DW_OP_rot>: Implement. * ax.h (enum agent_op) <aop_pick, aop_rot>: New constants. (ax_pick): Declare. * ax-general.c (ax_pick): New function. doc * agentexpr.texi (Bytecode Descriptions): Document pick and rot. gdbserver * tracepoint.c (enum gdb_agent_op) <gdb_agent_op_pick, gdb_agent_op_rot>: New constants. (gdb_agent_op_names): Add pick and roll. (eval_agent_expr) <gdb_agent_op_pick, gdb_agent_op_rot>: New cases.
2011-02-18 * Makefile.in (HFILES_NO_SRCDIR): Don't mention ada-operator.inc.Tom Tromey2-1/+5
2011-02-18gdb/Jan Kratochvil6-11/+83
* cp-support.c (make_symbol_overload_list_namespace): Do not call make_symbol_overload_list_block with NULL BLOCK. * valarith.c (unop_user_defined_p): Resolve also TYPE_CODE_TYPEDEF. gdb/testsuite/ * gdb.cp/typedef-operator.exp: New file. * gdb.cp/typedef-operator.cc: New file.
2011-02-18 * breakpoint.c (get_number_trailer): No longer accept a NULL PP.Pedro Alves4-37/+45
* breakpoint.h (get_number_or_range): Declare. * printcmd.c (ALL_DISPLAYS): Declare. (delete_display): Reimplement taking a display pointer. (undisplay_command): Accept a range of displays to delete, using get_number_or_range.
2011-02-18 * c-valprint.c (c_val_print): Add embedded_offset to addressPierre Muller3-2/+8
for arrays of unspecified length. * p-valprint.c (pascal_val_print): Likewise.
2011-02-182011-02-18 Yao Qi <yao@codesourcery.com>Yao Qi4-27/+34
* gdb/arm-tdep.c (arm_displaced_step_copy_insn): Move code to ... (arm_process_displaced_insn): .. here. Remove parameter INSN. (thumb_process_displaced_insn): New. * gdb/arm-linux-tdep.c (arm_linux_displaced_step_copy_insn): Update call to arm_process_displaced_insn. * gdb/arm-tdep.h : Update declaration of arm_process_displaced_insn.
2011-02-18*** empty log message ***gdbadmin1-1/+1
2011-02-172011-02-17 Michael Snyder <msnyder@vmware.com>Michael Snyder2-32/+36
* gdb.threads/thread-find.exp: Fix regular expressions.
2011-02-17Prefix filenames with gdb.trace/Pedro Alves1-6/+7
2011-02-17 * dwarf2loc.h (dwarf2_compile_expr_to_ax): Declare.Tom Tromey5-22/+154
* dwarf2loc.c (dwarf2_compile_expr_to_ax): Rename from compile_dwarf_to_ax. No longer static. Call dwarf2_compile_cfa_to_ax. (locexpr_tracepoint_var_ref): Update. (loclist_tracepoint_var_ref): Update. * dwarf2-frame.h (dwarf2_compile_cfa_to_ax): Declare. * dwarf2-frame.c (execute_cfa_program): Remove 'this_frame' argument; add 'gdbarch' and 'pc'. (dwarf2_compile_cfa_to_ax): New function. (dwarf2_frame_cache): Update.
2011-02-17[Ada] Fix unconstrained packed array sizeJoel Brobecker7-2/+86
When ada-lang transforms an array descriptor type (an XUP structure) into an array type, the size of the array type is computed by using the element size, and multiplying it by the number of elements in that array. This does not work, however, for packed arrays, where the *packed* size in bits needs to be used. This usually does not cause any problem, because we end up reading more memory than needed. However, we have observed on LynxOS a memory error while trying to read the entire array, because the larger-than-needed read tried to read past the end of the stack into inaccessible memory. This patch fixes the problem by correctly computing the array size in bytes in the case of packed arrays. gdb/ChangeLog: * ada-lang.c (ada_type_of_array): Fix the size of the array in the case of an unconstrained packed array. gdb/testsuite/ChangeLog: * gdb.ada/packed_array: Expand testcase to test printing of unconstrained packed array.
2011-02-17dw2-ranges.exp: simplify using clean_restartJoel Brobecker2-4/+5
gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-ranges.exp: Simplify using clean_restart.
2011-02-172011-02-17 Yao Qi <yao@codesourcery.com>Yao Qi2-1/+22
* common/Makefile.in: Add more targets for make.
2011-02-17*** empty log message ***gdbadmin1-1/+1
2011-02-16 * dwarf2loc.c (unimplemented): Fix typo.Tom Tromey2-1/+6
2011-02-16 * dwarf2loc.c (unimplemented): Handle unnamed opcodes.Tom Tromey4-10/+37
(compile_dwarf_to_ax) <default>: Use unimplemented. <DW_OP_deref>: Update. (disassemble_dwarf_expression): Update. * dwarf2read.c (dwarf_stack_op_name): Remove 'def' argument. (decode_locdesc): Update. * dwarf2expr.h (dwarf_stack_op_name): Update.
2011-02-16 * ax.h (struct aop_map) <name>: Now const.Tom Tromey2-1/+5
2011-02-162011-02-16 Tom Tromey <tromey@redhat.com>Pedro Alves5-9/+36
gdb/ * ax-gdb.c.c (gen_expr) <UNOP_MEMVAL>: Handle value kinds other than axs_rvalue. 2011-02-16 Pedro Alves <pedro@codesourcery.com> gdb/testsuite/ * collection.c (globalarr3): New global. (main): Initialize it before collecting, and and clear it afterwards. * collection.exp (gdb_collect_globals_test): Test collecting with '{type} addr', where the addr expression is not an rvalue.
2011-02-162011-02-16 Yao Qi <yao@qiyaows>Yao Qi4-0/+42
* infrun.c (get_displaced_step_closure_by_addr): New. * inferior.h: Declare it. * arm-tdep.c: (arm_pc_is_thumb): Call get_displaced_step_closure_by_addr. Adjust MEMADDR if it returns non-NULL.
2011-02-16gdb/testsuite/ChangeLogKen Werner2-58/+65
2011-02-16 Ken Werner <ken.werner@de.ibm.com> * gdb.opencl/datatypes.exp: Allow "false" when printing the content of a bool variable. Expect correct OpenCL names for vector types. Use the uc3 variable name instead of referring to the uchar3 built-in type. Escape the asterisk at the half pointer test.
2011-02-162011-02-16 Pedro Alves <pedro@codesourcery.com>Pedro Alves5-2/+45
Jan Kratochvil <jan.kratochvil@redhat.com> gdb/ * tracepoint.c (memrange_sortmerge): Fix list A's end calculation. 2011-02-16 Pedro Alves <pedro@codesourcery.com> gdb/testsuite/ * collection.c (globalarr2): New global. (main): Initialize it before collecting, and and clear it afterwards. * collection.exp (gdb_collect_globals_test): Test collecting overlapping memory ranges.
2011-02-16Fix pasto...Pedro Alves1-1/+1
2011-02-16 gdb/Pedro Alves2-11/+32
* value.c (value_contents_copy_raw): Extend describing comment. Assert that the destination contents we're overwriting are wholly available. * value.h (value_contents_copy): Extend describing comment.
2011-02-16 * value.c (value_available_contents_eq): Remove redundant localPedro Alves3-21/+29
variables. Fix available contents comparision. * value.h (value_available_contents_eq): Extend describing comment.
2011-02-162011-02-16 Yao Qi <yao@codesourcery.com>Yao Qi2-1/+6
* thread.c (info_threads_command): Add missing i18n markup and remove trailing newline.
2011-02-16*** empty log message ***gdbadmin1-1/+1
2011-02-152011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-38/+175
* breakpoint.c (longjmp_names): New variable. (struct breakpoint_objfile_data): New type. (breakpoint_objfile_key): New variable. (msym_not_found): New variable. (msym_not_found_p): New predicate. (get_breakpoint_objfile_data): New function. (create_overlay_event_breakpoint): Check per-objfile cache for symbols first. (create_longjmp_master_breakpoint): Likewise. (create_std_terminate_master_breakpoint): Likewise. (create_exception_master_breakpoint): Likewise. (_initialize_breakpoint): Register per-objfile data key.
2011-02-15Fix mis-merge of changelog.Michael Snyder1-9/+18
2011-02-152011-02-15 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-31/+52
* breakpoint.c ((create_overlay_event_breakpoint): Const-propagate parameter value. (create_longjmp_master_breakpoint): Loop over longjmp names. (create_std_terminate_master_breakpoint): Const-propagate parameter value. (update_breakpoints_after_exec): Adjust. (breakpoint_re_set): Adjust.
2011-02-152011-02-15 Michael Snyder <msnyder@vmware.com>Michael Snyder9-24/+610
* command.h (enum command_class): New class 'no_set_class', for "show" commands without a corresponding "set" command. * value.c (_initialize_values): Use 'no_set_class' for "show values". * copying.c (_initialize_copying): Ditto for "show copying" and "show warranty". * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and "show version". * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for which there is no corresponding "set" command (eg. "show copying"). 2011-02-14 Michael Snyder <msnyder@vmware.com> * gdb.texinfo (threads): Document argument for "info threads" cmd. Document new command "thread find". 2011-02-15 Michael Snyder <msnyder@vmware.com> * gdb.base/default.exp: Add tests for thread commands. * gdb.base/help.exp: Add tests for thread commands. * gdb.threads/thread-find.exp: New test for thread find command.
2011-02-15Merge gdb/common/ChangeLog back to gdb/ChangeLog.Jan Kratochvil2-13/+13
2011-02-15gdb/Jan Kratochvil6-108/+87
* Makefile.in (ACLOCAL_AMFLAGS): Add `-I ../config'. * aclocal.m4: Regenerated with aclocal-1.11.1. * common/configure: Regenerate with autoconf-2.64. gdb/gdbserver/ * aclocal.m4: Regenerated with aclocal-1.11.1.
2011-02-15gdb/ChangeLogKen Werner4-3/+12
2011-02-15 Ken Werner <ken.werner@de.ibm.com> * opencl-lang.c (build_opencl_types): Set the size of the built-in bool data type to a size of one byte. gdb/testsuite/ChangeLog 2011-02-15 Ken Werner <ken.werner@de.ibm.com> * gdb.opencl/datatypes.exp: Expect the size of a bool to be one byte.
2011-02-15 gdb/Pedro Alves2-1/+10
* target.c (memory_xfer_live_readonly_partial): Document where to look for interface description.
2011-02-152011-02-15 Yao Qi <yao@codesourcery.com>Yao Qi5-11/+104
PR tdep/12352 * arm-tdep.c (copy_ldr_str_ldrb_strb): Replace PC with SP in order to store PC value on stack instead of text section. 2011-02-15 Yao Qi <yao@codesourcery.com> PR tdep/12352 * gdb.arch/arm-disp-step.S : New test for str instruction. * gdb.arch/arm-disp-step.exp : Likewise
2011-02-15gdb/Thiago Jung Bauermann5-10/+66
* rs6000-tdep.c (IS_EFP_PSEUDOREG): Use correct constant for the EFP register set size. (efpr_pseudo_register_read): Use regcache_raw_read_part to read data from the VMX register. (efpr_pseudo_register_write): Use regcache_raw_write_part to read and write data from/to the VMX register. gdb/testsuite/ * gdb.arch/vsx-regs.exp: Add "vector_register1_vr" and "vector_register2_vr" test strings. Test the extended floating point registers (F32~F63). * lib/gdb.exp (skip_vsx_tests): Update compile flags for the IBM XL C compiler. Make the test program use a register provided by the compiler for the lxvd2x instruction.
2011-02-15*** empty log message ***gdbadmin1-1/+1
2011-02-142011-02-14 Michael Snyder <msnyder@vmware.com>Michael Snyder6-18/+35
* command.h (enum command_class): New class 'no_set_class', for "show" commands without a corresponding "set" command. * value.c (_initialize_values): Use 'no_set_class' for "show values". * copying.c (_initialize_copying): Ditto for "show copying" and "show warranty". * cli/cli-cmds.c (init_cli_cmds): Ditto for "show commands" and "show version". * cli/cli-setshow.c (cmd_show_list): Skip "show" commands for which there is no corresponding "set" command (eg. "show copying").
2011-02-142011-02-14 Michael Snyder <msnyder@vmware.com>Michael Snyder2-1/+5
* gdb.texinfo (Threads): Update example of new thread message.
2011-02-14 * exec.c (section_table_available_memory): Change `len' parameterPedro Alves4-4/+12
type to ULONGEST. * exec.h (section_table_available_memory): Ditto. * value.h (read_value_memory): Rename the `offset' parameter to `embedded_offset'.
2011-02-14Add proper attribution.Pedro Alves1-0/+1
2011-02-14 gdb/Pedro Alves3-6/+22
* memrange.c (compare_mem_ranges): Mention sort order in describing comment. (normalize_mem_ranges): Add comment. Fix ra->length calculation. * tracepoint.c (traceframe_available_memory): Extend comment to mention what happens to RESULT when the target does not support the query.
2011-02-14 * value.c (mark_value_bytes_unavailable): Fix indexing the `bef'Pedro Alves2-1/+7
range.
2011-02-14 * value.c (value_bits_valid, value_bits_synthetic_pointer):Pedro Alves2-2/+7
No longer handle NULL values.
2011-02-14 gdb/Pedro Alves16-149/+388
* exceptions.h (NOT_AVAILABLE_ERROR): New error. * value.c: Include "exceptions.h". (require_available): Throw NOT_AVAILABLE_ERROR instead of a generic error. * cp-abi.c: Include gdb_assert.h. (baseclass_offset): Add `embedded_offset' and `val' parameters. Assert the method is implemented. Wrap NOT_AVAILABLE_ERROR errors. * cp-abi.h (baseclass_offset): Add `embedded_offset' and `val' parameters. No longer returns -1 on error. (struct cp_abi_ops) <baseclass_offset>: Add `embedded_offset' and `val' parameters. * cp-valprint.c: Include exceptions.h. (cp_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching the baseclass_offset. Handle unavailable base classes. Use val_print_invalid_address. * p-valprint.c: Include exceptions.h. (pascal_object_print_value): Handle NOT_AVAILABLE_ERROR errors when fetching the baseclass_offset. No longer expect baseclass_offset returning -1. Handle unavailable base classes. Use val_print_invalid_address. * valops.c (dynamic_cast_check_1): Rename `contents' parameter to `valaddr' parameter, and change its type to gdb_byte pointer. Add `embedded_offset' and `val' parameters. Adjust. (dynamic_cast_check_2): Rename `contents' parameter to `valaddr' parameter, and change its type to gdb_byte pointer. Add `embedded_offset' and `val' parameters. Adjust. No longer expect baseclass_offset returning -1. (value_dynamic_cast): Use value_contents_for_printing rather than value_contents. Adjust. (search_struct_field): No longer expect baseclass_offset returning -1. (search_struct_method): If reading memory from the target is necessary, wrap it in a new value to pass to baseclass_offset. No longer expect baseclass_offset returning -1. (find_method_list): No longer expect baseclass_offset returning -1. Use value_contents_for_printing rather than value_contents. * valprint.c (val_print_invalid_address): New function. * valprint.h (val_print_invalid_address): Declare. * gdbtypes.c (is_unique_ancestor_worker): New `embedded_offset' and `val' parameters. No longer expect baseclass_offset returning -1. Adjust. * gnu-v2-abi.c: Include "exceptions.h". (gnuv2_baseclass_offset): Add `embedded_offset' and `val' parameters. Handle unavailable memory. Recurse through gnuv2_baseclass_offset directly, rather than through baseclass_offset. No longer returns -1 on not found, instead throw an error. * gnu-v3-abi.c (gnuv3_baseclass_offset): Add `embedded_offset' and `val' parameters. Adjust. gdb/testsuite/ * gdb.trace/unavailable.cc (class Base, class Middle, class Derived): New types. (derived_unavail, derived_partial, derived_whole): New globals. (virtual_partial): New global. (virtualp): Point at virtual_partial. * gdb.trace/unavailable.exp (gdb_collect_globals_test): Add tests related to unavailable vptr.