aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2002-09-27* elf32-vax.c (elf_vax_check_relocs): Remove unusedJason Thorpe2-72/+104
local_got_refcounts usage. Remove allocation of got slot. (elf_vax_gc_sweep_hook): Remove unused local_got_refcounts usage. Remove de-allocation of got slot. (elf_vax_size_dynamic_section): Fix some indentation. Add hash traversal for elf_vax_instantiate_got_entries. Allow empty .got sections to be GC'ed. (elf_vax_instantiate_got_entries): New function. (elf_vax_relocate_section): Simplify R_VAX_GOT32 handling. Remove tests that are now handled by elf_vax_instantiate_got_entries. Assert GOT entry falls within .got section size. Remove redundant comparisions. Fix comments.
2002-09-27Last ChangeLog entry for defs.h is for both this patch and the previous patch.Mark Kettenis1-5/+5
2002-09-27* defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".Mark Kettenis2-5/+11
Fix some whitespace problems.
2002-09-272002-09-27 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-1/+6
* hw_disk.c (hw_disk_init_address): Set device type to "block", not "disk".
2002-09-272002-09-27 David Carlton <carlton@math.stanford.edu>David Carlton8-6/+28
* Makefile.in (cris-tdep.o): Depend on gdb_string_h. (mcore-tdep.o): Ditto. (ns32k-tdep.o): Ditto. (ns32knbsd-tdep.o): Ditto. (sh3-rom.o): Ditto. (vax-tdep.o): Ditto. * cris-tdep.c: #include "gdb_string.h" * mcore-tdep.c: Ditto. * ns32k-tdep.c: Ditto. * ns32knbsd-tdep.c: Ditto. * sh3-rom.c: Ditto. * vax-tdep.c: Ditto.
2002-09-27bfd/Jakub Jelinek28-455/+2333
* reloc.c: Add x86-64 TLS relocs. * bfd-in2.h, libbfd.h: Rebuilt. * elf64-x86-64.c (x86_64_elf_howto): Fix size fields for 32-bit relocs. Add TLS relocs. (x86_64_reloc_map): Add TLS relocs. (elf64_x86_64_info_to_howto): Adjust for added TLS relocs. (struct elf64_x86_64_link_hash_entry): Add tls_type field. (GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD, GOT_TLS_IE): Define. (elf64_x86_64_hash_entry): Define. (struct elf64_x86_64_obj_tdata): New. (elf64_x86_64_tdata, elf64_x86_64_local_got_tls_type): Define. (struct elf64_x86_64_link_hash_table): Add tls_ld_got. (link_hash_newfunc): Initialize tls_type. (elf64_x86_64_link_hash_table_create): Initialize tls_ld_got. (elf64_x86_64_copy_indirect_symbol): Swap tls_type if necessary. (elf64_x86_64_mkobject): New. (elf64_x86_64_elf_object_p): Allocate struct elf64_x86_64_obj_tdata. (elf64_x86_64_tls_transition): New. (elf64_x86_64_check_relocs): Add r_type variable and use it. Handle TLS relocs. (elf64_x86_64_gc_sweep_hook): Handle TLS relocs. (allocate_dynrelocs): Allocate GOT space for TLS relocs. (elf64_x86_64_size_dynamic_sections): Likewise. (dtpoff_base, tpoff): New. (elf64_x86_64_relocate_section): Handle TLS relocs. (elf64_x86_64_finish_dynamic_symbol): Only handle non-TLS GOT entries. (bfd_elf64_mkobject): Define. * elf32-i386.c (elf_i386_check_relocs) [R_386_TLS_LE]: Set DF_STATIC_TLS if shared. gas/ * config/tc-i386.c (tc_i386_fix_adjustable): Add x86-64 TLS relocs. Define them if not BFD_ASSEMBLER. (lex_got): Handle @tlsgd, @dtpoff and @tpoff in 64-bit mode, add @tlsld. (md_apply_fix3): No addend for BFD_RELOC_X86_64_TLSGD, BFD_RELOC_X86_64_TLSLD and BFD_RELOC_X86_64_GOTTPOFF. (tc_gen_reloc): Handle x86-64 TLS relocs. include/ * elf/x86-64.h: Add TLS relocs. ld/testsuite/ * lib/ld-lib.exp (run_ld_link_tests): Add. * ld-sh/sh64/sh64.exp (run_ld_link_tests, regexp_diff, file_contents): Remove. (sh64tests): Add 6th field to the tests array. * ld-i386/i386.exp (run_ld_link_tests): Remove. * ld-x86-64/x86-64.exp: New. * ld-x86-64/tlsbin.dd: New test. * ld-x86-64/tlsbinpic.s: New test. * ld-x86-64/tlsbin.rd: New test. * ld-x86-64/tlsbin.s: New test. * ld-x86-64/tlsbin.sd: New test. * ld-x86-64/tlsbin.td: New test. * ld-x86-64/tlslib.s: New test. * ld-x86-64/tlspic1.s: New test. * ld-x86-64/tlspic2.s: New test. * ld-x86-64/tlspic.dd: New test. * ld-x86-64/tlspic.rd: New test. * ld-x86-64/tlspic.sd: New test. * ld-x86-64/tlspic.td: New test.
2002-09-272002-09-27 David Carlton <carlton@math.stanford.edu>David Carlton2-1/+10
* config/djgpp/fnchange.lst: Add entries for gdb/testsuite/gdb.c++/m-static files.
2002-09-27Fix bug in support for trap instruction.Jim Wilson2-1/+5
* simops (OP_10007E0): Don't subtract 4 from PC.
2002-09-27 * MAINTAINERS: Add myself to the Write After Approval list.Jim Wilson1-0/+4
2002-09-27Add myself to write-after-approval section with Andrew Cagney's permission.Jim Wilson1-0/+1
2002-09-272002-07-12 Mo DeJong <supermo@bayarea.net>Andrew Cagney2-0/+10
* gdbmi.texinfo (var-evaluate-expression): Note that var-list-children must be invoked before child variable values can be evaluated.
2002-09-27Use @sc{gcc} and @sc{gdb}.Andrew Cagney2-4/+8
2002-09-272002-09-27 H.J. Lu <hjl@gnu.org>H.J. Lu5-1/+21
* gas/mips/mips-jalx.s: Add ".p2align 4". * gas/mips/mips16-jalx.s: Likewise. * gas/mips/mips-jalx.d: Check nop. * gas/mips/mips16-jalx.d: Likewise.
2002-09-27 * lib/insight-support.exp (gdbtk_start): Figure out whereKeith Seitz2-5/+19
the insight executable is based on where gdb is. Use this executable to start insight instead of gdb.
2002-09-27 * config/tc-avr.c (md_apply_fix3): Reinstate code handling pcrelAlan Modra2-0/+16
fixups to current or absolute section.
2002-09-272002-09-26Martin M. Hunt <hunt@redhat.com>Martin Hunt2-1/+6
* mips-tdep.c (find_proc_desc): Initialize startaddr.
2002-09-27daily updateAlan Modra1-1/+1
2002-09-27*** empty log message ***gdbadmin1-1/+1
2002-09-262002-09-26 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-8/+8
* rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy frame.
2002-09-262002-09-26 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-18/+34
* rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0. (rs6000_struct_return_address): Delete variable. (rs6000_store_struct_return): Update. (rs6000_gdbarch_init): Set extract_struct_value_address instead of deprecated_extract_struct_value_address. (rs6000_frame_align): New function. (rs6000_gdbarch_init): Set frame_align.
2002-09-26Fix v850 .offset pseudo-opJim Wilson2-5/+10
* config/tc-v850.c (v850_offset): Use frag_var instead of frag_now_fix and frag_more.
2002-09-262002-09-26 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-0/+4
* regs/: Delete directory.
2002-09-262002-09-26 Elena Zannoni <ezannoni@redhat.com>Elena Zannoni2-0/+10
* mi-cmd-disas.c (dump_insns): Add text only output for CLI. (do_mixed_source_and_assembly): Ditto.
2002-09-262002-09-26 Andrew Cagney <ac131313@redhat.com>Andrew Cagney6-38/+163
From Grace Sainsbury <graces@redhat.com>: * Makefile.in (gdbtk-main.o): New target. (gdb.o): New target. (main_h): Define. (main.o): Update dependencies. (gdb$(EXEEXT)): Add gdb.o. (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c. (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set. (SUBDIR_GDBTK_CLEAN): Set. (install-gdbtk): Install the insight binary. (uninstall-gdbtk): New target. (all-gdbtk, clean-gdbtk): New rule. * top.c (use_windows): Default to zero. * main.c: Include "main.h". (main): Delete. (struct captured_main_args): Delete. (gdb_main): New function. * main.h: New file. * gdb.c: New File. 2002-09-26 Andrew Cagney <ac131313@redhat.com> From Grace Sainsbury <graces@redhat.com>: * generic/gdbtk-main.c: New file.
2002-09-26 /gas/ChangeLogThiemo Seufer12-6/+67
* config/tc-mips.c (CPU_HAS_MIPS16): Add mips-lsi-elf as MIPS16 capable configuration. (macro_build): Check for MIPS16 capability, not for actual MIPS16 code generation. (mips_ip): Likewise. /gas/testsuite/ChangeLog * gas/mips/mips-jalx.d: New file, check jalx assembly. * gas/mips/mips-jalx.s: Likewise. * gas/mips/mips-no-jalx.l: Likewise. * gas/mips/mips-no-jalx.s: Likewise. * gas/mips/mips16-jalx.d: Likewise. * gas/mips/mips16-jalx.s: Likewise. * gas/mips/mips.exp: Add new tests. /opcodes/ChangeLog: * mips-dis.c (print_insn_mips): Always allow disassembly of 32-bit jalx opcode.
2002-09-26 * elfxx-mips.c (_bfd_mips_elf_fake_sections): Don't emit unneededThiemo Seufer2-1/+6
empty relocation sections.
2002-09-26 * config/tc-mips.c (append_insn): Fix jump overflow check.Thiemo Seufer5-10/+18
* gas/mips/jal-range.s: Fix jump overflow check. * gas/mips/jal-range.l: Likewise.
2002-09-26 * elf64-ppc.c (ppc_build_one_stub): Don't build glink stubs here.Alan Modra2-26/+29
(ppc64_elf_build_stubs): Build them here instead.
2002-09-262002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>Nathanael Nerode4-82/+82
* Makefile.tpl: Make subsituted variables more autoconfy. * Makefile.in: Regenerate. * configure: Make seds more autoconfy.
2002-09-26daily updateAlan Modra1-1/+1
2002-09-26*** empty log message ***gdbadmin1-1/+1
2002-09-25 * gdb.texinfo: Use GNU/Linux instead of Linux.Kevin Buettner2-3/+7
2002-09-252002-09-25 Andrew Cagney <cagney@redhat.com>Andrew Cagney13-50/+202
* frame.c: Include "gdb_string.h" and "builtin-regs.h". (frame_map_regnum_to_name): New function. (frame_map_name_to_regnum): New function. * frame.h (frame_map_name_to_regnum): Declare. (frame_map_regnum_to_name): Declare. * builtin-regs.c (builtin_reg_map_regnum_to_name): New function. * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare. * parse.c: Do not include "builtin-regs.h". (target_map_name_to_register): Delete function. (write_dollar_variable): Use frame_map_name_to_regnum. * parser-defs.h (target_map_name_to_register): Delete declaration. * expprint.c: Include "frame.h". (print_subexp): Use frame_map_regnum_to_name. * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name. * infcmd.c (registers_info): Use frame_map_name_to_regnum. 2002-09-25 Andrew Cagney <cagney@redhat.com> * gdb.base/pc-fp.exp, gdb.base/pc-fp.c: New test.
2002-09-252002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>Nathanael Nerode4-33/+38
* Makefile.tpl: Rewrite substituted lines to look autoconfy. * Makefile.in: Regenerate. * configure.in: Rewrite sed statements to look autoconfy.
2002-09-25 From "Anita Kulkarni" <AnitaK@kpit.com>Daniel Jacobowitz2-0/+11
* scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc* sections.
2002-09-25Really rebuild it this time. :sigh:Nathanael Nerode1-0/+4
2002-09-252002-09-25 Nathanael Nerode <neroden@gcc.gnu.org>Nathanael Nerode4-112/+78
* Makefile.tpl: Autogenerate *-target-* lists, dependencies of all-target-foo on configure-target-foo. * Makefile.def: Ditto. * Makefile.in: Rebuild.
2002-09-25 * mi-pthreads.exp (get_mi_thread_list): Check if expect_outKeith Seitz3-6/+35
exists before using it. (check_mi_and_console_threads): Likewise. * gdb669.exp (get_mi_thread_list): Likewise. (check_mi_and_console_threads): Likewise.
2002-09-252002-09-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-4/+8
* gdb.texinfo (Packets): Replace @samp{} with ``an empty string''.
2002-09-252002-09-25 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-0/+16
* rs6000-tdep.c (rs6000_frame_saved_pc): If the link register wasn't saved, and the next innermost frame is a dummy, return the dummy frame's link register.
2002-09-25 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE beforeAlan Modra4-4/+11
TARGET_PAGE_SIZE. * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate SEGMENT_SIZE alignment. * emulparams/elf64ppc.sh (DATA_ADDR): Delete. (SEGMENT_SIZE): Define.
2002-09-25Fix from Paul Breed:Jim Blandy2-0/+6
* main.c (captured_main): Add a `break' after the case for 'b'.
2002-09-25 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.Alan Modra2-91/+138
(fold_binary): Correct abs - non-abs case. (fold_trinary): New. Split out from exp_fold_tree.
2002-09-25*** empty log message ***gdbadmin1-1/+1
2002-09-25daily updateAlan Modra1-1/+1
2002-09-242002-09-22 Nathanael Nerode <neroden@gcc.gnu.org>Nathanael Nerode5-33/+1961
* Makefile.def: New file. * Makefile.tpl: New file. * Makefile.in: Generate from Makefile.tpl with 'autogen Makefile.def'. * configure.in: Minor rearrangement. Simplify tests.
2002-09-24 * configure.in: Add config header.Keith Seitz7-17/+733
Check for pthread.h. * configure: Regenerate. * config.in: New file. * pthreads.c: New file. * mi-pthreads.exp: New file to test thread functionality. * gdb669.exp: New file.
2002-09-24 * varobj.c (c_type_of_child): Use get_target_type insteadKeith Seitz2-5/+16
of TYPE_TARGET_TYPE.
2002-09-242002-09-24 Andrew Cagney <ac131313@redhat.com>Andrew Cagney2-2/+46
* gdb.gdb/complaints.exp (test_initial_complaints): Rename test_isolated_complaints. (test_empty_complaint): New function. (test_empty_complaints): New function. Check no output when no complaints.
2002-09-24 * elf32-sparc.c (elf32_sparc_relocate_section): Put R_SPARC_RELATIVEJakub Jelinek3-6/+23
addend into r_addend, not *r_offset. (elf32_sparc_finish_dynamic_symbol): Likewise. * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Clear xword at R_SPARC_RELATIVE's r_offset.