aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-01-07Automatic date update in version.inGDB Administrator1-1/+1
2015-01-06Handle stack split for x32H.J. Lu12-16/+357
X32 uses cmp %fs:NN,%esp, lea NN(%rsp),%r10d, lea NN(%rsp),%r11d, instead of cmp %fs:NN,%rsp, lea NN(%rsp),%r10, lea NN(%rsp),%r11. This patch handles it. PR gold/17729 * configure.ac (DEFAULT_TARGET_X86_64): Don't set for x32. (DEFAULT_TARGET_X32): Set for x32. * x86_64.cc (cmp_insn_32): New. (lea_r10_insn_32): Likewise. (lea_r11_insn_32): Likewise. (cmp_insn_64): Likewise. (lea_r10_insn_64): Likewise. (lea_r11_insn_64): Likewise. (Target_x86_64<size>::do_calls_non_split): Handle x32. * testsuite/Makefile.am (check_SCRIPTS): Add split_x32.sh. (check_DATA): Add split_x32 files. (split_x32_[1234n].o): New targets. (split_x32_[124]): New targets. (split_x32_[1234r].stdout): New targets. * testsuite/split_x32.sh: New file. * testsuite/split_x32_1.s: Likewise. * testsuite/split_x32_2.s: Likewise. * testsuite/split_x32_3.s: Likewise. * testsuite/split_x32_4.s: Likewise. * testsuite/split_x32_n.s: Likewise. * configure: Regenerated. * testsuite/Makefile.in: Likewise.
2015-01-06Another fix for an objdump crash when parsing a corrupt binary.Nick Clifton2-1/+6
PR binutils/17512 * mach-o.c (bfd_mach_o_read_symtab_strtab): Zero terminate the string table.
2015-01-06Handle Initial-Exec to Local-Exec for x32H.J. Lu2-0/+12
PR gold/17809 * x86_64.cc (Target_x86_64<size>::Relocate::tls_ie_to_le): Handle x32.
2015-01-06Fix memory access violations for objdump triggered by fuzzed binaries.Nick Clifton2-5/+12
PR binutils/17512 * reloc.c (bfd_get_reloc_size): Handle a reloc size of -1. (bfd_perform_relocation): Include the size of the reloc in the test for an out of range relocation. (bfd_generic_get_relocated_section_contents): Remove reloc range test.
2015-01-06Fixes a buffer overflow when compiling assembler for the MinGW targets.Alan Modra2-1/+11
PR binutils/17754 * internal.h (internal_auxent): Increase size of x_fname field to 20 to allow for PE format's longer file names.
2015-01-06Fixes for memory access violations in the coffdump program.Nick Clifton8-277/+421
PR binutils/17512 * coffdump.c (dump_coff_section): Check for a symbol being available before printing its name. (main): Check the return value from coff_grok. * coffgrok.c: Reformat and tidy. Add range checks to most functions. (coff_grok): Return NULL if the input bfd is not in a COFF format. * coffgrok.h: Reformat and tidy. (struct coff_section): Change the nrelocs field to unsigned. * srconv.c (main): Check the return value from coff_grok. * coff-i860.c (CALC_ADDEND): Always set an addend value. * tekhex.c (getvalue): Add an end pointer parameter. Use it to avoid reading off the end of the buffer. (getsym): Likewise. (first_phase): Likewise. (pass_over): Pass an end pointer to the invoked function.
2015-01-06gdb/guile: Do not error when trying to create empty array.Joel Brobecker2-1/+6
This fixes a similar error as in the Python support code where trying to create an empty array. In guile/scm-type.c::tyscm_array_1, the funtion raises an exception if N2 < N1: if (n2 < n1) { gdbscm_out_of_range_error (func_name, SCM_ARG3, But it should be doing so if N2 == N1 - 1, since that would simply be an empty array, not an array with a negative length. gdb/ChangeLog: * guile/scm-type.c (tyscm_array_1): Do not raise out-of-range error if N2 is equal to N1 - 1.
2015-01-06gdb/python: exception trying to create empty arrayJoel Brobecker4-1/+17
The following python command fails: (gdb) python print gdb.lookup_type('char').array(1, 0) Traceback (most recent call last): File "<string>", line 1, in <module> ValueError: Array length must not be negative Error while executing Python code. The above is trying to create an empty array, which is fairly command in Ada. gdb/ChangeLog: * python/py-type.c (typy_array_1): Do not raise negative-length exception if N2 is equal to N1 - 1. gdb/testsuite/ChangeLog: * gdb.python/py-type.exp: Add a couple test about empty array creation, and negative-length array creation.
2015-01-05Return NULL on corrupt inputH.J. Lu3-3/+16
PR binutils/17512 * elf32-i386.c (elf_i386_get_plt_sym_val): Return NULL on corrupt input. * elf64-x86-64.c (elf_x86_64_get_plt_sym_val): Likewise.
2015-01-06Automatic date update in version.inGDB Administrator1-1/+1
2015-01-05More fixes for invalid memory accesses triggered by fuzzed binaries.Nick Clifton9-39/+150
PR binutils/17512 * nm.c (print_symbol): Add 'is_synthetic' parameter. Use it to help initialize the info.elfinfo field. (print_size_symbols): Add 'synth_count' parameter. Use it to set the is_synthetic parameter when calling print_symbol. (print_symbols): Likewise. (display_rel_file): Pass synth_count to printing function. (display_archive): Break loop if the last archive displayed matches the current archive. * size.c (display_archive): Likewise. * archive.c (do_slurp_bsd_armap): Make sure that the parsed sized is at least big enough for the header to be read. * elf32-i386.c (elf_i386_get_plt_sym_val): Skip unknown relocs. * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add range checks. (bfd_mach_o_read_command): Prevetn duplicate error messages about unrecognized commands. * syms.c (_bfd_stab_section_find_nearest_line): Add range checks when indexing into the string table.
2015-01-05More fixes for invalid memory accesses triggered by fuzzed binaries.Nick Clifton4-58/+180
PR binutils/17531 * dwarf.c (alloc_num_debug_info_entries): New variable. (process_debug_info): Set it. Use it to avoid displaying attributes for which there is no info. (display_debug_abbrev): Check that the debug_info_entry index is valid before using it. (display_loc_list_dwo): Likewise. (process_cu_tu_index): Add range check for an overlarge dw_sect value. (free_debug_memory): Reset alloc_num_debug_info_entries. * readelf.c (slurp_ia64_unwind_table): Warn if the reloc could not be indentified. (dynamic_section_mips_val): Warn if the timestamp is invalid. (print_mips_got_entry): Add a data_end parameter. Warn if a read would go beyond the end of the data, and return an error value. (process_mips_specific): Do not read options from beyond the end of the section. Correct code to display optional data at the end of an option. Warn if there are too many GOT symbols. Update calls to print_mips_got_entry, and handle error returns.
2015-01-05Corrects the description of the --kill-at option of dlltool.Daniel Klauer2-4/+14
PR binutils/17489 * doc/binutils.texi (dlltool): Correct description of --kill-at option.
2015-01-05Automatic date update in version.inGDB Administrator1-1/+1
2015-01-04Automatic date update in version.inGDB Administrator1-1/+1
2015-01-03[GCC bug #63539]: libgo does not use the newly built objcopy when doing a ↵Andrew Pinski6-0/+300
combined build 2015-01-03 Andrew Pinski <apinski@cavium.com> * Makefile.def (flags_to_pass): Pass OBJCOPY_FOR_TARGET also. * Makefile.tpl (HOST_EXPORTS): Add OBJCOPY_FOR_TARGET. (BASE_TARGET_EXPORTS): Add OBJCOPY. (OBJCOPY_FOR_TARGET): New variable. (EXTRA_TARGET_FLAGS): Add OBJCOPY. * Makefile.in: Regenerate. * configure.ac: Check for already installed target objcopy. Also GCC_TARGET_TOOL on objcopy. * configure: Regenerate.
2015-01-03fix spelling of anon-ns2.cc in earlier entry, and whitespace in same entryDoug Evans1-2/+2
2015-01-03c-exp.y: misc cleanup, no code changesDoug Evans2-31/+36
gdb/ChangeLog: * c-exp.y: Whitespace cleanup. (classify_inner_name): Remove extra ;.
2015-01-02gdb.cp/nsalias.exp: Fix output of external/declaration flags.Doug Evans2-6/+10
gdb/testsuite/ChangeLog: * gdb.cp/nsalias.exp: Fix output of external/declaration flags.
2015-01-03Automatic date update in version.inGDB Administrator1-1/+1
2015-01-02MIPS: Make the extracted stack offset signed in the prologue scannerMaciej W. Rozycki2-10/+16
Make the extracted stack offset signed in the standard MIPS prologue scanner, to simplify handling and make sure register offsets are correct in all cases, especially where $fp equals the virtual frame pointer (old GCC frames) and therefore offsets to save slots are negative. * mips-tdep.c (mips32_scan_prologue): Make the extracted stack offset signed.
2015-01-02gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc.Doug Evans2-4/+8
gdb/testsuite/ChangeLog: * gdb.dwarf2/dw4-sig-types.exp: Also pass -fdebug-types-section to gcc.
2015-01-02dwarf2read.c (setup_type_unit_groups): Remove outdated comment.Doug Evans2-1/+4
gdb/ChangeLog: * dwarf2read.c (setup_type_unit_groups): Remove outdated comment.
2015-01-02symtab.h (struct symbol): Fix typo in comment.Doug Evans2-1/+5
gdb/ChangeLog: * symtab.h (struct symbol): Fix typo in comment.
2015-01-02Regenerate Makeile.in file for copyright updateAlan Modra10-10/+10
2015-01-02config.sub, config.guess: Update from upstream, to 2015-01-01 version.Hans-Peter Nilsson3-7/+12
2015-01-02Automatic date update in version.inGDB Administrator1-1/+1
2015-01-02Correct printed year in copyright notices for gold.Alan Modra3-2/+7
2015-01-02Correct printed year in copyright noticesAlan Modra6-3/+15
2015-01-02ChangeLog rotatation and copyright year updateAlan Modra2507-13634/+13808
2015-01-01Update year range in copyright notice of all files owned by the GDB project.Joel Brobecker4354-4358/+4362
gdb/ChangeLog: Update year range in copyright notice of all files.
2015-01-01Update copyright year printed by gdb, gdbserver and gdbreplay.Joel Brobecker5-3/+12
gdb/ChangeLog: * top.c (print_gdb_version): Update copyright year to 2015. gdbserver/ChangeLog: * gdbreplay.c (gdbreplay_version): Update copyright year to 2015. * server.c (gdbserver_version): Likewise.
2015-01-01Yearly gdb/ChangeLog rotation.Joel Brobecker3-16650/+16664
This patch renames gdb/'s ChangeLog to ChangeLog-2014 and creates a new one for 2015. config/djgpp/fnchange.lst is updated accordingly. gdb/ChangeLog: * config/djgpp/fnchange.lst: Add entry for gdb/ChangeLog-2014.
2015-01-01Automatic date update in version.inGDB Administrator1-1/+1
2014-12-31Remove "add-shared-symbol-files", "dll-symbols" and "assf" commands doc.Joel Brobecker4-24/+16
This patch removes documentation from some commands whose support has been recently removed. gdb/ChangeLog: * NEWS: Document removal of "dll-symbols", "add-shared-symbol-files" and "assf" commands. gdb/doc/ChangeLog: * gdb.texinfo (Files): Remove documentation of the "add-shared-symbol-files" and "assf" commands. (Cygwin Native): Remove documentation of the "dll-symbols" command.
2014-12-30Assign file position for .strtab only if neededH.J. Lu5-24/+47
bfd/ PR ld/17773 * elflink.c (bfd_elf_final_link): Assign the file position for the symbol string table only there are symbols to be emitted. ld/testsuite/ PR ld/17773 * ld-elf/binutils.exp (binutils_test): Add an optional readelf_options. Replace -l with $readelf_options. Add a gap test. * ld/testsuite/ld-elf/gap.s: New file.
2014-12-31Automatic date update in version.inGDB Administrator1-1/+1
2014-12-30Fix executable indicator in file name completion on Windows.Eli Zaretskii2-0/+19
* complete.c (stat_char) [_WIN32]: Don't use 'access' and X_OK on Windows, they don't work. Instead, look at the file-name extension to determine whether the file is executable.
2014-12-30Remove "dll-symbols", "add-shared-symbol-files" and assf" commands.Joel Brobecker2-93/+9
This patch removes a set of commands that have been deprecated for a while, and which we agreed to remove after the GDB 7.8 release. gdb/ChangeLog: * windows-nat.c (safe_symbol_file_add_stub) (safe_symbol_file_add_cleanup, safe_symbol_file_add) (dll_symbol_command): Delete. (_initialize_windows_nat): Delete local variable "c". Remove "dll-symbols", "add-shared-symbol-files" and assf" commands. Tested by rebuilding GDB on x86-windows.
2014-12-30Automatic date update in version.inGDB Administrator1-1/+1
2014-12-29Sanitize input_interrupt outputSergio Durigan Junior2-3/+19
Hi, This patch is a follow-up of the following discussions: <https://sourceware.org/ml/gdb-patches/2014-12/msg00421.html> <https://gcc.gnu.org/ml/gcc-patches/2014-12/msg01293.html> input_interrupt is currently emiting non-printable characters, which is confusing the dg-extract-results.sh script. This is obviously not a good thing, and, by following Pedro's advices here: <https://gcc.gnu.org/ml/gcc-patches/2014-12/msg01320.html> I adapted the function to print "client connection closed" when it receives a NUL character, or use the "isprint" function to decide how to print the received char. I tested it by running the testcases that were printing the non-printable chars before: gdb.base/gdb-sigterm.exp gdb.threads/non-ldr-exc-1.exp gdb.threads/non-ldr-exc-2.exp gdb.threads/non-ldr-exc-3.exp gdb.threads/non-ldr-exc-4.exp gdb.threads/thread-execl.exp and confirming that they print the right message. I tried a bit to come up with a testcase for this, but failed, and since I did not want to spend too much time on it, I'm sending the patch anyway. Comments are welcome, as usual. gdb/gdbserver/ChangeLog: 2014-12-29 Sergio Durigan Junior <sergiodj@redhat.com> * remote-utils.c: Include ctype.h. (input_interrupt): Explicitly handle the case when the char received is the NUL byte. Improve the printing of non-ASCII characters.
2014-12-29[PATCH] Remove cast in Tag_ABI_VFP_args switch case stmtsJiong Wang2-4/+9
2014-12-29 Thomas Preud'homme <thomas.preudhomme@arm.com> gdb/ * arm-tdep.c (arm_gdbarch_init): Remove casts in Tag_ABI_VFP_args switch case statements.
2014-12-29Clean up gdb.trace/entry-values.expYao Qi2-9/+14
This patch is to clean up gdb.trace/entry-values.exp as a preparation of the next patch. It updates the comments to reflect the code. One DIE generated in dwarf assembler is GNU_call_site { {low_pc "$bar_start + $bar_call_foo" addr} {abstract_origin :$foo_label} the DW_AT_low_pc attribute is the return address after the call, so I rename variable bar_call_foo to returned_from_foo. gdb/testsuite: 2014-12-29 Yao Qi <yao@codesourcery.com> * gdb.trace/entry-values.exp: Update comments. Rename variable bar_call_foo to returned_from_foo.
2014-12-29Add moxiebox target supportAnthony Green2-1/+5
2014-12-29Automatic date update in version.inGDB Administrator1-1/+1
2014-12-28Misplaced parenthesis calculates two too few bytes for stringAlan Modra2-3/+10
Factor out strlen to give better code and less likelihood of a repeat of this problem. PR 17766 * pei-x86_64.c (pex64_bfd_print_pdata_section): Correct string length. Use memcpy rather than strcpy.
2014-12-28Fix small spelling mistake in gdb/ChangeLog.Joel Brobecker1-1/+1
2014-12-28Automatic date update in version.inGDB Administrator1-1/+1
2014-12-27Update for moxie ISA changesAnthony Green2-29/+51