Fred Fish [Wed, 22 Nov 1995 04:26:03 +0000 (04:26 +0000)]
* config/m68k/xm-hp300hpux.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT.
Also force HAVE_MMAP to be defined since autoconf is currently broken
for detecting a working mmap under hpux.
* config/pa/xm-hppah.h (MMAP_BASE_ADDRESS): Tweak MMAP_BASE_ADDRESS
to a better value suggested by Jeffrey A Law ([email protected]).
Ian Lance Taylor [Tue, 21 Nov 1995 23:23:10 +0000 (23:23 +0000)]
* configure.in: Use BFD_NEED_DECLARATION.
* acconfig.h: Put NEED_DECLARATION_FPRINTF in @TOP@ section.
* configure, config.in: Rebuild with autoconf 2.6.
Ian Lance Taylor [Tue, 21 Nov 1995 21:15:49 +0000 (21:15 +0000)]
* ldmain.c (constructor_callback): Don't warn about BFD_RELOC_CTOR
being unsupported if this is not a relocaeable link and the input
BFD supports it, since ldctor_build_sets can cope with that case.
Ian Lance Taylor [Tue, 21 Nov 1995 19:13:51 +0000 (19:13 +0000)]
* configure.in: Strip --host and --target options from
CONFIG_ARGUMENTS, and always configure for --host only. Add
--with-cross-host option when building with a cross-compiler.
* configure: Canonicalize the arguments put into config.status by
always using `=' for an option with an argument. Pass a presumed
--host or --target explicitly.
Ken Raeburn [Tue, 21 Nov 1995 19:10:18 +0000 (19:10 +0000)]
* hist.c (scale_and_align_entries): Don't use DEFUN_VOID. Do UNITS_TO_CODE
adjustment unconditionally; compiler can optimize away zero-offset case. Refer
to scaled_addr, not aligned_addr.
Fred Fish [Tue, 21 Nov 1995 18:19:58 +0000 (18:19 +0000)]
* config/pa/xm-hppah.h: Define MMAP_BASE_ADDRESS and MMAP_INCREMENT.
Also force HAVE_MMAP to be defined since autoconf is currently broken
for detecting a working mmap under hpux.
Fred Fish [Tue, 21 Nov 1995 18:19:23 +0000 (18:19 +0000)]
* objfiles.c (map_to_address): Have gdb print a warning when it
is compiled with HAVE_MMAP but without both MMAP_BASE_ADDRESS and
MMAP_INCREMENT defined (thus making it appear mmap doesn't work).
Stu Grossman [Mon, 20 Nov 1995 22:40:34 +0000 (22:40 +0000)]
* infrun.c (wait_for_inferior): Add support for dynamic function
trampolines. These are pieces of code between the caller and the
callee that figure out the address of the callee's code at run
time. Upon entry, we can't figure out the callee's address, so we
set a breakpoint within the trampoline where the address will be
known, and continue the target. Once we hit the breakpoint, we
break at the callee's address and proceed as usual.
start-sanitize-gm
* config/tm-magic.h: Define DYNAMIC_TRAMPOLINE_NEXTPC. Turn off
IN_SOLIB_CALL_TRAMPOLINE and IN_SOLIB_RETURN_TRAMPOLINE.
end-sanitize-gm
Ian Lance Taylor [Mon, 20 Nov 1995 19:57:30 +0000 (19:57 +0000)]
* xcofflink.c (xcoff_link_input_bfd): Adjust the TOC anchor value
if it is not large enough to accomodate the entire TOC area with
signed 16 bit offsets.
(xcoff_write_global_symbol): Handle negative TOC offsets in global
linkage code.
(_bfd_ppc_xcoff_relocate_section): Adjust relocations against a
TOC anchor to use the TOC value used in the output file.
Fred Fish [Mon, 20 Nov 1995 19:22:40 +0000 (19:22 +0000)]
* objfiles.c (allocate_objfile): Change warning message about mapped
symbol tables so that it is obvious that they are not supported on
this particular machine rather than implying they are not supported
at all in this version of gdb.
Fred Fish [Sun, 19 Nov 1995 07:16:03 +0000 (07:16 +0000)]
* solib.c (solib_address): Return the name of the containing solib.
* solib.h (PC_SOLIB): New macro; define using solib_address.
* stack.c (print_frame_info) [PC_SOLIB]: If no function name, try
PC_SOLIB on the PC value.
Peter Schauer [Sat, 18 Nov 1995 12:19:25 +0000 (12:19 +0000)]
* annotate.c (annotate_source, annotate_frame_begin): Issue
`0x' prefix for the pc value, to remain consistent with previous
GDB versions.
* blockframe.c (find_pc_partial_function), config/pa/tm-hppa.h:
Remove Sun shared library transfer hack and
INHIBIT_SUNSOLIB_TRANSFER_TABLE_HACK, it is obsoleted by the
mst_solib_trampoline minimal symbols.
* blockframe.c (inside_main_func): Check main_func_*pc against
INVALID_ENTRY_*PC, not zero.
* symfile.c (init_entry_point_info): Initialize ei.*pc with
INVALID_ENTRY_*PC.
* mipsread.c (mipscoff_symfile_read): If the entry_file bounds
are still unknown after processing the partial symbols, then try
to set them from the minimal symbols.
* infcmd.c (registers_info): Error out if selected_frame is NULL.
* stack.c (return_command): Select new current frame silently if
not interactive.
* mipsread.c (read_alphacoff_dynamic_symtab): Ignore additional
DT_MIPS_LOCAL_GOTNO and DT_MIPS_GOTSYM entries.
* irix5-nat.c (solib_create_inferior_hook): Call solib_add only
if auto_solib_add_at_startup is nonzero.
(_initialize_solib): Add "set auto-solib-add" command.
* osfsolib.c (solib_create_inferior_hook): Call solib_add only
if auto_solib_add_at_startup is nonzero.
(_initialize_solib): Add "set auto-solib-add" command.
Stan Shebs [Sat, 18 Nov 1995 00:50:06 +0000 (00:50 +0000)]
* configure.tgt (powerpc-*-macos*): New target.
* emulparams/ppcmacos.sh: New file, PowerMac emulation.
* Makefile.in (ALL_EMULATIONS): Add eppcmacos.o.
(eppcmacos.c): New target.
* mpw-eppcmacos.c: Update.
* mpw-make.sed: Edit out attempts to use {GENSCRIPTS}.
Rob Savoye [Sat, 18 Nov 1995 00:25:35 +0000 (00:25 +0000)]
* configure.in: Change "idt" config to a generic "embed" config
for all mips*-*-ecoff or elf configurations.
* configure: Regenerate using autoconf 2.4.
* config/mips/{idt*.mt,tm-idt*.h}: Rename to "idt" part of the
name to "embed". Build remote-array.o along with IDT protocols.
* remote-array.c: Nuke setting the serial port to 4800 baud.
Ian Lance Taylor [Fri, 17 Nov 1995 15:36:38 +0000 (15:36 +0000)]
* gas/mri/immconst.d: New test.
* gas/mri/mri.exp: Run it.
* gas/mri/constants.s: Test immediate constants.
* gas/mri/constants.d: Corresponding change.
Ian Lance Taylor [Fri, 17 Nov 1995 15:05:44 +0000 (15:05 +0000)]
* elflink.h (NAME(bfd_elf,size_dynamic_sections)): Only create
DT_INIT and DT_FINI entries if the _init or _fini symbol is
defined or mentioned in a regular file.
PR 8462.
Ian Lance Taylor [Wed, 15 Nov 1995 23:17:21 +0000 (23:17 +0000)]
* targets.c (bfd_target): Change type of second argument to
_bfd_print_private_bfd_data from void * to PTR.
* libbfd-in.h (_bfd_generic_bfd_print_private_bfd_data): Cast
using PTR rather than void *.
* bfd-in2, libbfd.h: Rebuild.
* peicode.h (pe_print_private_bfd_data): Change vfile from void *
to PTR.
* elfxx-target.h (bfd_elfNN_bfd_print_private_bfd_data): Define as
_bfd_generic_bfd_print_private_bfd_data rather than casting
bfd_true.
Ian Lance Taylor [Wed, 15 Nov 1995 22:44:56 +0000 (22:44 +0000)]
* ld-srec/srec.exp: New tests.
* ld-srec/sr1.c, ld-srec/sr2.c, ld-srec/sr3.cc: New files.
* lib/ld.exp (ld_simple_link): Discard warnings about not being
able to find the entry symbol.
Ian Lance Taylor [Wed, 15 Nov 1995 17:21:26 +0000 (17:21 +0000)]
* binutils-all/objcopy.exp: If assembly fails, call unresolved.
Test running objcopy and strip on a final executable.
* binutils-all/testprog.c: New file.
* config/default.exp (STRIP, STRIPFLAGS): Define.
(binutils_compile): New procedure.
* lib/utils-lib.exp (default_binutils_compile): New procedure.