aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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.
2012-10-23gold/Cary Coutant3-7/+25
* dwarf_reader.cc (Dwarf_info_reader::do_parse): Use stored abbrev_shndx. * dwarf_reader.h (Dwarf_info_reader::Dwarf_info_reader): Initialize abbrev_shndx_. (Dwarf_info_reader::set_abbrev_shndx): New method. (Dwarf_info_reader::abbrev_shndx_): New data member.
2012-10-23gold/Cary Coutant3-41/+90
* dwarf_reader.cc (make_elf_reloc_mapper): Check size and endianness from object, not parameters. (Dwarf_info_reader::parse): Likewise. * object.h (Relobj::elfsize, Relobj::is_big_endian): New methods. (Relobj::do_elfsize, Relobj::do_is_big_endian): New methods. (Sized_relobj::do_elfsize, Sized_relobj::do_is_big_endian): New methods.
2012-10-23gold/Cary Coutant3-0/+18
* fileread.cc (Input_file::Input_file): New constructor. * fileread.h (class Input_file): Add new constructor.
2012-10-23* gdb.base/callfuncs.exp: PR gdb/12796, gdb/12798 and gdb/12800Mark Kettenis2-7/+5
are now fixed.
2012-10-23PR gdb/12796Mark Kettenis3-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.
2012-10-23binutilsTom Tromey4-0/+104
* 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.
2012-10-23gdb/testsuite:Yao Qi2-1/+5
* gdb.base/info-os.exp: Resume the inferior until it exits.
2012-10-23Change target-wide-charset to UTF-16 on ppc-aix.Joel Brobecker2-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.
2012-10-23Set default target-wide-charset setting to "UTF-16" for x86_64-windows.Joel Brobecker2-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.
2012-10-23 bfd/Nathan Sidwell39-606/+295
* 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.
2012-10-23gdb/Yao Qi4-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.
2012-10-23gdb/Yao Qi2-5/+11
* event-top.c (sigint_token, sighup_token): Replace 'void *' with 'static struct async_signal_handler *'. (sighup_token, sigquit_token, sigstp_token): Likewise.
2012-10-23*** empty log message ***gdbadmin1-1/+1
2012-10-22daily updateAlan Modra1-1/+1
2012-10-22opcodes/Peter Bergner4-2/+10
* ppc-opc.c (powerpc_opcodes) <vcfpsxws>: Fix opcode spelling. gas/testsuite/ * gas/ppc/altivec.s <vcfpsxws>: Fix opcode spelling.
2012-10-22Ali Anwar <ali_anwar@codesourcery.com>Ali Anwar3-16/+22
* gdbarch.sh (function_list): Use 'pstring' when printing a variable which could return NULL. * gdbarch.c: Regenerate.
2012-10-22include/Alan Modra7-20/+57
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.
2012-10-22 * as.c (dump_statistics): Compute data size as the delta betweenSimon Baldwin2-1/+13
current sbrk(0) and start_sbrk. * (main): Set start_sbrk to sbrk(0) on entry.
2012-10-22 PR bootstrap/54820Eric Botcazou5-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.
2012-10-22 * plugin.c (plugin_load_plugins): Warning fix.Alan Modra2-2/+8
2012-10-22 * cache.c (cache_bmmap): Don't use void* arithmetic.Alan Modra2-1/+5
2012-10-22*** empty log message ***gdbadmin1-1/+1
2012-10-21daily updateAlan Modra1-1/+1
2012-10-21Update binutils-all/dw2-1.WH.J. Lu2-8/+11
* binutils-all/dw2-1.W: Updated.
2012-10-21Handle x32 in dump_dwarfH.J. Lu2-0/+7
* objdump.c (dump_dwarf): Handle bfd_mach_x64_32 and bfd_mach_x64_32_intel_syntax.
2012-10-21bfd/Alan Modra5-7/+37
* compress.c (bfd_cache_section_contents): New function. * bfd-in2.h: Regenerate. binutils/ * objdump.c (load_specific_debug_section): Use bfd_cache_section_contents.
2012-10-21Correct last entryHans-Peter Nilsson1-1/+1
2012-10-21 * linker.c (_bfd_generic_link_output_symbols): Handle aHans-Peter Nilsson2-0/+11
no-longer-global symbol entered as a BFD_PLUGIN.
2012-10-21*** empty log message ***gdbadmin1-1/+1
2012-10-20daily updateAlan Modra1-1/+1
2012-10-20Add an objdump test on compress debug sectionsH.J. Lu3-9/+130
* binutils-all/compress.exp: Add an objdump test. * binutils-all/dw2-1.W: New file.
2012-10-20 * compress.c: Reinstate 2012-10-19 change.Alan Modra2-20/+23
(bfd_get_full_section_contents): Don't free unless we alloc. Use proper decompress size. Delete some vars, rename others.
2012-10-20*** empty log message ***gdbadmin1-1/+1
2012-10-19daily updateAlan Modra1-1/+1
2012-10-19ppc-aix osabi sniffer: Turn test of bfd flavour into assertionJoel Brobecker2-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.
2012-10-19Document exp_descriptor.op_name should never return NULL.Joel Brobecker2-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.
2012-10-19 * compress.c: Revert previous patch.Tom Tromey2-7/+12
2012-10-19 * compress.c (bfd_get_full_section_contents): Don't cacheTom Tromey2-8/+12
decompressed contents.
2012-10-19Correct my ChangeLog entryxuepeng guo1-3/+3
2012-10-19 * gdb.base/ctxobj.exp: Skip if skip_shlib_tests returns true.xuepeng guo4-0/+18
* gdb.base/print-file-var.exp: Likewise. * gdb.base/type-opaque.exp: Likewise.
2012-10-19*** empty log message ***gdbadmin1-1/+1
2012-10-18daily updateAlan Modra1-1/+1
2012-10-18Add missed file on my last commitKai Tietz1-0/+2
2012-10-18 * tracepoint.c (print_one_static_tracepoint_marker): Constify.Tom Tromey8-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.