aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-07-20Add missing ChangeLog entry.H.J. Lu1-0/+6
2010-07-20ld: improve linker script sectionMike Frysinger2-3/+9
The example version script in the manual currently suggests: extern "C++" { "int f(int, double)"; } But a C++ function like that doesn't encode the return type into the mangled name, so when the linker demangles things, it ends up with "f(int, double)" and so it never matches. The example also lacks a trailing semicolon after the brace, so the linker always complains about a syntax error in the file. While the language section documents the possibilities, it isn't clear as to which is the default language. So explicitly state that the C language is the default. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2010-07-20* gdb/gdbserver/server.c (handle_query): strcpy() the returned string fromOzkan Sezer2-2/+4
paddress() instead of sprintf().
2010-07-20* gdb/gdbserver/utils.c (paddress): Return phex_nz().Ozkan Sezer2-11/+13
2010-07-20include/elf/Alan Modra11-39/+81
* internal.h (ELF_TBSS_SPECIAL): New macro, extracted from.. (ELF_SECTION_SIZE): ..here. (ELF_SECTION_IN_SEGMENT_1): Add "strict" arg. (ELF_SECTION_IN_SEGMENT_STRICT): New macro. bfd/ * elf.c (assign_file_positions_for_load_sections): Check that zero size sections are allocated in segments too. (assign_file_positions_for_non_load_sections): Warn if zero size alloc sections are found here. (copy_elf_program_header): Don't drop zero size sections from segment map. (copy_private_bfd_data): Check for changes in zero size sections. binutils/ * readelf.c (process_program_headers): Don't ignore all zero size sections. ld/testsuite/ * ld-powerpc/tlsexe.r: Update. * ld-powerpc/tlsexetoc.r: Update. * ld-powerpc/tlsso.r: Update. * ld-powerpc/tlstocso.r: Update.
2010-07-20gdb/Jan Kratochvil2-0/+22
* linux-nat.c (linux_handle_extended_wait): Handle case when event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2010-07-20gdb/Jan Kratochvil2-2/+11
Code cleanup. * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling linux_nat_wait_1. Use always LP->STATUS afterwards.
2010-07-20 * ld-powerpc/vxworks-relax.s: Add branches to match expected output.Alan Modra4-7/+15
* ld-powerpc/vxworks-relax-2.s: Likewise. * ld-powerpc/vxworks1-lib.rd: Reorder reloc sections.
2010-07-202010-07-20 Hui Zhu <teawater@gmail.com>Hui Zhu2-2/+7
* inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to. (inf_ptrace_attach): Ditto.
2010-07-20 * config/tc-ppc.c (ppc_setup_opcodes): Add all macros for -many.Alan Modra2-1/+5
2010-07-20*** empty log message ***gdbadmin1-1/+1
2010-07-20daily updateAlan Modra1-1/+1
2010-07-19gdb/doc/Jan Kratochvil2-1/+5
* gdb.texinfo (Active Targets): Fix wrong comma placement.
2010-07-19gdb/Jan Kratochvil18-74/+217
Make core files the process_stratum. * corefile.c (core_target): New variable. (core_file_command): Remove variable t, use core_target. * corelow.c (core_ops): Make it static. (init_core_ops): Change to process_stratum. Initialize CORE_TARGET. * defs.h (make_cleanup_unpush_target): New prototype. * gdbarch.h: Regenerate. * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment. * gdbcore.h (core_target): New declaration. * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New variables ops_already_pushed and back_to. Use push_target, make_cleanup_unpush_target and discard_cleanups calls. * record.c (record_open): Replace core_stratum by a core_bfd check. * target.c (target_is_pushed): New function. (find_core_target): Remove. * target.h (enum strata) <core_stratum>: Remove. (target_is_pushed): New declaration. (find_core_target): Remove declaration. * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment. * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions. gdb/doc/ Make core files the process_stratum. * gdb.texinfo (Active Targets): Remove core_stratum. Include record_stratum example. gdb/testsuite/ Make core files the process_stratum. * gdb.base/corefile.exp (run: load core again) (run: sanity check we see the core file, run: with core) (run: core file is cleared, attach: load core again) (attach: sanity check we see the core file, attach: with core) (attach: core file is cleared): New tests. * gdb.base/coremaker.c (main): New parameters. Implement "sleep" argv.
2010-07-19binutils/testsuite/:Andreas Schwab38-106/+79
* binutils-all/readelf.s: Ignore "Key to Flags" contents. * binutils-all/readelf.s-64: Likewise. * binutils-all/i386/compressed-1b.d: Likewise. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/x86-64/compressed-1b.d: Likewise. * binutils-all/x86-64/compressed-1c.d: Likewise. gas/testsuite/: * gas/i386/x86-64-unwind.d: Ignore "Key to Flags" contents. * gas/ia64/alias-ilp32.d: Likewise. * gas/ia64/alias.d: Likewise. * gas/ia64/group-1.d: Likewise. * gas/ia64/group-2.d: Likewise. * gas/ia64/secname-ilp32.d: Likewise. * gas/ia64/secname.d: Likewise. * gas/ia64/unwind-ilp32.d: Likewise. * gas/ia64/unwind.d: Likewise. * gas/mmix/byte-1.d: Likewise. * gas/mmix/loc-1.d: Likewise. * gas/mmix/loc-2.d: Likewise. * gas/mmix/loc-3.d: Likewise. * gas/mmix/loc-4.d: Likewise. * gas/mmix/loc-5.d: Likewise. ld/testsuite/: * ld-mmix/bspec1.d: Ignore "Key to Flags" contents. * ld-mmix/bspec2.d: Likewise. * ld-mmix/local1.d: Likewise. * ld-mmix/local3.d: Likewise. * ld-mmix/local5.d: Likewise. * ld-mmix/local7.d: Likewise. * ld-mmix/undef-3.d: Likewise. * ld-sh/sh64/crange1.rd: Likewise. * ld-sh/sh64/crange2.rd: Likewise. * ld-sh/sh64/crange3-cmpct.rd: Likewise. * ld-sh/sh64/crange3-media.rd: Likewise. * ld-sh/sh64/crange3.rd: Likewise. * ld-sh/sh64/crangerel1.rd: Likewise. * ld-sh/sh64/crangerel2.rd: Likewise.
2010-07-19* readelf.c (process_section_headers): Update key to flags.Andreas Schwab2-1/+5
2010-07-192010-07-19 Hui Zhu <teawater@gmail.com>Hui Zhu5-6/+81
* breakpoint.c (single_step_breakpoints_inserted): New function. * breakpoint.h (single_step_breakpoints_inserted): Extern. * infrun.c (maybe_software_singlestep): Add check code. * record.c (record_resume): Add code for software single step. (record_wait): Ditto.
2010-07-19daily updateAlan Modra1-1/+1
2010-07-19*** empty log message ***gdbadmin1-1/+1
2010-07-18gdb/Jan Kratochvil2-1/+8
* linux-nat.c (linux_handle_extended_wait): Move variable new_lp into a more inner block. Remove its unused declaration initializer.
2010-07-182010-07-17 Jack Howarth <howarth@bromo.med.uc.edu>Paolo Bonzini3-0/+10
PR target/44862 * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): Provide -B option to allow for link spec %s substitutions for libstdc++.a on darwin. * Makefile.in: Regenerate.
2010-07-18*** empty log message ***gdbadmin1-1/+1
2010-07-18daily updateAlan Modra1-1/+1
2010-07-17 * objcopy.c (copy_usage): Tweak previous typofix.Dave Korn2-1/+5
2010-07-17Fix a typo in "objcopy --help".H.J. Lu2-1/+5
2010-07-17 H.J. Lu <hongjiu.lu@intel.com> * objcopy.c (copy_usage): Fix a typo.
2010-07-17 * ldlang.c (lang_check_section_addresses): Catch overlap forAlan Modra2-11/+21
sections that wrap around the address space.
2010-07-17 * elf.c (_bfd_elf_map_sections_to_segments): Force new segmentAlan Modra2-5/+25
for sections with overlapping LMAs. (assign_file_positions_for_load_sections): Catch overlap for sections that wrap around the address space. Replace a warning that duplicates ld's --check-sections error with a warning that lma has been adjusted for overlapping sections.
2010-07-17daily updateAlan Modra1-1/+1
2010-07-17*** empty log message ***gdbadmin1-1/+1
2010-07-16 * NEWS: Mention support for the new ptrace interface and hardwareThiago Jung Bauermann2-0/+20
accelerated watchpoint conditions on powerpc-linux.
2010-07-16* target.c (debug_to_insert_breakpoint): Instead of casting to unsignedOzkan Sezer2-26/+40
long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars and host_address_to_string() and %s for pointers. (debug_to_remove_breakpoint): Likewise. (debug_to_region_ok_for_hw_watchpoint): Likewise. (debug_to_can_accel_watchpoint_condition): Likewise. (debug_to_stopped_data_address): Likewise. (debug_to_watchpoint_addr_within_range): Likewise. (debug_to_insert_hw_breakpoint): Likewise. (debug_to_remove_hw_breakpoint): Likewise. (debug_to_insert_watchpoint): Likewise. (debug_to_remove_watchpoint): Likewise.
2010-07-16Use allocated cplus_specific for cplus symbols.Sami Wagiaalla4-11/+70
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h (symbol_set_demangled_name): Now takes an optional objfile* argument. (cplus_specific): New struct. * symtab.c (symbol_set_demangled_name): Updated. Use cplus_specific for cplus symbols. (symbol_get_demangled_name): Retrive the name from the cplus_specific struct for cplus symbols. (symbol_init_language_specific): Set cplus_specific for cplus symbols. (symbol_set_names): Pass objfile to symbol_set_demangled_name. * symtab.c (symbol_init_cplus_specific): New function.
2010-07-16Run dw2-compress-2 only for 32bit.H.J. Lu2-1/+8
2010-07-16 H.J. Lu <hongjiu.lu@intel.com> * gas/i386/i386.exp: Run dw2-compress-2 only for 32bit.
2010-07-16Use setter and getter for demangled_name.Sami Wagiaalla4-16/+46
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h (symbol_set_demangled_name): New function. (symbol_get_demangled_name): New function. * symtab.c (symbol_set_demangled_name): New function. (symbol_get_demangled_name): New function. (symbol_init_language_specific): Use demangled_name setter and getter. (symbol_set_names): Ditto. (symbol_natural_name): Ditto. (symbol_demangled_name): Ditto. * dwarf2read.c (new_symbol): Ditto.
2010-07-16Rename cplus_specific mangled_lang.Sami Wagiaalla5-18/+29
2010-07-16 Sami Wagiaalla <swagiaal@redhat.com> * symtab.h: Renamed cplus_specific to mangled_lang. * symtab.c (symbol_init_language_specific): Updated. (symbol_set_names): Updated. (symbol_natural_name): Updated. (symbol_demangled_name): Updated. * ada-lang.c (ada_decode_symbol): Updated. * dwarf2read.c (new_symbol): Updated.
2010-07-16 * corefile.c (core_sym_class): Fix handling of subprogram namesNick Clifton2-5/+18
and add support for cloned function names.
2010-07-16 * config/tc-rx.c (md_estimate_size_before_relax): Fix formatAlan Modra2-13/+29
specifier warnings for 32-bit host when --enable-64-bit-bfd. (rx_relax_frag, md_convert_frag): Likewise.
2010-07-16*** empty log message ***gdbadmin1-1/+1
2010-07-16daily updateAlan Modra1-1/+1
2010-07-15 * gas/NEWS: Add note about --compress-debug-sections.Cary Coutant2-1/+13
* gas/as.c (show_usage): Add --compress-debug-sections and --nocompress-debug-sections.
2010-07-15 * plugin.cc (Plugin_finish::run): Don't call cleanup handlers from here.Cary Coutant2-4/+10
2010-07-15 * config/obj-elf.c (get_sym_from_input_line_and_check): NewNathan Sidwell7-40/+79
function to catch missing pseudo-op arguments. (obj_elf_local): Call new function. (obj_elf_weak): Likewise. (obj_elf_visibility): Likewise. (obj_elf_vtable_entry): Likewise. (obj_elf_type): Likewise. testsuite/ * gas/elf/pseudo.s: New. * gas/elf/pseudo.l: New. * gas/elf/pseudo.d: New. * gas/elf/elf.exp: Run the new test.
2010-07-152010-07-15 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-10/+177
* config/obj-coff-seh.c (seh_getelm_data_size): New. (seh_read_offset): Handle negative values. (obj_coff_seh_push): Handle offset for save-register store. (obj_coff_seh_setframe): Add unwind-information for frame. (seh_store_elm_data): New. (seh_getelm_data_size): Return additionally unaligned element count. (seh_make_unwind_entry): Correct tweak about element count.
2010-07-152010-07-15 Kai Tietz <kai.tietz@onevision.com>Kai Tietz2-0/+8
* dllwrap.c (main): Make sure is_leading_underscore gets initialized with correct default.
2010-07-15Add testcases for PR ld/11817.H.J. Lu7-0/+404
2010-07-14 H.J. Lu <hongjiu.lu@intel.com> PR ld/11817 * ld-i386/compressed1.s: New. * ld-i386/compressed1.d: Likewise. * ld-x86-64/compressed1.s: Likewise. * ld-x86-64/compressed1.d: Likewise. * ld-i386/i386.exp: Run compressed1. * ld-x86-64/x86-64.exp: Likewise.
2010-07-15Fix a typo.H.J. Lu7-6/+15
2010-07-14 H.J. Lu <hongjiu.lu@intel.com> * binutils-all/i386/compressed-1a.d: Fix a typo. * binutils-all/i386/compressed-1b.d: Likewise. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/x86-64/compressed-1a.d: Likewise. * binutils-all/x86-64/compressed-1b.d: Likewise. * binutils-all/x86-64/compressed-1c.d: Likewise.
2010-07-15*** empty log message ***gdbadmin1-1/+1
2010-07-15daily updateAlan Modra1-1/+1
2010-07-14 PR ld/11817Cary Coutant2-56/+43
* dwarf2.c (read_section): Revert patch for compressed debug sections. (find_line): Likewise. (read_and_uncompress_section): Remove.
2010-07-14Add addr2line, objcopy and strip tests for compressed debug sections.H.J. Lu21-8/+1121
binutils/testsuite/ 2010-07-14 H.J. Lu <hongjiu.lu@intel.com> * config/default.exp (binutils_assemble): Use default_binutils_assemble_flags. (binutils_assemble_flags): New. * lib/utils-lib.exp (default_binutils_assemble): Renamed to ... (default_binutils_assemble_flags): This. Add asflags and pass it to target_assemble. (run_dump_test): Support assembler flags. * binutils-all/i386/compressed-1.s: New. * binutils-all/i386/compressed-1a.d: Likewise. * binutils-all/i386/compressed-1b.d: Likewise. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/i386/i386.exp: Likewise. * binutils-all/x86-64/compressed-1.s: Likewise. * binutils-all/x86-64/compressed-1a.d: Likewise. * binutils-all/x86-64/compressed-1b.d: Likewise. * binutils-all/x86-64/compressed-1c.d: Likewise. * binutils-all/x86-64/x86-64.exp: Likewise. gas/testsuite/ 2010-07-14 H.J. Lu <hongjiu.lu@intel.com> * config/default.exp (ADDR2LINE): New. (ADDR2LINEFLAGS): Likewise. * gas/i386/i386.exp: Run dw2-compress-2 and x86-64-dw2-compress-2. * gas/i386/dw2-compress-2.d: New. * gas/i386/dw2-compress-2.s: Likewise. * gas/i386/x86-64-dw2-compress-2.d: Likewise. * gas/i386/x86-64-dw2-compress-2.s: Likewise. * lib/gas-defs.exp (run_dump_test): Support addr2line as dump program. (slurp_options): Allow numbers in options.