aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1994-07-29 From Kevin A. Buettner (kev@cujo.geg.mot.com).Fred Fish2-1/+8
* Makefile.in (coredep.o): Add inferior.h as dependency. * inflow.c: Add F_SETOWN to list of defines to check around code that uses F_SETOWN.
1994-07-29Keep gdbtk.c and gdbtk.tcl.Stu Grossman1-0/+2
1994-07-29* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): If using newlib,J.T. Conklin2-3/+7
set the -L and -B directory prefixes so we can link with it.
1994-07-29Obsolete file.J.T. Conklin1-247/+0
1994-07-28* sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.Ken Raeburn1-0/+8
* sparc-opc.c: Added sparclite extended FP operations, and versions of v9 impdep* instructions permitting specification of the OPF field.
1994-07-28update doc for sparclite 934 opcode table changesKen Raeburn1-22/+20
1994-07-28* tc-sparc.c (sparc_ip): Check more carefully for conflicting architectures.Ken Raeburn2-84/+108
(md_parse_option) [NO_V9]: Complain if v9 was selected. (md_show_usage): Derive architecture list in usage message from architecture_pname array. (cypress): Macro deleted. (op_hash): Don't initialize. (s_common): Use bfd_und_section_ptr instead of bfd_und_section. (BSR): New function. (sparc_ip): Use it for right-shift operations of 32 bits or more. (sparc_ip): Implement new operand type 'x'.
1994-07-28* config/mt-slite (LDFLAGS): If using the newlib in the tree, setJ.T. Conklin2-1/+9
the -B and -L prefixes so we can find the debugging stub.
1994-07-28 * Makefile.in (INSTALLED_LIBS, CLIBS, DEPFILES): Add support forStu Grossman10-206/+1141
--enable-xxx configure option by adding ENABLE_{CLIBS DEPFILES} where appropriate. * General hackery to support alternate user-interface. * breakpoint.c (mention, delete_breakpoint, enable_breakpoint, disable_breakpoint): Call hooks for alternate user-interface. * defs.h: Add declarations for alternate user-interface hooks. * main.c (main): Add --nw (and --nowindows) options to disable the GUI. * (near call to command_loop): Call command_loop_hook if set. * (fputs_unfiltered): Call fputs_unfiltered_hook if set. * stack.c: Call print_frame_info_listing_hook if set. * top.c (gdb_init): Initialize targets.c and utils.c prior to other files to make sure that calls to error and warning will work. Call init_ui_hook after everything else. * utils.c (query): Call query_hook if set. * (gdb_flush): Call flush_hook if set. * Change _initialize_utils to initialize_utils cuz we don't use automatic initialization of utils.c anymore. * Support for TK GUI. * Makefile.in: Add rule for gdbtk.o. * configure.in: Add support for --enable-gdbtk. * gdbtk.c: New file. Contains support routines for TK interface. * gdbtk.tcl: New file. Implements GUI policy. * remote.c: Get rid of #ifdef DONT_USE_REMOTE. It's no longer necessary.
1994-07-28* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it isJ.T. Conklin2-8/+21
there and we are using the gcc from the tree. (LD_FOR_TARGET): Look for ld in ../ld/ld.new.
1994-07-28Fix typoJ.T. Conklin1-1/+1
1994-07-28* Makefile.in (CC_FOR_TARGET, CXX_FOR_TARGET): Use newlib if it isJ.T. Conklin2-2/+15
there and we are using the gcc from the tree. * gdb.base/types.c: Removed.
1994-07-28* gdb.base/configure.in: Look for makefile fragments in ../config.J.T. Conklin2-12/+19
Recognize i386-*-netware. * gdb.c++/configure.in: Likewise.
1994-07-28 * Makefile.in (annotate.o): Add dependencies.Fred Fish2-0/+7
1994-07-28* sparclite/aload.c: Added new -q (quiet) option.J.T. Conklin1-0/+3
return 0 exit status if file was successfully downloaded.
1994-07-27* nlm/gdbserve.c: merge in command line argument parsing changesJ.T. Conklin2-23/+118
and bug fixes made to i386-nlmstub.c.
1994-07-27* i386-nlmstub.c: The returnLength field must be initializedJ.T. Conklin2-7/+16
before portConfig is passed to AIOGetPortConfiguration. Compare command line arguments with strnicmp(); args are case insensitive on netware.
1994-07-27add hp700 -x- m68k-coff for DSCKaren Christiansen1-3/+3
1994-07-27 * Makefile.in (DISTSTUFF): Add definition.Fred Fish2-69/+18
(diststuff): Add for new distribution support. (gdb.tar.Z, make-proto-gdb.dir, setup-to-dist, gdb-$(VERSION).tar.Z, make-proto-gdb-1, make-proto-testsuite.dir): Remove old distribution building rules, now uses standard distribution support in parent directory Makefile.in.
1994-07-27 * Makefile.in (GDB_SUPPORT_FILES): RemoveFred Fish1-0/+7
(setup-dirs-gdb, gdb.tar.gz, make-gdb.tar.gz): Remove old rules. (gdb.tar.gz): Add new rule to use standard distribution building mechanism. (Also, changed taz rule to abort building of unsanitary distributions - not recorded in ChangeLog)
1994-07-27* target.c (push_target): Cast result from xmalloc.Jim Kingdon2-1/+6
1994-07-27 * gdbint.texinfo: Removed mentions of many obsolete conditionals,Stan Shebs2-250/+187
described or fixed the descriptions of many others.
1994-07-27I80960XL support (sanitized), misc cleanup:Ken Raeburn3-2/+60
* config/tc-i960.h (TC_COFF_SET_MACHINE): New macro. Calls tc_headers_hook. * config/tc-i960.c (targ_has_iclass): Use I_CX | I_CX2 where I_CX was used previously. (tc_headers_hook): If I_CX2 is found, set flags to F_I960CA. * config/tc-i960.c (po_hash): Declaration deleted. (next_object_file_charP): Ditto. (regnames, aregs, coj): Now const. (parse_memop): Static array def_scale now const. (md_begin): Cast away const when passing hash routines addresses of values in regnames or aregs. (md_longopts): Added "link-relax" and "no-relax" hyphenated forms. Continue to accept one-word forms. (struct tabentry, arch_tab): Moved to top level from inside md_parse_option. Now const. (md_show_usage): Use arch_tab to generate usage message. Print hyphenated forms of relax options. * config/tc-i960.h (DEFINE_I960_AOUT, TC_S_IS_*, TC_S_*_SYSPROC, TC_S_FORCE_TO_*): Moved from here... * config/tc-i960.c: ... to here. Changed DEFINE_I960_AOUT stuff to test OBJ_AOUT and OBJ_BOUT directly. * config/tc-i960.h (CTRL, COBR, COJ, REG, MEM*, FBRA, CALLJ, M1-M3, REG_OPC, R_*, SFR, LIT, FP, OP, R, RS, RL, RSL, F, {R,F}{,L}{2,4}, M, SFR_OK, LIT_OK, FP_OK, REG_ALIGN, MEMOP, I_*): Macros deleted. * config/tc-i960.c (ARCH_XL): Define. (arch_tab): Include XL. (targ_has_sfr, targ_has_iclass): Handle XL. (tc_headers_hook): Set flags to F_I960XL for i960XL.
1994-07-27Some bits of COFF cleanup, and i960-coff support:Ken Raeburn1-0/+40
* config/obj-coff.h: Moved common includes and TARGET_FORMAT definitions together. (WORKING_DOT_WORD, WARN_SIGNED_OVERFLOW_WORD, OBJ_COFF_OMIT_OPTIONAL_HEADER, BFD_HEADERS, BFD) [!BFD_ASSEMBLER]: Moved these definitions to the start of the file, before the includes. (SYMBOLS_NEED_BACKPOINTERS, OBJ_COFF_MAX_AUXENTRIES): Always define these. (S_GET_ZEROES): Deleted. (S_SET_ZEROES): Moved to obj-coff.c. * config/obj-coff.c (obj_coff_* psuedo-op fns): Deleted forward declarations. (obj_pseudo_table): Moved to one version end of file, conditionalized internally. (stack typedef, stack_init, stack_delete, stack_push, stack_pop, tag_hash, tag_init, tag_insert, tag_find, tag_find_or_make): Moved to one combined version at top of file, unconditional. Deleted forward declarations. (s_get_name): Moved one copy of declarations to start of file. (def_symbol_in_progress): Ditto. Don't initialize. (S_SET_ZEROES): Moved here from obj-coff.h. (write_object_file): If TC_COFF_SET_MACHINE is defined, call it on the file headers. * config/obj-coff.c (seg_info_off_by_4): Now const and static. (SEG_INFO_FROM_SEG_NUMBER): Unused macro deleted. (previous_file_symbol, def_symbol_in_progress, symbol_externP, symbol_extern_lastP, last_functionP) [!BFD_ASSEMBLER]: Don't bother explicitly initializing to zero value. * config/obj-coff.c (fixup_segment) [TC_I960]: Use SF_GET_BALNAME and SF_GET_CALLNAME instead of the TC_S_IS_ versions.
1994-07-27i960xl changes (sanitized)Ken Raeburn3-27/+59
1994-07-27(howto_rellong, howto_iprmed, howto_optcall): Use HOWTO macro.Ken Raeburn1-9/+9
1994-07-27i960xl sanitization; keep some more ns32k related filesKen Raeburn1-0/+24
1994-07-26i960xl changes (sanitized); keep ns32k-dis.cKen Raeburn2-0/+42
1994-07-26i960xl support (sanitized)Ken Raeburn1-0/+21
1994-07-26i960xl opcode table changes (sanitized)Ken Raeburn2-0/+37
1994-07-26Tue Jul 26 18:20:46 1994 Paul Flinders (ptf@smee)Stan Shebs2-1/+9
* elfread.c (elf_symtab_read): Discard compiler labels generated by the Solaris 2.1/Intel SunPro compiler.
1994-07-26ns32k files; i960xl sanitizationKen Raeburn1-0/+23
1994-07-26 * elfcode.h (elf_adjust_dynamic_symbol): When handling a weakIan Lance Taylor1-0/+4
symbol, correct check to see whether the equivalent normal symbol was referenced.
1994-07-26 Add support for creating shared libraries under i386 ELF and SPARCIan Lance Taylor5-141/+412
ELF. Based on patches by Eric Youngdale <ericy@cais.cais.com>. * libelf.h (struct elf_link_hash_entry): Remove copy_offset field. Add got_offset and plt_offset fields. (ELF_LINK_HASH_REF_DYNAMIC_MULTIPLE): Don't define. (ELF_LINK_HASH_DEF_DYNAMIC_MULTIPLE): Don't define. (ELF_LINK_HASH_NEEDS_COPY): Define. (struct elf_backend_data): Add check_relocs field. (struct bfd_elf_section_data): Change relocs from PTR to Elf_Internal_Rela *. (struct elf_obj_tdata): Add local_got_offsets field. (elf_local_got_offsets): Define accessor macro. (bfd_elf32_link_create_dynamic_sections): Declare. (bfd_elf32_link_record_dynamic_symbol): Declare. (bfd_elf64_link_create_dynamic_sections): Declare. (bfd_elf64_link_record_dynamic_symbol): Declare. * elfcode.h (elf_slurp_reloc_table): Don't use the section data relocs field. (elf_link_record_dynamic_symbol): Make globally visible. Use macro to rename to NAME(bfd_elf,link_record_dynamic_symbol). (elf_link_add_object_symbols): If creating a shared library, put make all local symbols dynamic. Don't bother with the DYNAMIC_MULTIPLE flags. Call the check_relocs backend function if it is defined. (elf_link_create_dynamic_sections): Make globally visible. Use macro to rename to NAME(bfd_elf,link_create_dynamic_sections). If creating a shared library, make sure that _DYNAMIC is added as a dynamic symbol. (elf_link_read_relocs): New function. (NAME(bfd_elf,record_link_assignment)): If creating a shared library, always create symbols, and always make them dynamic. (elf_bfd_final_link): Permit creation of shared libraries. (elf_link_input_bfd): Use elf_link_read_relocs to get the relocs. * elf.c (_bfd_elf_link_hash_newfunc): Don't initialize copy_offset. Initialize got_offset and plt_offset. * elf32-target.h (elf_backend_check_relocs): Define as 0 if not defined. (elf32_bed): Initialize check_relocs field. * elf64-target.h (elf_backend_check_relocs): Define as 0 if not defined. (elf64_bed): Initialize check_relocs field. * elf32-i386.c (elf_howto_table): Change R_386_PLT32 and R_386_GOTPC to be pc_relative and pcrel_offset. (elf_i386_pic_plt0_entry): Define. (elf_i386_pic_plt_entry): Define. (elf_i386_create_dynamic_sections): Create a .got.plt section, and define _GLOBAL_OFFSET_TABLE_ at the start of it. If creating a shared library, make sure that _GLOBAL_OFFSET_TABLE_ is added as a dynamic symbol. Don't create .rel.bss if creating a shared library. (elf_i386_check_relocs): New function. (elf_i386_adjust_dynamic_symbol): Don't make a PLT entry if the symbol already has one. When making a PLT entry, set plt_offset. Don't create a copy reloc when creating a shared library. Don't set copy_offset, just set ELF_LINK_HASH_NEEDS_COPY. (elf_i386_allocate_dynamic_section): Remove. (elf_i386_size_dynamic_sections): Look through all the sections rather than assuming we know their names. Remove any empty reloc or plt sections. Only add a DT_DEBUG entry if not creating a shared library. Only add a DT_PLTGOT entry if there is a PLT. Add a DT_TEXTREL entry if required. (elf_i386_relocate_section): Permit undefined symbols when creating a shared library. Handle the special relocation types specially. (elf_i386_finish_dynamic_symbol): Create a PLT entry if plt_offset is set. If creating a shared library, produce a PIC PLT entry. Only mark a PLT symbol as undefined if it was not defined by a regular object file. Create a GOT entry if got_offset is set. Create a copy reloc if ELF_LINK_HASH_NEEDS_COPY is set. (elf_i386_finish_dynamic_sections): Change the handling of DT_RELSZ to simply subtract out the size of .rel.plt. If creating a shared library, produce PIC PLT code. (elf_backend_check_relocs): Define. * elf32-sparc.c (elf_sparc_howto_table): Change R_SPARC_GOT10, R_SPARC_GOT22, and R_SPARC_PC10 to not warn about reloc overflow. (elf32_sparc_create_dynamic_sections): If creating a shared library, make sure that _GLOBAL_OFFSET_TABLE_ is added as a dynamic symbol, and set the type to STT_OBJECT. Likewise for _PROCEDURE_LINKAGE_TABLE_. Don't create .rel.bss if creating a shared library. (elf32_sparc_check_relocs): New function. (elf32_sparc_adjust_dynamic_symbol): Don't make a PLT entry if the symbol already has one. When making a PLT entry, set plt_offset. Don't create a copy reloc when creating a shared library. Don't set copy_offset, just set ELF_LINK_HASH_NEEDS_COPY. (elf32_sparc_allocate_dynamic_section): Remove. (elf32_sparc_size_dynamic_sections): Look through all the sections rather than assuming we know their names. Only add a DT_DEBUG entry if not creating a shared library. Add a DT_TEXTREL entry if required. (elf32_sparc_relocate_section): Permit undefined symbols when creating a shared library. Handle the special relocation types specially. (elf32_sparc_finish_dynamic_symbol): Create a PLT entry if plt_offset is set. Only mark a PLT symbol as undefined if it was not defined by a regular object file. Create a GOT entry if got_offset is set. Create a copy reloc if ELF_LINK_HASH_NEEDS_COPY is set. (elf32_sparc_finish_dynamic_sections): Store dynobj in a local variable. (elf_backend_check_relocs): Define.
1994-07-26 * scripttempl/elf.sc: Copy several more relocation sections intoIan Lance Taylor1-0/+5
the output. Put .got.plt sections into .got.
1994-07-26 * gdb.base/corefile.exp: Change `else if' to `elseif', which isPeter Schauer1-0/+5
the correct TCL syntax.
1994-07-26 * target.c (nomemory): Fix prototype and routine to take correctStu Grossman2-3/+9
args.
1994-07-25* gdb.base/opaque.exp: use runto instead of messing around withJ.T. Conklin1-0/+11
breakpoints. * gdb.base/bitfields.exp: restart between tests on netware targets because breakpoints aren't relocated after target death. Run processes to completion. * gdb.base/{opaque,watchpoint}.exp: Use gdb_run_cmd.
1994-07-25* gdb.base/opaque.exp: use runto instead of messing around withJ.T. Conklin1-44/+11
breakpoints.
1994-07-25* Makefile.in (clean): Remove libgdb-files.Jim Kingdon2-1/+5
1994-07-25Update to reflect comings and goings of ns32k and mach-related filesStan Shebs2-0/+6
1994-07-25 * configure.in (pc532mach_vec): Change to pc532machaout_vec.Stan Shebs2-5/+25
* config.bfd (ns32k-*-netbsd*): Use ns32k-nbsd as bfd_name. * Makefile.in (ALL_MACHINES): Add cpu-ns32k.o. (BFD32_BACKENDS): Add aout-ns32k.o, netbsd532.o, m88kmach3.o, pc532-mach.o. * targets.c (pc532machaout_vec): Use instead of pc532mach_vec. * config/pc532-mach.mt (DEFAULT_VECTOR): Ditto. (SELECT_VECS): Remove. * config/ns32k-nbsd.mt: New file, was ns32k-netbsd.mt. * config/ns32k-netbsd.mt: Remove, name too long.
1994-07-25 * coredep.c: Include inferior.h.Stan Shebs2-0/+5
1994-07-25* Makefile.in (LD_FOR_TARGET): Look for ld in ../ld/ld.new.J.T. Conklin2-25/+122
* i386-nlmstub.c: Add support for NODE, PORT and BAUD command line arguments.
1994-07-25 * objdump.c (objdump_print_address): Correct handling of end ofIan Lance Taylor1-0/+5
symbols when looking for next symbol with a different value.
1994-07-25 * configure.in: Warn about use of /usr/ucb/cc on Solaris. FromIan Lance Taylor2-0/+32
Bill Cox <bill@cygnus.com>.
1994-07-24 * Makefile.in: Remove extra tabs that confuse some versionsFred Fish2-31/+35
of "make". Use the newly built gdb to test with by default, rather than the first one in the tester's search path.
1994-07-23 * gdb.base/whatis.exp (v_signed_short_array): Fix a typo.Stan Shebs1-0/+2
1994-07-23 * symfile.c (deduce_language_from_filename): Recognize .S as asm,Stan Shebs1-0/+3
.cp as C++, alphabetize better.
1994-07-23 * gdb.base/help.exp: Update expected add-symbol-file, ignore, andStan Shebs1-0/+5
condition help.