aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-01-12gdb/ChangeLog:Joel Brobecker10-83/+400
Add support for DW_AT_GNAT_descriptive_type. * gdbtypes.h (enum type_specific_kind): New enum. (struct main_type) [type_specific_field]: New component. [type_specific]: Add new component "gnat_stuff". (struct gnat_aux_type): New type. (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type). (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type). (gnat_aux_default, allocate_gnat_aux_type): Add declaration. (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO) (TYPE_SPECIFIC_FIELD): New macros. (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given type does not hold any cplus-specific data. (TYPE_RAW_CPLUS_SPECIFIC): New macro. (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros. (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has cplus-specific data. * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite. Set new component TYPE_SPECIFIC_FIELD (type). (gnat_aux_default): New constant. (allocate_gnat_aux_type): New function. (init_type): Add initialization the type-specific stuff for TYPE_CODE_FLT and TYPE_CODE_FUNC types. (print_gnat_stuff): New function. (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus- specific data. Adjust code that prints the contents of the type-specific union using the TYPE_SPECIFIC_FIELD value. * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate the type cplus stuff for Ada types. (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type): Error out if these routines are called with an Ada type. (read_structure_type, read_array_type, read_subrange_type): Add call to set_descriptive_type. (set_die_type): Initialize the gnat-specific data if necessary. (need_gnat_info, die_descriptive_type, set_descriptive_type): New functions. * ada-lang.c (decode_constrained_packed_array_type): Use decode_constrained_packed_array_type instead of doing a standard lookup to locate a parallel type. (find_parallel_type_by_descriptive_type): New function. (ada_find_parallel_type_with_name): New function. (ada_find_parallel_type): Reimplement using ada_find_parallel_type_with_name. * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT to check if type has a cplus stuff. * linespec.c (total_number_of_methods): Likewise. * mdebugread.c (new_type): Likewise. gdb/testsuite/ChangeLog: * gdb.base/maint.exp: Adjust the expected output for the "maint print type" test. Use gdb_test_multiple instead of gdb_sent/gdb_expect.
2010-01-12 PR 11122Alan Modra2-2/+7
* listing.c (print_source): Add one to line number.
2010-01-12 * lib/gdbserver-support.exp (gdbserver_download_current_prog): RenameDoug Evans4-4/+9
from gdbserver_download. All callers updated.
2010-01-12 * gdb.server/ext-run.exp: "info os processes" requires xml support.Doug Evans2-1/+12
2010-01-12*** empty log message ***gdbadmin1-1/+1
2010-01-11daily updateAlan Modra1-1/+1
2010-01-112010-01-11 Doug Kwan <dougkwan@google.com>Doug Kwan3-4/+13
* Makefile.am (incremental_dump_DEPENDENCIES): Add libintl dependency. (incremental_dump_LDADD): Add linking option for libintl. * Makefile.in: Regenerate.
2010-01-11gdb/Jan Kratochvil2-0/+9
* NEWS: Document the 0b binary number prefix parsing.
2010-01-11merge from gccDJ Delorie5-108/+279
2010-01-11Use --dyn-syms instead of -DsH.J. Lu3-2/+9
2010-01-11 H.J. Lu <hongjiu.lu@intel.com> PR gold/11144 * testsuite/Makefile.am (dynamic_list.stdout): Use --dyn-syms instead of -Ds. * testsuite/Makefile.in: Regenerated.
2010-01-11gdb/Jan Kratochvil2-6/+19
* objfiles.c (objfile_relocate1): Change the return type to int. Describe the new return value. Return non-zero if data changed. (objfile_relocate): New variable changed. Set it. Call breakpoint_re_set depending on CHANGED.
2010-01-11gdb/Jan Kratochvil4-1/+35
Implement binary numbers parsing. * c-exp.y (parse_number): New case 'b' and 'B'. gdb/testsuite/ Implement binary numbers parsing. * gdb.base/printcmds.exp (test_integer_literals_accepted) (test_integer_literals_rejected): New binary tests.
2010-01-11gdb/Jan Kratochvil2-2/+8
* solib.c (info_sharedlibrary_command): Replace objfile_has_partial_symbols and objfile_has_full_symbols calls by objfile_has_symbols.
2010-01-112010-01-11 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+15
* mach-o.h: Add x86-64 relocation types.
2010-01-112010-01-11 Tristan Gingold <gingold@adacore.com>Tristan Gingold5-2/+64
* mach-o.h (bfd_mach_o_backend_data): Add arch field. (bfd_mach_o_set_arch_mach): New prototype. * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject. (bfd_mach_o_set_arch_mach): New function. (bfd_mach_o_gen_mkobject): New function. Set TARGET_ARCHITECTURE for the generic back-ends. * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define. Check that TARGET_ARCHITECTURE is defined. Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure. * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
2010-01-112010-01-11 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-0/+22
* archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
2010-01-11Add --dyn-syms to readelfH.J. Lu6-11/+79
binutils/ 2010-01-11 H.J. Lu <hongjiu.lu@intel.com> PR ld/11146 * NEWS: Mention --dyn-syms for readelf. * readelf.c (do_dyn_syms): New. (OPTION_DYN_SYMS): Likewise. (options): Add "dyn-syms". (usage): Add --dyn-syms. (parse_args): Handle OPTION_DYN_SYMS. (process_symbol_table): Handle do_dyn_syms. (process_object): Likewise. (process_archive): Likewise. * doc/binutils.texi: Document --dyn-syms for readelf. Mention symbol hash tables for -D. ld/testsuite/ 2010-01-11 H.J. Lu <hongjiu.lu@intel.com> PR ld/11146 * ld-elf/dynsym1.d: New.
2010-01-11 * elf32-v850.c (v850_elf_perform_relocation): Fix overflowNick Clifton2-1/+6
handling of R_V850_HI16_S relocation.
2010-01-11 * NEWS: Mention addition of elfedit.Nick Clifton2-0/+4
2010-01-11* po/fi.po: Updated Finnish translation.Nick Clifton2-1779/+2430
2010-01-11 PR 11103Alan Modra2-3/+8
* dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
2010-01-11update copyright dateAlan Modra1-1/+1
2010-01-11 PR 6832Alan Modra2-1/+12
* dwarf2.c (struct comp_unit): Add sec_info_ptr. (find_abstract_instance_name): Use it. (parse_comp_unit): Set it.
2010-01-112010-01-10 Doug Kwan <dougkwan@google.com>Doug Kwan2-1/+12
* options.h (DEFINE_var): Use parentheses around argument varname__ in macro body to avoid any unintended subsequent substitutions.
2010-01-11 * resolve.cc (Symbol_table::resolve): Add symbols to list of ODRIan Lance Taylor2-32/+35
candidates before doing symbol resolution.
2010-01-11 * resolve.cc (Symbol_table::resolve): Add symbols to the list ofIan Lance Taylor2-5/+12
ODR candidates if only one is weak.
2010-01-11*** empty log message ***gdbadmin1-1/+1
2010-01-10daily updateAlan Modra1-1/+1
2010-01-10Document the improvements made to the mips-irix port.Joel Brobecker2-0/+22
* NEWS: Document the improvements made to the mips-irix port.
2010-01-10Return dgs.alc on successH.J. Lu2-1/+6
2010-01-09 Ian Lance Taylor <iant@google.com> PR other/42230 * cp-demangle.c (d_demangle): Return dgs.alc on success.
2010-01-10*** empty log message ***gdbadmin1-1/+1
2010-01-09daily updateAlan Modra1-1/+1
2010-01-09Sync Libtool from GCC.Ralf Wildenhues73-4894/+6583
/: * libtool.m4: Sync from git Libtool. * ltmain.sh: Likewise. * ltoptions.m4: Likewise. * ltversion.m4: Likewise. * lt~obsolete.m4: Likewise. sim/iq2000/: * configure: Regenerate. sim/d10v/: * configure: Regenerate. sim/m32r/: * configure: Regenerate. sim/frv/: * configure: Regenerate. sim/: * avr/configure: Regenerate. * cris/configure: Regenerate. * microblaze/configure: Regenerate. sim/h8300/: * configure: Regenerate. sim/mn10300/: * configure: Regenerate. sim/erc32/: * configure: Regenerate. sim/arm/: * configure: Regenerate. sim/m68hc11/: * configure: Regenerate. sim/lm32/: * configure: Regenerate. sim/sh64/: * configure: Regenerate. sim/v850/: * configure: Regenerate. sim/cr16/: * configure: Regenerate. sim/moxie/: * configure: Regenerate. sim/m32c/: * configure: Regenerate. sim/mips/: * configure: Regenerate. sim/mcore/: * configure: Regenerate. sim/sh/: * configure: Regenerate. gprof/: * Makefile.in: Regenerate. * configure: Regenerate. opcodes/: * Makefile.in: Regenerate. * configure: Regenerate. gas/: * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. ld/: * configure: Regenerate. gdb/testsuite/: * gdb.cell/configure: Regenerate. binutils/: * Makefile.in: Regenerate. * configure: Regenerate. * doc/Makefile.in: Regenerate. bfd/: * Makefile.in: Regenerate. * configure: Regenerate. bfd/doc/: * Makefile.in: Regenerate.
2010-01-09Fix the documentation of valprint.c:value_print.Joel Brobecker2-4/+12
* valprint.c (value_print): Update the function description to mention that the syntax of the output follows the current_language, not necessarily C.
2010-01-09gdb/Jan Kratochvil5-50/+86
Fix displacement of separate debug info files. * objfiles.c (objfile_relocate): Rename to ... (objfile_relocate1): ... here and make it static. Extend the comment. (objfile_relocate): New function. * solib-spu.c (spu_relocate_main_executable): Explicitly check if SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain. Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now allocated using alloca. * symfile.c (copy_section_addr_info): Remove. (build_section_addr_info_from_objfile): Make it global. New variables addr_bit and mask, use them. * symfile.h (build_section_addr_info_from_objfile): New prototype. (copy_section_addr_info): Remove.
2010-01-09 * script.cc (Version_script_info::build_expression_list_lookup):Ian Lance Taylor2-6/+24
Don't warn about ambiguous version, just record the ambiguity. (Version_script_info::get_symbol_version_helper): Give error if version is ambiguous.
2010-01-09Fix patch ownership in ChangeLog entry.Joel Brobecker1-1/+1
2010-01-09 Signal unwinder for mips-irix N32.Joel Brobecker2-1/+164
* mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and tramp-frame.h. (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF) (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF) (SIGCONTEXT_LO_OFF): New macros. (mips_irix_n32_tramp_frame_init): New function. (mips_irix_n32_tramp_frame): New static constant. (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
2010-01-09Breakpoint in shared library does not work on mips-irix.Joel Brobecker2-1/+28
* procfs.c: #include "observer.h". (procfs_inferior_created): New function, moving here the code which unsets the syssgi syscall-exit notifications. (procfs_create_inferior): Remove the code which unsets the syssgi syscall-exit notifications. It is too early to do this here. (_initialize_procfs): Attach the procfs_inferior_created observer.
2010-01-09Wrong return convention for arrays (mips-irix).Joel Brobecker2-5/+12
* mips-tdep.c (mips_n32n64_return_value): Arrays whose size is 128 bits or smaller are returned the same way as structs and unions of the the same size.
2010-01-09Cannot set the PC on mips-irix.Joel Brobecker2-1/+7
* irix5-nat.c (fill_gregset): Check regno against the raw PC register number, no the cooked one.
2010-01-09Error while loading core file on mips-irix.Joel Brobecker2-0/+11
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing if debugging from a core file.
2010-01-09GDB hangs when attaching to process on mips-irix.Joel Brobecker2-1/+13
* solib-irix.c (irix_solib_create_inferior_hook): Do nothing if attaching to a process.
2010-01-09 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variableJoel Brobecker2-0/+12
containing the correct breakpoint instruction to use on mips-irix. Use it when the osabi is GDB_OSABI_IRIX.
2010-01-09-Wunused warning in procfs.c (mips-irix only).Joel Brobecker2-7/+22
* procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them throughout instead of using praddset and prdelset respectively.
2010-01-09GDB crash while stepping into function.Joel Brobecker2-0/+12
* infrun.c (handle_inferior_event): Refetch the current frame after handling what.main_action, in case that pointer became dangling.
2010-01-09 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.Joel Brobecker3-3/+7
2010-01-09 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.Joel Brobecker2-1/+6
2010-01-092010-01-08 Doug Kwan <dougkwan@google.com>Doug Kwan2-84/+326
* arm.cc (Stub_table::Stub_table): Initalize cortex_a8_stubs_, prev_data_size_ and prev_addralign_. Remove initializer for deleted data member has_been_changed_. (Stub_table::empty): Look at both reloc_stubs_ and cortex_a8_stubs_ to determine if the table is empty. (Stub_table::has_been_changed, Stub_table_set_has_been_changed): Remove. (Stub_table::add_reloc_stub): Define method in class definition instead of just declaring it there. (Stub_table::add_cortex_a8_stub): New method definition. (Stub_table::update_data_size_and_addralign): Ditto. (Stub_table::finalize_stubs): Ditto. (Stub_table::apply_cortex_a8_workaround_to_address_range): Ditto. (Stub_table::do_addralign_): Return address alignment in the (Stub_table::do_reset_address_and_file_offset): Define method in class definition instead of declaring it there. Set current data size to be the data size of the previous pass. (Stub_table::set_final_data_size): Use current data size as the final data size. (Stub_table::relocate_stub): Change parameter type of stub from Reloc_stub pointer to Stub pointer. (Stub_table::addralign_, Stub_table::has_been_changed_): Remove. (Stub_table::Cortex_a8_stub_list): New typedef. (Stub_table::cortex_a8_stubs_, Stub_table::prev_data_size_, Stub_table::prev_addralign_): New data member. (Arm_relobj::Arm_relobj): Initialize data member section_has_cortex_a8_workaround_. (Arm_relobj::section_has_cortex_a8_workaround, Arm_relobj::mark_section_for_cortex_a8_workaround): New method definitions. (Arm_relobj::section_has_cortex_a8_workaround_): New data member declarations. (Target_arm::relocate_stub): Change parameter type of stub from Reloc_stub pointer to Stub pointer. (Insn_template::size, Insn_template::alignment): Handle THUMB16_SPECIAL_TYPE. (Stub_table::remove_all_cortex_a8_stubs, Stub_table::finalize_stubs, Stub_table::update_data_size_and_addralign, Stub_table::apply_cortex_a8_workaround_to_address_range): New method definitions. (Stub_table::relocate_stubs): Handle Cortex-A8 stubs. (Stub_table::do_write): Ditto. (Target_arm::do_relax): Adjust code for changes in Stub_table.
2010-01-09gdb/testsuite/Jan Kratochvil3-70/+93
* gdb.base/corefile.exp: Move the core finding block out and call it as core_find, new variable $corefile, replace corefile by $corefile and [file tail $corefile] for usage vs. test names resp. * lib/gdb.exp (core_find): Move it as a new function here. New parameter binfile and deletefiles. New variable $destcore. Pre-delete $destcore. Return "" on error.