aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
1997-06-18 * lib/gdb.exp(gdb_init): Pass our arguments to default_gdb_initBob Manson2-1/+6
properly.
1997-06-18 * elflink.h (elf_link_add_object_symbols): Don't let a commonIan Lance Taylor2-2/+15
symbol in a regular object override a common symbol in a shared object if the latter was found via an indirect symbol.
1997-06-18 lib/gdb.exp(gdb_expect): Handle getting a value for $timeoutBob Manson2-10/+14
more gracefully.
1997-06-17 * configure.in (is_cross_compiler): If we're buildingBrendan Kehoe2-7/+18
mips-sgi-irix6* native, turn on ENABLE_MULTILIB and set TARGET_SUBDIR. forces it to build libiberty w/ the newly built compiler, solving the n32 vs o32 problem doing the tests
1997-06-17 * sparc-opc.c: The fcmp v9a instructions take an integer registerIan Lance Taylor2-43/+163
as a destination, not a floating point register. From Christian Kuehnke <Christian.Kuehnke@arbi.Informatik.Uni-Oldenburg.DE>.
1997-06-17 * procfs.c (proc_set_exec_trap, procfs_init_inferior, procfs_wait,Peter Schauer2-53/+16
unconditionally_kill_inferior): Undo Oct 26 1996 and Apr 26 1997 changes to trace PRFS_STOPTERM and handle PR_DEAD. These changes tried to work around a problem with an early DU 4.0 release, but they trigger subtle timing dependent kernel bugs in older OSF/1 releases.
1997-06-17 * lib/gdb.exp(gdb_expect): Declare errorInfo and errorCodeBob Manson2-0/+7
as global variables.
1997-06-17 * Makefile.in (all-sn): Depend on all-grep.Tom Tromey2-1/+5
1997-06-17 * cofflink.c (_bfd_coff_link_input_bfd): If stripping debuggingIan Lance Taylor1-0/+5
symbols, skip N_ABS symbols with debugging storage classes. PR 12630. Also a couple of warning and formatting fixes.
1997-06-17 * dwarfread.c (new_symbol): Use SYMBOL_VALUE_ADDRESS, instead ofFred Fish2-3/+17
SYMBOL_VALUE, to set the value of LOC_STATIC symbols.
1997-06-17 * infrun.c (wait_for_inferior): Mark registers as invalid whenMark Alexander5-433/+849
stepping over an instruction that triggered a watchpoint. * remote-mips.c: Numerous changes to support hardware breakpoints and watchpoints on LSI MiniRISC and TinyRISC boards. * mips-tdep.c: Move MIPS16-related macros to config/mips/tm-mips.h. (mips_breakpoint_from_pc): Account for different breakpoint instructions used by PMON and IDT monitor. * config/mips/tm-embed.h: Enable hardware breakpoints on embedded MIPS targets. * config/mips/tm-mips.h: Define breakpoint instructions for PMON and IDT monitor. Move MIPS16-related macros here from mips-tdep.c.
1997-06-17 * lib/gdb.exp: Close connection to remote host if gdb doesn'tBob Manson2-3/+15
initialize. (default_gdb_init): New procedure; allow gdb_init to be overridden by a target configuration file. (gdb_expect): Pass the timeout to remote_expect. * config/dos.exp(dos_wait): Add timeout parameter. * lib/remote.exp(remote_expect): Add timeout parameter. (remote_wait): Ditto. (standard_wait): Ditto. Also give up if the program outputs more than 512,000 bytes. * config/vxworks.exp: Use timeout parameter instead of setting timeout variable. * config/dos.exp: Ditto. * config/ddb.exp: Ditto. * lib/mondfe.exp: Ditto. * lib/rlogin.exp: Ditto. * lib/telnet.exp: Ditto. * config/base68k.exp: Ditto. * config/i386-bozo.exp: Ditto. * config/gdb-comm.exp: Ditto. * config/gdb_stub.exp: Ditto. * config/i960.exp: Ditto. * config/ddb-ether.exp: Ditto. * config/sim.exp: Ditto. * lib/g++.exp(g++_init): Use g++_include_flags instead of making up the includes ourselves.
1997-06-16whitespace tweaksIan Lance Taylor1-18/+18
1997-06-16Mon Jun 16 19:18:21 1997 Geoff Keating <geoffk@ozemail.com.au>Ian Lance Taylor2-5/+18
* scripttempl/elfppc.sc: Correct .rela.sdata entries. * scripttempl/elfppc.sc: Put the PLT between the small and large BSS segments. * emulparams/elf32ppc.sh (TEXT_START_ADDR): The ABI says `A program base of 0x02000000 is recommended...' because otherwise shared libraries are less efficient. We use 0x01800000 because otherwise it's impossible to branch to location 0, for instance if you have an undefined weak symbol.
1997-06-16Mon Jun 16 19:12:51 1997 Geoff Keating <geoffk@ozemail.com.au>Ian Lance Taylor2-21/+40
* config/tc-ppc.h (tc_fix_adjustable): Don't let the assembler calculate relocations to any external symbol, because we might be linking a shared object and the symbol might be overriden or moved (for instance, moved into a static executable's .bss section). (GLOBAL_OFFSET_TABLE_NAME): Delete. This is an i386 wierdness. * config/tc-ppc.h (tc_fix_adjustable): GOT-based relocations can't be calculated by the assembler. * config/tc-ppc.c (md_apply_fix3): Handle @plt or @local branch whose destination lies in the same file, by ignoring the @plt or @local and aiming the branch at its destination.
1997-06-16 * configure.in: Use mh-ppcpic and mt-ppcpic for powerpc*-* targets.Ian Lance Taylor2-1/+5
1997-06-16Mon Jun 16 19:06:41 1997 Geoff Keating <geoffk@ozemail.com.au>Ian Lance Taylor4-0/+23
* mh-ppcpic: New file. * mt-ppcpic: New file.
1997-06-16Mon Jun 16 18:56:27 1997 Geoff Keating <geoffk@ozemail.com.au>Ian Lance Taylor2-152/+440
* elf32-ppc.c (ppc_elf_relocate_section): Don't emit R_PPC_REL* relocs in shared libraries which refer to local symbols. Cope with addend when processing a GOT relocation. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Only create symbols for sections that the linker didn't create. (ppc_elf_finish_dynamic_sections): Only try to write out a section symbol if it was created in ppc_elf_size_dynamic_sections. (ppc_elf_relocate_section): Complain if we have to generate a reloc relative to a section for which we didn't output a symbol. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Clean up. PLT relocs are 'rela' relocs, like everything else. .rela.plt is not a read-only section, so we don't have to special-case it. * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Entries in the .rela.bss section are (of course) 'rela' relocs not 'rel' relocs. * elf32-ppc.c (ppc_elf_check_relocs): Initialise srelgot. (ppc_elf_relocate_section): @got offsets are 4 from start of the actual .got section. * elflink.c (_bfd_elf_create_got_section): The three reserved words start from the symbol '_GLOBAL_OFFSET_TABLE_'. * elf32-ppc.c (ppc_elf_size_dynamic_sections): '.rela' is 5 characters, not 4. * elf32-ppc.c (ppc_elf_check_relocs): Use _bfd_elf_create_got_section to create the GOT rather than ppc_elf_create_linker_section. Create the '.rela.got' section ourselves. (ppc_elf_finish_dynamic_symbol): Set up GOT relocations when a symbol has a GOT entry. (ppc_elf_relocate_section): Record when a symbol is used through the GOT, and allocate space in the GOT for each such symbol. (ppc_elf_adjust_dynamic_symbol): Delete unused .got.plt stuff. (ppc_elf_create_linker_section): Delete unused LINKER_SECTION_GOT stuff. * elf32-ppc.c (ppc_elf_howto_raw): GOT16_HA relocs should be treated in a similar way to ADDR16_HA relocs. (ppc_elf_relocate_section): PLTREL24 relocs do not get copied into shared objects; the linker must deal with them. (ppc_elf_create_linker_section): Stop setting _GLOBAL_OFFSET_TABLE_ to the wrong value; delete unused LINKER_SECTION_PLT stuff. (ppc_elf_check_relocs): Delete unused LINKER_SECTION_PLT stuff. (ppc_elf_finish_dynamic_sections): Use BFD calls to get GOT section, not ELF-specific calls. (elf_backend_plt_not_loaded): Set to 1. (elf_backend_got_symbol_offset): Set to 4. * elf-bfd.h (elf_backend_data): Add 'plt_not_loaded' member for when ld.so fills in the PLT; and 'got_symbol_offset' member. * elflink.c (_bfd_elf_create_dynamic_sections): Apply plt_not_loaded member. (_bfd_elf_create_got_section): Apply got_symbol_offset. * elfxx-target.h (elf_backend_plt_not_loaded): Set default to 'loaded'. (elf_backend_G_O_T_offset): Set default to 0. (elfNN_bed): Set added fields. * elf32-ppc.c (ppc_elf_size_dynamic_sections): Was setting DT_RELENT in shared objects; should be DT_RELAENT. * elf32-ppc.c (ppc_elf_relocate_section): Propagate R_PPC_ADDR16_HA relocs to shared objects. Cope with case where such a reloc (in a non-shared object) refers to a symbol that's not defined.
1997-06-16 * config/tc-ppc.c (ppc_insert_operand): In 32 bit mode, with aIan Lance Taylor2-17/+61
signed operand, sign extend a 32 bit value to the host size. Permits dubious usage like addi %r6,%r6,0xfffffeff to assemble on a 64 bit host as it does on a 32 bit host.
1997-06-16 * Makefile.in (CFLAGS): Subsitute from configure script. FromIan Lance Taylor2-1/+6
Jeff Makey <jeff@cts.com>.
1997-06-16 * configure: Set CFLAGS and CXXFLAGS, and substitute them intoIan Lance Taylor3-4/+37
Makefile. From Jeff Makey <jeff@cts.com>. * Makefile.in: Add comment for CFLAGS and CXXFLAGS.
1997-06-16creditIan Lance Taylor1-0/+1
1997-06-16 * Makefile.in (CC, CFLAGS): Substitute from configure script.Ian Lance Taylor2-62/+151
1997-06-16 * Makefile.am (INCLUDES): Add -DDEBUG.Ian Lance Taylor3-31/+44
* Makefile.in: Rebuild.
1997-06-16 * elf32-i386.c (elf_i386_relocate_section): When generating aIan Lance Taylor2-3/+14
shared library, do the relocation if the input section is not allocated in memory.
1997-06-16 * Makefile.in (DISTBISONFILES): Remove.Ian Lance Taylor2-11/+6
(taz): Don't futz with DISTBISONFILES. Change BISON to use $(DEFAULT_YACC).
1997-06-16Mon Jun 16 14:42:14 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor2-2/+15
* elfcode.h (put_signed_word): Define. (get_signed_word): Define. (elf_swap_reloca_in): Use get_signed_word for the r_addend field. (elf_swap_reloca_out): Use put_signed_word for the r_addend field. * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Use bfd_get_signed_32 to set the r_addend field. * elf64-mips.c (mips_elf64_swap_reloca_in): Use bfd_h_get_signed_64 to set the r_addend field.
1997-06-16 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): CallIan Lance Taylor2-52/+93
elf_link_assign_sym_version before elf_adjust_dynamic_symbol. (elf_fix_symbol_flags): New static function, broken out of elf_adjust_dynamic_symbol. (elf_adjust_dynamic_symbol): Call elf_fix_symbol_flags. (elf_link_assign_sym_version): Likewise. Permit a symbol to be forced local even if NEEDS_PLT is set. When forcing a symbol to be local, clear NEEDS_PLT. (elf_link_output_extsym): Remove unused local bed.
1997-06-16 * gas/m68k/pcrel.d: Update for m68k disassembler changes.Ian Lance Taylor1-0/+14
* gas/m68k/operands.d: Likewise.
1997-06-16 * m68k-dis.c (print_insn_arg): Print case 7.2 using %pc@()Ian Lance Taylor1-0/+4
syntax. From Roman Hodek <rnhodek@faui22c.informatik.uni-erlangen.de>.
1997-06-16 * i386-dis.c (twobyte_has_modrm): Fix pand.Ian Lance Taylor1-0/+4
1997-06-16Mon Jun 16 14:10:00 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor1-0/+20
* i386.h: Fix pand opcode.
1997-06-16Mon Jun 16 14:08:38 1997 Michael Taylor <mbt@mit.edu>Ian Lance Taylor2-50/+197
* i386-dis.c (dis386_twobyte): Fix pand and pandn.
1997-06-16Mon Jun 16 13:59:18 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor1-0/+9
* symbols.c (copy_symbol_attributes): Copy BSF_OBJECT flag. * config/obj-elf.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Copy size expression. * config/obj-multi.h (OBJ_COPY_SYMBOL_ATTRIBUTES): Define instead of obj_copy_symbol_attributes.
1997-06-16 * config/tc-i386.c (i386_operand): Use alloca rather than a fixedIan Lance Taylor2-29/+48
buffer size to make a copy of the symbol.
1997-06-16Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor4-10/+76
* ldlang.c (lang_place_undefineds): Add \n in einfo call. (lang_size_sections): Likewise. * ldlex.l: Likewise. * emultempl/aix.em (gld${EMULATION_NAME}_read_file): Likewise. * emultempl/mipsecoff.em (gld${EMULATION_NAME}_after_open): Likewise. (check_sections): Likewise. (gld${EMULATION_NAME}_after_allocation): Likewise. * emultempl/pe.em (gld_$${EMULATION_NAME}_before_allocation): Likewise. * mpw-eppcmac.c (gldppcmacos_read_file): Likewise. * mpw-idtmips.c (gldmipsidt_after_open): Likewise. (check_sections): Likewise. (gldmipsidt_after_allocation): Likewise.
1997-06-16Mon Jun 16 12:49:36 1997 H.J. Lu <hjl@gnu.ai.mit.edu>Ian Lance Taylor1-0/+4
* ldemul.c (ldemul_choose_mode): Remove unused einfo argument.
1997-06-16 * Makefile.in (OBJS): Put @extra_objects@ on the same line asIan Lance Taylor2-2/+8
macro.o.
1997-06-16 * configure.in: Build itl, db, sn, etc., when building for nativeIan Lance Taylor3-20/+32
cygwin32. * Makefile.in (LD): New variable. (EXTRA_HOST_FLAGS): Pass down LD. ($(DO_X)): Likewise. Mon Jun 16 11:10:35 1997 Philip Blundell <Philip.Blundell@pobox.com> * Makefile.in (INSTALL): Use $(SHELL) when executing install-sh.
1997-06-14 * config/monitor.exp(gdb_load): Fix typo in regexp.Bob Manson2-12/+21
Fixes last night's tcl error mesages.
1997-06-13 * fix earlier checkin errorMichael Snyder1-3/+0
1997-06-13Fri Jun 13 13:44:47 1997 Michael Snyder (msnyder@cleaver.cygnus.com)Michael Snyder8-18/+120
* config/mips/tm-tx39[l].h, tx39[l].mt: change r3900 target to tx39. [also clean up sanitization]
1997-06-13 * mn10300-tdep.c (mn10300_analyze_prologue): Fix some comments.Jeff Law1-0/+8
Add missing return statements after finding an "add imm{16,32},sp" instruction. (mn10300_frame_chain): Add in size of our register save area to find our caller's frame if our caller does not have a frame pointer. Fixes some problems debugging optimized code.
1997-06-13 * symfile.c (generic_load): Check return code of target_write_memory.David Edelsohn2-2/+8
1997-06-13 * config/i386/nm-linux.h: Enable prototypes that were #ifdef out.Fred Fish12-53/+875
* config/tm-sysv4.h (in_plt_section): Add prototype. * maint.c (maintenance_translate_address): Avoid assignment inside if, per GNU coding standards. * symfile.c (simple_read_overlay_table): Avoid assignments inside if, per GNU coding standards. * monitor.c (parse_register_dump): Is really a void function. Add prototype. (monitor_read_memory): Remove unused variable "name". (monitor_read_memory): Remove unused variable "regbuf". (monitor_open): Remove unused variable "i". (get_hex_word): Apparently unused, #if away for now. (from_hex): Ditto. * i386v4-nat.c (supply_fpregset): Remove unused variable "regi". (fill_fpregset): Remove unused variables "regi", "to", "from" and "registers". * remote-e7000.c (ctype.h): Include. (e7000_insert_breakpoint): #if away unused arg used by unused expr. * frame.h (generic_get_saved_register): Add prototype. (enum lval_type): Add partial forward decl. * dsrec.c (make_srec): Remove unused variable "type_code". * remote-sim.c (gdbsim_wait): Handle sim_running and sim_polling cases by just ignoring them. (command.h): Include. * java-exp.y (parse_number): Remove unused variable "unsigned_p". * java-lang.c (gdbcore.h): Include for prototypes. (type_from_class): Remove unused variable "ftype". (type_from_class): Remove unused variable "name_length". (evaluate_subexp_java): Add default case to handle remaining enumerations. * java-valprint.c (c-lang.h): Include for prototypes. * symfile.c (simple_read_overlay_region_table): #if away unused function. (simple_free_overlay_region_table): Ditto. (overlay_is_mapped): Add default case to switch. (simple_read_overlay_region_table): Ditto. (simple_read_overlay_region_table): Add prototype. * symtab.c (fixup_symbol_section): Remove unused msym variable. (fixup_psymbol_section): Ditto. (find_pc_sect_symtab): Make distance a CORE_ADDR. * utils.c: Add comment about t_addr being either unsigned long or unsigned long long. (paddr): Change formats to match actual types args are cast to. (preg): Ditto. (paddr_nz): Ditto. (preg_nz): Ditto.
1997-06-13 * configure.in (targargs): Strip out any supplied --build argumentBob Manson2-2/+8
before adding our own. Always add --build.
1997-06-13 * sh-tdep.c (symfile.h): Include.Fred Fish3-1/+16
(gdb_string.h): Include. (sh_fix_call_dummy): Ifdef away, currently unused. * config/sh/tm-sh.h (pop_frame): Add prototype. * config/sh/tm-sh.h (sh_set_processor_type): Add prototype.
1997-06-13 * defs.h (perror_with_name): Is a NORETURN function.Fred Fish11-28/+501
* utils.c (perror_with_name): Is a NORETURN function. (error): Is NORETURN independently of ANSI_PROTOTYPES. * symtab.c (fixup_symbol_section): Remove prototype. * symtab.h: (fixup_symbol_section): Add prototype. * m32r-rom.c (report_transfer_performance): Add prototype. * sparclet-rom.c: Ditto. * dsrec.c: Ditto. * c-exp.y (parse_number): Cast args to float* or double* as appropriate for conversion format. * java-exp.y (parse_number): Ditto. * Makefile.in (c-exp.tab.c): Remove #line lines that refer to nonexistant y.tab.c file. (java-exp.tab.c): Ditto. (f-exp.tab.c): Ditto. (m2-exp.tab.c): Ditto. start-sanitize-gdbtk * gdbtk.c (gdbtk_init): Make truth value test explicit. Remove unused static variable "Gdbtk_Library". end-sanitize-gdbtk
1997-06-13 * configure.in (targargs): Pass --build if we're doingBob Manson2-1/+6
a cross-compile. Fix problems with the build defaulting to the host value if it isn't specified.
1997-06-13 * gdb.base/funcargs.exp: Remove spurious suppress tests call.Bob Manson2-79/+92