aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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-16Change x32 LIBPATH_SUFFIX to x32.H.J. Lu2-1/+6
2011-02-16 H.J. Lu <hongjiu.lu@intel.com> * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX): Changed to x32 for x32.
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-16Fix comment typo.Richard Henderson1-1/+1
2011-02-16Don't check relocation overflow for x32.H.J. Lu2-0/+8
2011-02-16 H.J. Lu <hongjiu.lu@intel.com> * elf64-x86-64.c (elf_x86_64_check_relocs): Check relocation overflow only for ABI_64_P. (elf_x86_64_relocate_section): Likewise.
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-15daily updateAlan Modra1-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 * dw2gencfi.c (dot_cfi_dummy): New.Richard Henderson3-2/+44
(cfi_pseudo_table) [!TARGET_USE_CFIPOP]: New. * read.c (pobegin): Unconditionally call cfi_pop_insert.
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 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-2/+6
* pe-dll.c (process_def_file_and_drectve): Don't strip leading underscore from symbol by calling bfd_find_version_for_sym.
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-152011-02-15 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-1/+8
* vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
2011-02-15 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read ofAlan Modra2-1/+13
toc relocs. Fuss over free(NULL).
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-14daily updateAlan Modra1-1/+1
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-14opcodes: blackfin: fix styleMike Frysinger2-43/+46
Non-functional thrashing to the GNU style. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2011-02-14bfd/ld: handle ABI prefixes in version scriptsMike Frysinger4-8/+34
The default language in version scripts is supposed to be C, but no symbol demangling is performed on the symbols by default. This makes targets with a symbol prefix to fail with most version scripts out there. So strip away this prefix by default. This fixes many tests (real world and ld's testsuite) for Blackfin targets and doesn't seem to cause regressions for x86_64. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
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.
2011-02-14 gdb/testuite/Pedro Alves5-6/+52
* gdb.trace/unavailable.cc (a, b, c): New globals. (main): Set and clear them. * gdb.trace/unavailable.exp (gdb_collect_globals_test): Collect `a' and `c', and check that `b' isn't collected, although `a' and `c' are. gdb/ * tracepoint.c (memrange_sortmerge): Don't merge ranges that are almost but not quite adjacent.
2011-02-14 gdb/testsuite/Pedro Alves7-24/+77
* gdb.trace/unavailable.cc (struct Virtual): New. (virtualp): New global pointer. * gdb.trace/unavailable.exp (gdb_collect_globals_test): Test printing a pointer to an object whose type has a vtable, with print object on. gdb/ * value.h (value_entirely_available): Declare. * value.c (value_entirely_available): New function. * c-valprint.c (c_value_print): Don't try fetching the pointer's real type if the pointer is unavailable.
2011-02-14 gdb/Pedro Alves4-3/+17
* valops.c (value_repeat): Use read_value_memory instead of read_memory. gdb/testsuite/ * gdb.trace/unavailable.exp (gdb_collect_globals_test): Test that value repeat handles unavailableness.
2011-02-14 gdb/Pedro Alves8-26/+147
* value.h (value_contents_copy, value_contents_copy_raw): Declare. * value.c (value_contents_copy_raw, value_contents_copy): New functions. (value_primitive_field): Use value_contents_copy_raw instead of memcpy. * valops.c (value_fetch_lazy): Use value_contents_copy instead of memcpy. (value_array, value_slice): Ditto. * valarith.c (value_subscripted_rvalue): Use value_contents_copy_raw instead of memcpy. gdb/testsuite/ * gdb.trace/unavailable.exp (gdb_collect_globals_test): Add new tests for building arrays from unavailable values, subscripting non-memory rvalue unvailable arrays, and accessing fields or baseclasses of non-lazy unavailable values, * gdb.trace/unavailable.cc (small_struct, small_struct_b): New struct types. (g_smallstruct, g_smallstruct_b): New globals.
2011-02-14 gdb/testsuite/Pedro Alves3-0/+450
* gdb.trace/unavailable.cc, gdb.trace/unavailable.exp: New files.
2011-02-14 <unavailable> references.Pedro Alves2-11/+10
gdb/ * valops.c (get_value_at): Use value_from_contents_and_address, avoiding read_memory.
2011-02-14 gdb/Pedro Alves2-0/+7
* c-valprint.c (c_val_print): Print a string with unavailable contents as an array.
2011-02-14 gdb/Pedro Alves7-43/+186
* value.h (unpack_bits_as_long): Delete declaration. (unpack_value_bits_as_long): Declare. (unpack_value_field_as_long): Declare. (value_field_bitfield): Declare. * value.c (unpack_bits_as_long): Rename to... (unpack_value_bits_as_long_1): ... this. Add embedded_offset and value parameters. Return the extracted result in a new output parameter. If the value contents are unavailable, return false, otherwise return true. (unpack_value_bits_as_long): New. (unpack_field_as_long): Rename to... (unpack_value_field_as_long_1): ... this. Add embedded_offset and Add embedded_offset and value parameters. Return the extracted result in a new output parameter. If the value contents are unavailable, return false, otherwise return true. (unpack_value_field_as_long): New. (unpack_field_as_long_1): New. (unpack_field_as_long): Reimplement as wrapper around unpack_value_field_as_long_1. (value_field_bitfield): New function. * valops.c (value_fetch_lazy): When fetching a bitfield, use unpack_value_bits_as_long. Mark the value as unavailable, if it is unavailable. * jv-valprint.c (java_print_value_fields): Use value_field_bitfield. * p-valprint.c (pascal_object_print_value_fields): Use value_field_bitfield. * cp-valprint.c (cp_print_value_fields): Use value_field_bitfield.
2011-02-14 * value.c (get_internalvar_integer): Also return the int value ofPedro Alves2-10/+19
TYPE_CODE_INT INTERNALVAR_VALUE values. (set_internalvar): Don't special case TYPE_CODE_INT.