aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2012-10-262012-10-26 Pedro Alves <palves@redhat.com>Pedro Alves2-5/+5
* infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>: Remove comment.
2012-10-26 * gdb.texinfo (General Query Packets): Use @itemx for QAgent.Tom Tromey2-1/+5
2012-10-262012-10-26 Pedro Alves <palves@redhat.com>Pedro Alves2-0/+7
* target.c (target_waitstatus_to_string): Handle TARGET_WAITKIND_VFORK_DONE.
2012-10-262012-10-26 Pedro Alves <palves@redhat.com>Pedro Alves2-1/+11
* infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2012-10-26 * po/hr.po: New Croation translation.Nick Clifton6-112/+8004
* configure.in (ALL_LINGUAS): Add hr. * configure: Regenerate. * po/uk.po: Updated Ukranian translation.
2012-10-26 * dwarf2.h (DW_AT_APPLE_optimized, DW_AT_APPLE_flags)Nick Clifton2-0/+24
(DW_AT_APPLE_isa, DW_AT_APPLE_block) (DW_AT_APPLE_major_runtime_vers, DW_AT_APPLE_runtime_class) (DW_AT_APPLE_omit_frame_ptr, DW_AT_APPLE_property_name) (DW_AT_APPLE_property_getter, DW_AT_APPLE_property_setter) (DW_AT_APPLE_property_attribute, DW_AT_APPLE_objc_complete_type) (DW_AT_APPLE_property, DW_OP_GNU_entry_value): New macros.
2012-10-262012-10-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>Andreas Krebbel14-678/+744
* s390-mkopc.c: Accept empty lines in s390-opc.txt. * s390-opc.c: Add M_20OPT field. New instruction formats RRF_RURR2 and RRF_RMRR. * s390-opc.txt: Add new instructions. New instruction type for lptea. 2012-10-26 Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * gas/testsuite/gas/s390/zarch-z10.d: Refreshed. * gas/testsuite/gas/s390/zarch-z10.s: Refreshed. * gas/testsuite/gas/s390/zarch-z196.d: Refreshed. * gas/testsuite/gas/s390/zarch-z196.s: Refreshed. * gas/testsuite/gas/s390/zarch-z9-109.d: Refreshed. * gas/testsuite/gas/s390/zarch-z990.d: Refreshed. * gas/testsuite/gas/s390/zarch-z990.s: Refreshed. * gas/testsuite/gas/s390/zarch-zEC12.d: Refreshed. * gas/testsuite/gas/s390/zarch-zEC12.s: Refreshed.
2012-10-26gas/testsuite:Christian Groessler7-61/+101
* gas/z8k/z8k.exp: Run translate-ops test. * gas/z8k/translate-ops.s: New file. * gas/z8k/translate-ops.d: New file. opcodes: * z8kgen.c (struct op): Fix encoding for translate opcodes (trdb, trdrb, trib, trirb, trtdb, trtdrb, trtib, trtirb). Remove non-existing opcode trtrb. * z8k-opc.h: Regenerate.
2012-10-26 PR target/14758Alan Modra4-3/+93
bfd/ * elf32-ppc.c (ppc_elf_reloc_type_lookup): Decode ppc64 _DS bfd_reloc values. Map to corresponding D-form relocs. (is_insn_ds_form, is_insn_qs_form): New functions. (ppc_elf_relocate_section): Validate insn with DS-form or DQ-form fields using D-form reloc. gas/ * config/tc-ppc.c (ppc_setup_opcodes): Fix comment. (md_assemble): Translate to _DS relocs for ppc32 as well as ppc64. (tc_gen_reloc): Handle _DS relocs in ppc32 mode.
2012-10-26 * gas/ppc/power4.s: Fix invalid lq offsets.Alan Modra3-92/+81
* gas/ppc/power4.d: Update.
2012-10-26 * ppc-opc (powerpc_opcodes): "lfdp" and "stfdp" use DS offset.Alan Modra2-2/+6
2012-10-26Add final_layout_sequence.txt to MOSTLYCLEANFILESH.J. Lu3-1/+8
* testsuite/Makefile.am (MOSTLYCLEANFILES): Add final_layout_sequence.txt. * testsuite/Makefile.in: Regenerated.
2012-10-26*** empty log message ***gdbadmin1-1/+1
2012-10-25daily updateAlan Modra1-1/+1
2012-10-25Strip out -Wp,-D_FORTIFY_SOURCE= for gold testsH.J. Lu3-7/+54
* testsuite/Makefile.am (COMPILE1): New variable. Renamed from COMPILE generated by automake. (LINK1): Likewise. (CXXCOMPILE1): Likewise. (CXXLINK1): Likewise. (COMPILE): Strip out -Wp,-D_FORTIFY_SOURCE= from COMPILE1. (LINK): Likewise. (CXXCOMPILE): Likewise. (CXXLINK): Likewise. * testsuite/Makefile.in: Regenerated.
2012-10-25Issue a fatal error on bad fwrite returnH.J. Lu2-1/+8
* dwp.cc (Dwo_file::record_target_info): Issue a fatal error on bad fwrite return.
2012-10-25Use section_offset_type in remap_str_offsetH.J. Lu2-2/+7
* dwp.cc (Dwo_file::remap_str_offset): Use section_offset_type on val.
2012-10-25 * gdb.texinfo (General Query Packets): Use @itemx.Tom Tromey2-7/+11
2012-10-25gdb/testsuite:Yao Qi4-13/+12
* gdb.trace/ftrace.exp (test_fast_tracepoints): Use 'setup_kfail' instead of 'setup_kfail_for_target'. * gdb.base/varargs.exp: Likewise. * lib/gdb.exp (setup_kfail_for_target): Remove.
2012-10-25Replace _GLOBAL_OFFSET_TABLE_ lookup with htab->elf.hgotH.J. Lu3-14/+10
* elf32-i386.c (elf_i386_size_dynamic_sections): Replace _GLOBAL_OFFSET_TABLE_ lookup with htab->elf.hgot. * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
2012-10-25gdb.base/ldbl_e308.exp: Do not allow "inf" in value output.Joel Brobecker1-1/+1
That was an attempt at handling the targets where sizeof(long double) is less than 8, but the way it was implement allows the bug that this testcase verifies to come back without being noticed. gdb/testsuite/ChangeLog: * gdb.base/ldbl_e308.exp: Remove "inf" from possible expected output for "print inp" test.
2012-10-25* gdb.base/varargs.exp: PR gdb/12790 is now fixed.Mark Kettenis2-3/+4
2012-10-25* gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.Mark Kettenis2-2/+4
2012-10-25Remove address check if HIDDEN_UNDEF_TEST is definedH.J. Lu2-2/+9
* ld-elfvsb/main.c (main_visibility_checkcom): Remove address check for visibility_def if HIDDEN_UNDEF_TEST is defined. (main_visibility_checkweak): Remove address check for visibility_func if HIDDEN_UNDEF_TEST is defined.
2012-10-25*** empty log message ***gdbadmin1-1/+1
2012-10-24 * ld-scripts/empty-aligned.d: Revert last change. Allow moreAlan Modra3-8/+10
than one header, just not two PT_LOAD. * ld-elf/stack.s: Use .long 0 rather than nops.
2012-10-24daily updateAlan Modra1-1/+1
2012-10-24gas/testsuite/Roland McGrath6-58/+80
* gas/i386/rex.s: Add test of REX prefix before fsave (i.e. fwait). * gas/i386/rex.d: Update. opcodes/ * i386-dis.c (ckprefix): When bailing out for fwait with prefixes, set rex_used to rex.
2012-10-24Don't decompress the section in bfd_is_section_compressedH.J. Lu2-2/+16
* compress.c (bfd_is_section_compressed): Don't decompress the section.
2012-10-24Add comments in ravenscar_sparc_fetch_registers.Joel Brobecker2-0/+9
gdb/ChangeLog: * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers): Add comments.
2012-10-24remote packet sent after Ravenscar inferior exitedJoel Brobecker2-2/+18
When debugging a program using the Ravenscar profile, the debugger sometimes tries to send the following packet to the remote after the inferior exited. (gdb) c Continuing. [...] Sending packet: $vCont;c:1#13...Ack Packet received: W00 Sending packet: $Hg1#e0...putpkt: write failed: Broken pipe. As the inferior exited, the remote has already disconnected, and thus the operation fails. The reason why GDB sends the package is because the ravenscar-thread module tries to updates the list of threads. But this doesn't make sense, since the program has exited. This patch fixes it. gdb/ChangeLog: * ravenscar-thread.c (ravenscar_wait): Only update the list of threads and inferior_ptid if the inferior is still alive.
2012-10-24[Ada] use lbasename when testing if file is part of Ada runtime.Joel Brobecker2-1/+7
We use a list of regular expressions to match a symtab filenames against the names of the files in the Ada runtime. These regular expressions do assume that the filename is a basename, however. So make sure to evaluate these regular expressions against the symtab's filename. Without this patch, we run into problems when the Ada runtime was built using a project file (through gprbuild). gdb/ChangeLog: * ada-lang.c (is_known_support_routine): Use lbasename when matching the symtab's filename against known_runtime_file_name_patterns.
2012-10-24[Ada] Allow assignment to wide string.Joel Brobecker7-3/+233
Given the following variable declaration... Www : Wide_String := "12345"; ... this patch allows the following assignment to work: (gdb) set variable www := "qwert" Without this patch, the debugger rejects the assignment because the size of the array elements are different: (gdb) set www := "asdfg" Incompatible types in assignment (on the lhs, we have an array of 2-bytes elements, and on the rhs, we have a standard 1-byte string). gdb/ChangeLog: * ada-lang.c (ada_same_array_size_p): New function. (ada_promote_array_of_integrals): New function. (coerce_for_assign): Add handling of arrays where the elements are integrals of a smaller size than the size of the target array element type. gdb/testsuite/ChangeLog: * gdb.ada/set_wstr: New testcase.
2012-10-24off-by-one max exponent computation in convert_doublest_to_floatformatJoel Brobecker5-1/+67
Assuming the following variable definition: long double inp = 2.0; On platforms where "long double" is a double precision IEEE flaoting point, GDB currently behaves as follow: (gdb) set variable inp = 1.6e+308l (gdb) p inp $2 = inf <<<<---- !!!! Instead, the value of "inp" should be printed as: (gdb) p inp $1 = 1.6e+308 The problem is due to a small error in the comparison of the exponent versus the maximum value this exponent can take, causing us to think that the value was too big to fit. But it isn't. gdb/ChangeLog: * doublest.c (convert_doublest_to_floatformat): Fix comparison against maximum exponent value. gdb/testsuite/ChangeLog: * gdb.base/ldbl_e308.c, gdb.base/ldbl_e308.exp: New files.
2012-10-24[Ada] Skip unwind-seh.c when searching first "user" frameJoel Brobecker2-0/+6
On x86_64-windows with GCC 4.7 (using native SEH info), the debugger behaves as follow: (gdb) catch exception unhandled Catchpoint 1: unhandled Ada exceptions (gdb) run Starting program: C:\[...]\b.exe Catchpoint 1, unhandled CONSTRAINT_ERROR at 0x000000000040cc57 in _GCC_specific_handler ([...]) at ../../../src/libgcc/unwind-seh.c:289 [...] This is after compiler the following code: procedure B is begin raise Constraint_Error; end B; ... using the following command: % gnatmake -g b When hitting the exception catchpoint, it should have gone up the stack all the way until finding the frame corresponding to procedure B. But if stopped short because unwind-seh.c is compiled with debugging information, and the debugger is also able to locate that source file. To prevent this from happening, this patch adds unwind-seh.c to the list of files that should be ignored, regardless of other factors. gdb/ChangeLog: * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for "unwind-seh.c".
2012-10-24[Ada] Pointers to unconstrained arrays inside variant record.Joel Brobecker7-14/+209
gdb/ChangeLog: * ada-lang.c (ada_template_to_fixed_record_type_1): Do not strip typedef layer when computing the fixed type's field type, only when computing its size. gdb/testsuite/ChangeLog: * gdb.ada/unc_arr_ptr_in_var_rec: New testcase.
2012-10-24* gdb.base/callfuncs.exp: PR gdb/12783 is now fixed.Mark Kettenis2-6/+4
2012-10-24PR gdb/12783Mark Kettenis2-0/+9
* i386-tdep.c (i386_return_value): Handle complex double and long double.
2012-10-24gdb/testsuite/Jan Kratochvil2-2/+11
* gdb.base/callfuncs.exp (do_function_calls): Fix setup_kfail_for_target for -m32 mode.
2012-10-24 * configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for buildingCorinna Vinschen3-2/+8
against Mingw64 w32api. * configure: Regenerate.
2012-10-24[Windows] run program with space in path to exe.Joel Brobecker2-4/+14
The following works... % gdb c:\path to exe\foo.exe (gdb) start ... unless a file or directory called "c:\path" or "c:\path to" exist. This is what happens in the latter case: (gdb) start [...] Error creating process C:\path to exe\foo.exe (error 193). This is because we are calling CreateProcess (et al) without specifying the lpApplicationName, so Windows determines the name of the executable using the second argument, which is the entire command line. This command line is a space-separated list of tokens, so the space in the path to the executable which potentially creates an ambiguity. The ambiguity is automatically resolved unless we're in the situation above. The solution, as suggested by the MSDN documentation for CreateProcess is to quote the executable name. gdb/ChangeLog: * windows-nat.c (windows_create_inferior) [!__CYGWIN__]: New local variable args_len. Quote the name of the executable when computing the command line.
2012-10-24Don't set bfdtest1 with findfileH.J. Lu2-1/+5
* binutils-all/ar.exp (bfdtest1): Remove findfile.
2012-10-24Move disable_target_specific_optimizations to bfd_link_infoH.J. Lu6-25/+54
include/ * bfdlink.h (bfd_link_info): Add disable_target_specific_optimizations. ld/ * ld.h (command_line): Remove disable_target_specific_optimizations. (RELAXATION_DISABLED_BY_DEFAULT): Removed. (RELAXATION_DISABLED_BY_USER): Likewise. (RELAXATION_ENABLED): Likewise. (DISABLE_RELAXATION): Likewise. (ENABLE_RELAXATION): Likewise. * ldmain.c (main): Updated. * ldmain.h (RELAXATION_DISABLED_BY_DEFAULT): New macro. (RELAXATION_DISABLED_BY_USER): Likewise. (RELAXATION_ENABLED): Likewise. (DISABLE_RELAXATION): Likewise. (ENABLE_RELAXATION): Likewise.
2012-10-24gold/Cary Coutant14-2/+7091
* testsuite/Makefile.am (TEST_OBJCOPY): New macro. * testsuite/Makefile.in: Regenerate. * testsuite/dwp_test.h: New source file. * testsuite/dwp_test_1.cc: New source file. * testsuite/dwp_test_1.s: New source file. * testsuite/dwp_test_1.sh: New source file. * testsuite/dwp_test_1b.cc: New source file. * testsuite/dwp_test_1b.s: New source file. * testsuite/dwp_test_2.cc: New source file. * testsuite/dwp_test_2.s: New source file. * testsuite/dwp_test_2.sh: New source file. * testsuite/dwp_test_main.cc: New source file. * testsuite/dwp_test_main.s: New source file.
2012-10-24gold/Cary Coutant7-153/+2451
* dwp.h: New header file. * dwp.cc: New source file. * gold.h: Move shared declarations to system.h. * system.h: New header file. * Makefile.am: Add dwp. * Makefile.in: Regenerate.
2012-10-24binutils/Cary Coutant5-50/+326
* dwarf.c (do_debug_addr, do_debug_cu_index): New global flags. (load_debug_info): Fix typo. (cu_tu_indexes_read, shndx_pool, shndx_pool_size, shndx_pool_used): New global variables. (prealloc_cu_tu_list, add_shndx_to_cu_tu_entry, end_cu_tu_entry) (process_cu_tu_index, load_cu_tu_indexes, find_cu_tu_set) (display_cu_index): New functions. (dwarf_select_sections_by_names): Add "debug_addr", "cu_index". Sort entries alphabetically. (dwarf_select_sections_all): Set do_debug_addr, do_debug_cu_index. (debug_displays): Add .debug_cu_index, .debug_tu_index. Clean up formatting. * dwarf.h (dwarf_section_display_enum): Add dwp_cu_index, dwp_tu_index. (do_debug_addr, do_debug_cu_index): New global flags. (find_cu_tu_set): New function declaration. * objdump.c (usage): Add --dwarf=addr, --dwarf=cu_index. * readelf.c (find_section_in_set): New function. (usage): Add --debug-dump=addr, --debug_dump=cu_index. (process_section_headers): Check do_debug_addr and do_debug_cu_index. (section_subset): New global variable. (load_debug_section): Restrict search to section subset. (display_debug_section): Add section index as paramter. Select subset of sections when dumping a .dwp file. Update caller.
2012-10-24*** empty log message ***gdbadmin1-1/+1
2012-10-23 PR bootstrap/54820Eric Botcazou3-1/+15
* configure.ac (have_static_libs): Force 'no' for GCC version < 4.5. * configure: Regenerate.
2012-10-23daily updateAlan Modra1-1/+1
2012-10-23gold/Cary Coutant4-36/+101
* dwarf_reader.cc (Dwarf_ranges_table::read_range_list): Call Dwarf_info_reader::read_from_pointer. (Dwarf_pubnames_table::read_header): Likewise. (Dwarf_pubnames_table::next_name): Likewise. (Dwarf_die::read_attributes): Likewise. (Dwarf_die::skip_attributes): Likewise. (Dwarf_info_reader::read_from_pointer): New function template. * dwarf_reader.h (Dwarf_ranges_table): Add dwinfo_. (Dwarf_pubnames_table): Likewise. (Dwarf_info_reader::read_from_pointer): New function template. * gdb-index.cc (Gdb_index_info_reader): Adjust call to Dwarf_pubnames_table ctor.