summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Pull in changes from HEADcygwin-64bit-branchCorinna Vinschen2012-10-240-0/+0
|
* gdb/testsuite/Jan Kratochvil2012-10-242-2/+11
| | | | | * gdb.base/callfuncs.exp (do_function_calls): Fix setup_kfail_for_target for -m32 mode.
* * configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for buildingCorinna Vinschen2012-10-243-2/+8
| | | | | against Mingw64 w32api. * configure: Regenerate.
* [Windows] run program with space in path to exe.Joel Brobecker2012-10-242-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.
* Move disable_target_specific_optimizations to bfd_link_infoH.J. Lu2012-10-242-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | 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.
* *** empty log message ***gdbadmin2012-10-241-1/+1
|
* PR bootstrap/54820Eric Botcazou2012-10-233-1/+15
| | | | | * configure.ac (have_static_libs): Force 'no' for GCC version < 4.5. * configure: Regenerate.
* daily updateAlan Modra2012-10-231-1/+1
|
* * gdb.base/callfuncs.exp: PR gdb/12796, gdb/12798 and gdb/12800Mark Kettenis2012-10-232-7/+5
| | | | are now fixed.
* PR gdb/12796Mark Kettenis2012-10-233-0/+53
| | | | | | | | | PR gdb/12798 PR gdb/12800 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and AMD64_FTAG_REGNUM. * amd64-tdep.c (amd64_classify): Classify complex types. (amd64_return_value): Handle the COMPLEX_X87 class.
* binutilsTom Tromey2012-10-232-0/+6
| | | | | | | | * readelf.c (get_note_type): Handle NT_SIGINFO, NT_FILE. (print_core_note): New function. (process_note): Call it. include/common/elf * common.h (NT_SIGINFO, NT_FILE): New defines.
* gdb/testsuite:qiyao2012-10-232-1/+5
| | | | * gdb.base/info-os.exp: Resume the inferior until it exits.
* Change target-wide-charset to UTF-16 on ppc-aix.Joel Brobecker2012-10-232-0/+15
| | | | | | | | | | | On ppc-aix, type wchar_t is 2 bytes long, so override the default target-wide-charset (UTF-32) with UTF-16. This allows us to print wide characters correctly. gdb/ChangeLog: * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function. (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
* Set default target-wide-charset setting to "UTF-16" for x86_64-windows.Joel Brobecker2012-10-232-0/+17
| | | | | | | | | | | Type wchar_t is only 2 bytes long on x86_64-windows. gdb/ChangeLog: * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New function. (amd64_windows_init_abi): Set auto_wide_charset gdbarch method to amd64_windows_auto_wide_charset.
* bfd/Nathan Sidwell2012-10-2314-588/+201
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * bfd-in.h (bfd_elf_stack_segment_size): Declare. * bfd-in2.h: Rebuilt. * elfxx-target.h (elf_backend_stack_align): New. (elfNN_bed): Add it. * elf-bfd.h (struct elf_backend_data): Add stack_align field. * elf.c (bfd_elf_map_sections_to_segments): Pay attention to stack_align and stacksize for PT_GNU_STACK segment. (assign_file_positions_for_non_load_sections): Set p_memsz for PT_GNU_STACK segment. (copy_elf_program_header): Copy PT_GNU_STACK size. * elflink.c (bfd_elf_stack_segment_size): New function, taken from uclinux backends. (bfd_elf_size_dynamic_sections): Determine PT_GNU_STACK requirements after calling backend. Pay attention to stacksize. * elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Call bfd_elf_stack_segment_size. (elf32_bfinfdpic_modify_program_headers): Delete. (elf32_bfingfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK here. (elf_backend_stack_align): Override. (elf_backend_modify_program_headers): Don't override. * elf32-frv.c (frvfdpic_always_size_sections): Call bfd_elf_stack_segment_size. (elf32_frvfdpic_modify_program_headers): Delete. (elf32_frvfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK here. (elf_backend_stack_align): Override. (elf_backend_modify_program_headers): Don't override. * elf32-lm32.c (lm32_elf_always_size_sections): Leave PT_GNU_STACK creation to underlying elf support. Check __stacksize here for backwards compatibility, and set it if needed. (lm32_elf_modify_segment_map): Delete. (lm32_elf_modify_program_headers): Delete. (elf_backend_stack_align): Override. (elf_backend_modify_segment_map): Don't override. (elf_backend_modify_program_headers): Don't override. * elf32-sh.c (sh_elf_always_size_sections): Call bfd_elf_stack_segment_size. (sh_elf_modify_program_headers): Delete. (sh_elf_copy_private_data): Don't copy PT_GNU_STACK here. (elf_backend_stack_align): Override. (elf_backend_modify_program_headers): Don't override. * elf32-tic6x.c (elf32_tic6x_always_size_sections): Call bfd_elf_stack_segment_size. (elf32_tic6x_modify_program_headers): Delete. (elf32_tic6x_copy_private_data): Delete. (elf_backend_stack_align): Override. (bfd_elf32_bfd_copy_private_bfd_data): Don't override. (elf_backend_modify_program_headers): Don't override. include/ * bfdlink.h (struct bfd_link_info): Add stacksize option. ld/ * ld.texinfo (stack-size): New option. * emultempl/elf32.em: Add stack-size option. ld/testsuite/ * ld-elf/binutils.exp: Add -z stack-size=0. * ld-elf/elf.exp: Add stack-exec and stack-size tests. * ld-elf/orphan-region.d: Add stack-size option. Remove xfail. * ld-elf/stack-exec.rd: New. * ld-elf/stack-size.rd: New. * ld-elf/stack.s: New. * ld-scripts/empty-aligned.d: Add stack-size option. * ld-sh/fdpic-stack-set.d: New. * ld-tic6x/shlib-1.rd: Remove __stacksize symbol. * ld-tic6x/shlib-1b.rd: Likewise. * ld-tic6x/shlib-1r.rd: Likewise. * ld-tic6x/shlib-1rb.rd: Likewise. * ld-tic6x/shlib-app-1.rd: Likewise. * ld-tic6x/shlib-app-1b.rd: Likewise. * ld-tic6x/shlib-app-1r.rd: Likewise. * ld-tic6x/shlib-app-1rb.rd: Likewise. * ld-tic6x/shlib-noindex.rd: Likewise. * ld-tic6x/static-app-1.rd: Likewise. * ld-tic6x/static-app-1b.rd: Likewise. * ld-tic6x/static-app-1r.rd: Likewise. * ld-tic6x/static-app-1rb.rd: Likewise.
* gdb/qiyao2012-10-234-13/+17
| | | | | | | | | | | * event-top.c (mark_async_signal_handler_wrapper): Remove. * event-top.h: Remove its declaration. (async_request_quit): Call mark_async_signal_handler instead of mark_async_signal_handler_wrapper. (async_do_nothing, async_disconnect): Likewise. (async_stop_sig): Likewise. * remote.c (handle_remote_sigint): Likewise. (handle_remote_sigint_twice): Likewise.
* gdb/qiyao2012-10-232-5/+11
| | | | | | * event-top.c (sigint_token, sighup_token): Replace 'void *' with 'static struct async_signal_handler *'. (sighup_token, sigquit_token, sigstp_token): Likewise.
* *** empty log message ***gdbadmin2012-10-231-1/+1
|
* daily updateAlan Modra2012-10-221-1/+1
|
* opcodes/Peter Bergner2012-10-222-1/+5
| | | | | | | * ppc-opc.c (powerpc_opcodes) <vcfpsxws>: Fix opcode spelling. gas/testsuite/ * gas/ppc/altivec.s <vcfpsxws>: Fix opcode spelling.
* Ali Anwar <ali_anwar@codesourcery.com>alianwar2012-10-223-16/+22
| | | | | | * gdbarch.sh (function_list): Use 'pstring' when printing a variable which could return NULL. * gdbarch.c: Regenerate.
* include/Alan Modra2012-10-222-0/+9
| | | | | | | | | | | | | | | PR ld/14426 * bfdlink.h (bfd_link_info): Add ignore_hash. ld/ PR ld/14426 * ldlex.h (option_values): Add OPTION_IGNORE_UNRESOLVED_SYMBOL. * lexsup.c (parse_args): Likewise. (ld_options): Describe --ignore-unresolved-symbol. * ldmain.h (add_ignoresym): Declare. * ldmain.c (add_ignoresym): New function, extracted from.. (undefined_symbol): ..here. Return if the symbol is in ignore_hash. (constructor_callback): Don't use global link_info here. (reloc_overflow): Likewise.
* PR bootstrap/54820Eric Botcazou2012-10-225-498/+428
| | | | | | | | | | | | | * Makefile.tpl (STAGE1_FLAGS_TO_PASS): New variable. (all-[+prefix+][+module+]): Pass stage1_args to sub-makes. (all-stage[+id+]-[+prefix+][+module+]): Likewise, if prev is false. (clean-stage[+id+]-[+prefix+][+module+]): Likewise, if prev is false. (host_modules): Set stage1_args to STAGE1_FLAGS_TO_PASS. * Makefile.in: Regenerate. * configure.ac (have_static_libs): New variable and associated check. (stage1-ldflags): Move to after stage1_libs and set to -static-libstdc++ -static-libgcc if stage1_libs is empty and have_static_libs is yes. * configure: Regenerate.
* * cache.c (cache_bmmap): Don't use void* arithmetic.Alan Modra2012-10-222-1/+5
|
* *** empty log message ***gdbadmin2012-10-221-1/+1
|
* daily updateAlan Modra2012-10-211-1/+1
|
* bfd/Alan Modra2012-10-213-0/+31
| | | | | | | | * compress.c (bfd_cache_section_contents): New function. * bfd-in2.h: Regenerate. binutils/ * objdump.c (load_specific_debug_section): Use bfd_cache_section_contents.
* Correct last entryHans-Peter Nilsson2012-10-211-1/+1
|
* * linker.c (_bfd_generic_link_output_symbols): Handle aHans-Peter Nilsson2012-10-212-0/+11
| | | | no-longer-global symbol entered as a BFD_PLUGIN.
* *** empty log message ***gdbadmin2012-10-211-1/+1
|
* daily updateAlan Modra2012-10-201-1/+1
|
* * compress.c: Reinstate 2012-10-19 change.Alan Modra2012-10-202-20/+23
| | | | | (bfd_get_full_section_contents): Don't free unless we alloc. Use proper decompress size. Delete some vars, rename others.
* *** empty log message ***gdbadmin2012-10-201-1/+1
|
* daily updateAlan Modra2012-10-191-1/+1
|
* ppc-aix osabi sniffer: Turn test of bfd flavour into assertionJoel Brobecker2012-10-192-4/+16
| | | | | | | | | | | | | | | | Due to the way this function is registers, we know that given bfd's flavour should always be bfd_target_xcoff_flavour, thus making the former test always true, which means that this function should always return GDB_OSABI_AIX, and never return GDB_OSABI_UNKNOWN. This patch also fixes a typo detected by Tom Tromey that caused the test itself to be completely ineffective. gdb/ChangeLog (by Tom Tromey and Joel Brobecker): * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace inneffective if condition by gdb assertion. Add function description comment.
* Document exp_descriptor.op_name should never return NULL.Joel Brobecker2012-10-192-1/+9
| | | | | | | | | | | | This documents a constaint that struct exp_descriptor's "op_name" method implementation should obey. This might not have been part of the initial design, but is currently true of all instantiations, and already assumed by the current users. gdb/ChangeLog: * parser-defs.h (struct exp_descriptor): Document constraint on return value for "op_name" callbacks.
* * compress.c: Revert previous patch.Tom Tromey2012-10-192-7/+12
|
* * compress.c (bfd_get_full_section_contents): Don't cacheTom Tromey2012-10-192-8/+12
| | | | decompressed contents.
* Correct my ChangeLog entryxguo2012-10-191-3/+3
|
* * gdb.base/ctxobj.exp: Skip if skip_shlib_tests returns true.xguo2012-10-194-0/+18
| | | | | * gdb.base/print-file-var.exp: Likewise. * gdb.base/type-opaque.exp: Likewise.
* *** empty log message ***gdbadmin2012-10-191-1/+1
|
* daily updateAlan Modra2012-10-181-1/+1
|
* * tracepoint.c (print_one_static_tracepoint_marker): Constify.Tom Tromey2012-10-188-8/+20
| | | | | | | | | | * symtab.c (iterate_over_some_symtabs): Constify. * source.h (symtab_to_fullname): Return 'const char *'. * source.c (symtab_to_fullname): Return 'const char *'. * python/py-symtab.c (stpy_fullname): Constify. * cli/cli-cmds.c (edit_command): Constify. * breakpoint.c (print_breakpoint_location) (update_static_tracepoint): Constify.
* * breakpoint.c (compare_breakpoints): Fix comparison.Tom Tromey2012-10-182-1/+5
|
* Remove some extraneous changes in readline/terminal.cJoel Brobecker2012-10-182-19/+7
| | | | | | | | | | | | This patch removes some unnecessary differences between the official version of readline, and GDB's copy of it. readline/ChangeLog.gdb: * terminal.c: Remove duplicate includes of windows.h and wincon.h. (_rl_get_screen_size): Remove redundant code for MinGW getting the console size from the Windows API.
* ChangeLog bfdKai Tietz2012-10-1813-18/+156
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2012-10-18 Kai Tietz <ktietz@redhat.com> PR binutils/14067 * coff-i386.c (bfd_target): Add section flag SEC_EXCLUDE. Allow BFD_COMPRESS and BFD_DECOMPRESS flags. * coff-x86_64.c: Likewise. * coffcode.h (DOT_ZDEBUG): New define. (sec_to_styp_flags): Check for .zdebug. (styp_to_sec_flags): Likewise. * coffgen.c (make_a_section): Handle .debug_* section compression/decompression flags. * cofflink.c (mark_relocs): Ignore relocations for a section, which isn't marked as used. (_bfd_coff_link_input_bfd): Add support of compressed debug sections. * compress.c (decompress_contents): Loop as long as there is input available and there is room for output. * bfd/pe-arm.c: Add .zdebug_ partial match entry. * pe-i386.c: Likewise. * pe-x86_64.c: Likewise. * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't clear all data-directories as this might destroy content. * coff-i386.c (_bfd_generic_find_nearest_line_discriminator): define as coff_find_nearest_line_discriminator. * libcoff-in.h (coff_find_nearest_line_discriminator): New * libcoff.h: Regenerated. * coff-x86_64.c: Likewise. * coffgen.c (coff_find_nearest_line_discriminator): New function. prototype. ChangeLog binutils 2012-10-18 Kai Tietz <ktietz@redhat.com> * objdump.c (dump_bfd): Call dump headers after call of slurp_symtab. ChangeLog ld 2012-10-18 Kai Tietz <ktietz@redhat.com> PR binutils/14067 * NEWS: Menition new feature. * scripttempl/pep.sc: Add zdebug sections. * scripttempl/pe.sc: L
* * tic54x-dis.c (print_instruction): Don't use K&R style.Tom Tromey2012-10-182-38/+37
| | | | | | (print_parallel_instruction, sprint_dual_address) (sprint_indirect_address, sprint_direct_address, sprint_mmr) (sprint_cc2, sprint_condition): Likewise.
* * valprint.c (generic_emit_char, generic_printstr): Pass size ofTom Tromey2012-10-182-2/+7
| | | | gdb_wchar_t to convert_between_encodings.
* * aarch64-asm.c (aarch64_ins_ldst_reglist): InitializeKai Tietz2012-10-183-7/+16
| | | | | | | | | value with a default. (do_special_encoding): Likewise. (aarch64_ins_ldst_elemlist): Pre-initialize QSsize, and opcodeh2 variables with default. * arc-dis.c (write_comments_): Don't use strncat due size of state->commentBuffer pointer isn't predictable.
* *** empty log message ***gdbadmin2012-10-181-1/+1
|