aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2009-03-202009-03-20 Martin Schwidefsky <schwidefsky@de.ibm.com>Andreas Krebbel3-42/+39
Andreas Krebbel <Andreas.Krebbel@de.ibm.com> * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_* macros for visibilty and locality checks. (elf_s390_adjust_dynamic_symbol): Likewise. (allocate_dynrelocs): Likewise. (elf_s390_relocate_section): Likewise. (elf_s390_finish_dynamic_symbol): Likewise. * elf64-s390.c (elf_s390_check_relocs): Likewise. (elf_s390_adjust_dynamic_symbol): Likewise. (allocate_dynrelocs): Likewise. (elf_s390_relocate_section): Likewise. (elf_s390_finish_dynamic_symbol): Likewise.
2009-03-202009-03-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-90/+177
* dwarf.c (dwarf_regnames): Moved before frame_need_space. (dwarf_regnames_count): Likewise. (frame_need_space): Return int. (display_debug_frames): Check invalid registers.
2009-03-20*** empty log message ***gdbadmin1-1/+1
2009-03-20daily updateAlan Modra1-1/+1
2009-03-192009-03-19 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-0/+10
* layout.cc (Layout::output_section_name): Preserve names of '.note.' sections.
2009-03-19 * descriptors.cc (Descriptors::open): Check that the options areIan Lance Taylor2-1/+8
valid before using them.
2009-03-19 * utils.c (do_obstack_free): New function.Tom Tromey3-0/+26
(make_cleanup_obstack_free): Likewise. * defs.h (make_cleanup_obstack_free): Declare.
2009-03-192009-03-19 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-13/+18
* readelf.c (debug_apply_relocations): Check relocations against STT_SECTION symbol.
2009-03-19From: J"orn Rennecke <joern.rennecke@arc.com> (tiny change)Joel Brobecker2-4/+7
Speed up simulator startup: * sim-utils.c (zalloc): Use xcalloc.
2009-03-19 * gdb.ada/fixed_points/fixed_points.adb: Add a test on overpreciseJerome Guitton3-7/+48
deltas. * gdb.ada/fixed_points.exp: Ditto.
2009-03-192009-03-19 Kai Tietz <kai.tietz@onevision.com>Kai Tietz4-15/+32
* bfd-in2.h: Regenerated. * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY for debugging sections and map memory read/write dependent on SEC_COFF_NOREAD. (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections without memory read flags set. * section.c: Add SEC_COFF_NOREAD to section flags.
2009-03-19 * config/tc-sparc.c (md_parse_option): If the user givesDavid S. Miller2-0/+9
us '--64' make sure max_architecture is at least V9.
2009-03-19* elf32-hppa.c (final_link_relocate): Cast bfd_vma values to longAndreas Schwab2-11/+16
for format string.
2009-03-19bfd/Alan Modra5-72/+80
* elf32-spu.c (spu_elf_find_overlays): Separate error return from "no overlays" return. If there are overlays, create overlay manager entry symbols here, so that.. (spu_elf_build_stubs): ..we don't need to set them up here. Simplify entry symbol tests. * elf32-spu.h (spu_elf_find_overlays): Update prototype. ld/ * emultempl/spuelf.em (spu_before_allocation): Report errors from spu_elf_find_overlays.
2009-03-19 * script-sections.h: Include <list>.Ian Lance Taylor3-182/+376
(class Script_sections): Change Sections_elements from std::vector to std::list. Typedef public Elements_iterator. Add orphan_section_placement_, data_segment_align_start_, and saw_data_segment_align_ fields. Remove data_segment_align_index_ field. * script-sections.cc (class Orphan_section_placement): New class. (class Sections_element): Add virtual functions is_relro and orphan_section_init. Remove virtual function place_orphan_here. (class Output_section_definition): Add is_relro and orphan_section_init. Remove place_orphan_here. (class Orphan_output_section): Likewise. (Script_sections::Script_sections): Update for field changes. (Script_sections::data_segment_align): Set saw_data_segment_align_ and data_segment_align_start_, not data_segment_align_index. (Script_sections::data_segment_relro_end): Check saw_data_segment_align_. Use data_segment_align_start_ rather than data_segment_align_index_. (Script_sections::place_orphan): Rewrite to use Orphan_section_placement.
2009-03-192009-03-18 H.J. Lu <hongjiu.lu@intel.com>H.J. Lu2-0/+8
* readelf.c (debug_apply_relocations): Allow relocations against function symbols.
2009-03-19*** empty log message ***gdbadmin1-1/+1
2009-03-19daily updateAlan Modra1-1/+1
2009-03-18 * configure: Rebuild.Tom Tromey5-3/+411
* configure.ac (host_libs): Add libiconv. * Makefile.in: Rebuild. * Makefile.def (host_modules): Add libiconv. (configure-gdb, all-gdb): Depend on libiconv.
2009-03-18 * Makefile.am (BFD32_BACKENDS): Remove elf32-score andNick Clifton7-26/+40
elf32-score7 files. (BFD32_BACKEND_CFILES): Likewise. (BFD64_BACKENDS): Add elf32-score and elf32-score7 files. (BFD64_BACKENDS_CFILES): Likewise. * Makefile.in: Regenerate. * config.bfd: More Score targets into BFD64 list. * configure.in: Move score vectors to 64-bit list. * targets.c: Likewise. * score-dis.c: Only compile when 64-bit bfds are enabled.
2009-03-18 * linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is anDoug Evans2-11/+17
int, not a long long. (linux_nat_info_proc_cmd): Store pid in long instead of long long.
2009-03-18 * expprint.c (dump_raw_expression): Print note if non-NULL.Doug Evans2-1/+8
2009-03-18* elf.c (elfcore_grok_openbsd_procinfo)Mark Kettenis2-0/+75
(elfcore_grok_openbsd_note): New functions. (elf_parse_notes): Handle notes from OpenBSD ELF core files.
2009-03-18 * printcmd.c (display_uses_solib_p): Redo loop, scan element listDoug Evans2-8/+16
backwards.
2009-03-18* common.h (NT_OPENBSD_PROCINFO, NT_OPENBSD_AUXV)Mark Kettenis2-0/+18
(NT_OPENBSD_REGS, NT_OPENBSD_FPREGS, NT_OPENBSD_XFPREGS) (NT_OPENBSD_WCOOKIE): New defines.
2009-03-18 * return-nodebug.c: Don't include stdio.h.Pedro Alves4-32/+70
(init): Delete. (func): Delete definition and provide extern declaration. (t): New. (main): Don't call printf. Call func and store its result in t. * return-nodebug1.c: New. * return-nodebug.exp: Don't expect stdio output. Instead, print the global variable t. Drop printf formatters and cast types from foreach loop. Don't use prepare_for_testing. Compile return-nodebug.c and return-nodebug1.c in separate steps. Don't define FORMAT or CAST.
2009-03-182009-03-18 Andrew Stubbs <ams@codesourcery.com>Andrew Stubbs6-0/+58
gas/ * config/tc-arm.c (md_apply_fix): Check BFD_RELOC_ARM_IMMEDIATE and BFD_RELOC_ARM_ADRL_IMMEDIATE value is in the correct section. Check BFD_RELOC_ARM_ADRL_IMMEDIATE has a defined symbol. gas/testsuites/ * gas/arm/adr-invalid.d: New file. * gas/arm/adr-invalid.l: New file. * gas/arm/adr-invalid.s: New file.
2009-03-18ld/H.J. Lu12-0/+110
2009-03-18 H.J. Lu <hongjiu.lu@intel.com> PR ld/6766 * lexsup.c (parse_args): Call ldlang_add_undef for -e. ld/testsuite/ 2009-03-18 H.J. Lu <hongjiu.lu@intel.com> PR ld/6766 * ld-undefined/dummy.s: New. * ld-undefined/entry-1.d: Likewise. * ld-undefined/entry-2.d: Likewise. * ld-undefined/entry-3.d: Likewise. * ld-undefined/entry-4.d: Likewise. * ld-undefined/entry-5.d: Likewise. * ld-undefined/entry-6.d: Likewise. * ld-undefined/entry.exp: Likewise. * ld-undefined/entry.s: Likewise.
2009-03-18bfd/Alan Modra6-15/+12
* vms-hdr.c: Don't include alloca.h. opcodes/ * cgen-opc.c: Include alloca-conf.h rather than alloca.h. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate.
2009-03-18include/Alan Modra23-2203/+2321
* alloca-conf.h: Revise based on autoconf-2.61, autoconf-2.13 documentation. bfd/ * elf32-m68hc1x.c: Include alloca-conf.h. * xsym.c: Likewise. * elf64-hppa.c: Likewise. Remove existing #if's handling alloca. * som.c: Likewise. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. binutils/ * sysdep.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. gas/ * as.h: Include alloca-conf.h instead of config.h and remove existing #if's handling alloca. * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. opcodes/ * Makefile.am: Run "make dep-am". * Makefile.in: Regenerate. * openrisc-opc.c: Regenerate. ld/ * ld.h: Remove alloca handling.
2009-03-18 * Makefile.in: Update license to GPLv3.Nathan Sidwell19-166/+154
* ada-exp.y: Update license to GPLv3. * ada-lex.l: Update license to GPLv3. * c-exp.y: Update license to GPLv3. * cp-name-parser.y: Update license to GPLv3. * darwin-nat-info.c: Update license to GPLv3. * f-exp.y: Update license to GPLv3. * gdb_thread_db.h: Update license to GPLv3. * hppanbsd-nat.c: Update license to GPLv3. * hppanbsd-tdep.c: Update license to GPLv3. * hppaobsd-tdep.c: Update license to GPLv3. * jv-exp.y: Update license to GPLv3. * m2-exp.y: Update license to GPLv3. * objc-exp.y: Update license to GPLv3. * p-exp.y: Update license to GPLv3. * reply_mig_hack.awk: Update license to GPLv3. * reverse.c: Update license to GPLv3. * xtensa-xtregs.c: Update license to GPLv3.
2009-03-182009-03-17 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-1/+5
* gdb.base/solib-display.exp: Disable test for remote targers.
2009-03-18 * archive.cc (Archive::add_symbols): Check for a version attachedIan Lance Taylor4-13/+87
to the symbol name in the archive map. * testsuite/Makefile.am (check_PROGRAMS): Add ver_test_11. (ver_test_11_SOURCES, ver_test_11_DEPENDENCIES): Define. (ver_test_11_LDFLAGS, ver_test_11_LDADD): Define. (ver_test_11.a): New target. * testsuite/Makefile.in: Rebuild.
2009-03-18 * remote.c (remote_close): Don't call generic_mourn_inferior.Pedro Alves2-3/+8
(remote_mourn_1): Call generic_mourn_inferior after closing the target.
2009-03-18 * remote.c (remote_start_remote): Add missing call toPedro Alves2-0/+7
init_wait_for_inferior in non-stop mode.
2009-03-18 * breakpoint.c (bpstat_should_step): Only consider softwarePedro Alves2-1/+6
watchpoints that have a location.
2009-03-18merge from gccDJ Delorie5-17/+95
2009-03-18*** empty log message ***gdbadmin1-1/+1
2009-03-18daily updateAlan Modra1-1/+1
2009-03-17Correct typo which gave me an accidental promotion.Christopher Faylor1-1/+1
2009-03-17 * configure.ac: Check for chsize and posix_fallocate. ReplaceIan Lance Taylor8-11/+248
ftruncate. * ftruncate.c: New file, from gnulib. * output.cc (posix_fallocate): Define dummy version if not HAVE_POSIX_FALLOCATE. (Output_file::map): Call posix_fallocate rather than lseek and write. * gold.h (ftruncate): Declare if not HAVE_FTRUNCATE. * configure, Makefile.in, config.in: Rebuild.
2009-03-172009-03-17 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov3-8/+17
* layout.h (Layout::create_note): Add section_name parameter. * layout.cc (Layout::create_note): Likewise. (Layout::create_build_id, Layout::create_gold_note): Fix callers.
2009-03-17 Rename "process" to "lwp" throughout.Pedro Alves5-209/+257
* linux-low.c (all_processes): Rename to... (all_lwps): ... this. (inferior_pid, handle_extended_wait, get_stop_pc): Adjust. (add_process): Rename to ... (add_lwp): ... this. Adjust. (linux_create_inferior): Adjust. (linux_attach_lwp): Adjust. (linux_attach): Adjust. (linux_kill_one_process): Rename to ... (linux_kill_one_lwp): ... this. Adjust. (linux_kill): Adjust. (linux_detach_one_process): Rename to ... (linux_detach_one_lwp): ... this. Adjust. (linux_detach): Adjust. (check_removed_breakpoint): Adjust. (status_pending_p): Adjust. (linux_wait_for_process): Rename to ... (linux_wait_for_lwp): ... this. Adjust. (linux_wait_for_event): Adjust. (send_sigstop): Adjust. (wait_for_sigstop): Adjust. (stop_all_processes): Rename to ... (stop_all_lwps): ... this. (linux_resume_one_process): Rename to ... (linux_resume_one_lwp): ... this. Adjust. (linux_set_resume_request, linux_continue_one_thread) (linux_queue_one_thread, resume_status_pending_p) (usr_store_inferior_registers, regsets_store_inferior_registers) (linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo): Adjust. * linux-low.h (get_process): Rename to ... (get_lwp): ... this. Adjust. (get_thread_process): Rename to ... (get_thread_lwp): ... this. Adjust. (get_process_thread): Rename to ... (get_lwp_thread): ... this. Adjust. (struct process_info): Rename to ... (struct lwp_info): ... this. (all_processes): Rename to ... (all_lwps): ... this. * proc-service.c (ps_lgetregs): Adjust. * thread-db.c (thread_db_create_event, find_one_thread) (maybe_attach_thread, thread_db_get_tls_address): Adjust.
2009-03-17 Add a target_ops parameter to the to_kill method in struct target_ops.Joel Brobecker17-44/+63
* target.h (struct target_ops): Add a "target_ops *" parameter to method to_kill. (target_kill): Remove macro. Add declaration. * target.c (debug_to_kill): Delete, no longer necessary. (target_kill): New function. (update_current_target): Stop inheriting the to_kill method. Do not de_fault it to no_process either. (setup_target_debug): Do not set current_target.to_kill. * gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c, linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update accordingly.
2009-03-17 * amd64-linux-nat.c (si_timerid,si_overrun): Provide definition forDoug Evans2-0/+14
glibc 2.3.2 and earlier.
2009-03-17 * frame.c (get_prev_frame_1): Do not perform the inner_frameJoel Brobecker2-12/+25
sanity check if this_frame is not NORMAL. (frame_id_inner): Update the description of this function.
2009-03-17 * descriptors.cc: Include "options.h".Ian Lance Taylor2-18/+50
(FD_CLOEXEC, O_CLOEXEC): Define if not defined. (Descriptors::open): Always use O_CLOEXEC when opening a new descriptor. If we have a plugin, and O_CLOEXEC was not defined, then set FD_CLOEXEC.
2009-03-17 * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.Daniel Jacobowitz2-2/+6
2009-03-17bfd/Alan Modra9-153/+230
* elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit. Add compact_stub. (emum _ovly_flavour): Delete ovly_compact, ovly_none. * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and ovly_return fields with ovly_entry[2]. Adjust all users. (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler when soft-icache. (spu_elf_build_stubs): Likewise. (ovl_stub_size): Change arg to spu_elf_params pointer. Adjust for ovly_flavour changes. Update all callers. (ovl_stub_size_log2): New function. (build_stub): Handle compact icache stubs. Use different manager entry point for stubs in non-icache area. (spu_elf_size_stubs): Don't allocate space for indirect branch descriptors. (spu_elf_build_stubs): And don't built them. ld/ * emultempl/spu_icache.S: Add new entry to dummy handler. * emultempl/spu_icache.o_c: Regenerate. * emultempl/spuelf.em (params): Init new field. (no_overlays): New static var. (spu_before_allocation): Use it. (OPTION_SPU_COMPACT_STUBS): Define. (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add compact-stubs. (PARSE_AND_LIST_ARGS_CASES): Handle compact-stubs. Adjust no-overlays handling. ld/testsuite/ * ld-spu/icache1.d: Update for fixed set_id, new manager entry, and reduced data.
2009-03-17 * sparc.cc (class Target_sparc): Add has_got_section.Ian Lance Taylor2-2/+36
(Target_sparc::Scan::global): If we see _GLOBAL_OFFSET_TABLE_, make sure we have a GOT section. * sparc.cc (optimize_tls_reloc): Recognize R_SPARC_TLS_IE_ADD. (Target_sparc::Scan::local): Likewise. (Target_sparc::Scan::global): Likewise. (Target_sparc::Relocate::relocate): Likewise. (Target_sparc::Relocate::relocate_tls): Likewise.