Ian Lance Taylor [Mon, 28 Nov 1994 16:21:59 +0000 (16:21 +0000)]
* gas/mips/ld.d: Adjust to work for both big and little endian
code.
* gas/mips/ld.s, gas/mips/lif-empic.d: Likewise.
* gas/mips/lifloat.d, gas/mips/ulh-empic.d: Likewise.
* gas/mips/ulh.d, gas/mips/ulw.d, gas/mips/ush.d: Likewise.
* gas/mips/usw.d: Likewise.
Jeff Law [Mon, 28 Nov 1994 07:54:07 +0000 (07:54 +0000)]
* config/tc-hppa.h (pa_check_eof): Declare new extern function.
(tc_frob_file): Define to call pa_check_eof.
* config/tc-hppa.c (pa_check_current_space_and_subspace): New
function to verify the current space and subspace are reasonable.
Call for the appropriate pseudo-ops and before instruction parsing.
(pa_check_eof): New function to verify enter/exit and proc/procend
pairs match at EOF.
(pa_code): Simplify.
Jeff Law [Sat, 26 Nov 1994 04:39:07 +0000 (04:39 +0000)]
* tm-hppa.h (skip_trampoline_code): Add extern decl.
* hppa-tdep.c (hppa_pop_frame): Silently restart the inferior and
allow it to execute any return path trampoline code. Stop the
inferior and give the user control when the trampoline has
finished executing.
(in_solib_call_trampoline): Handle export stubs which also perform
parameter relocations.
(in_solib_return_trampoline): Likewise.
Peter Schauer [Fri, 25 Nov 1994 21:48:02 +0000 (21:48 +0000)]
Beginnings of template debugging tests.
* gdb.c++/templ-info.cc: New file to test for template
debugging capability of the compiler.
* gdb.c++/Makefile.in: Add rule to build templ-info.exp from
templ-info.cc.
* gdb.c++/templates.cc: Add explicit template instantiations
to enable compiling with -fno-implicit-templates. Add destructor
and 'value' method to T5 class for template tests.
* gdb.c++/templates.exp: Add testcases for printing of template
types, setting breakpoints on template methods and calling a
template method.
Peter Schauer [Fri, 25 Nov 1994 21:46:52 +0000 (21:46 +0000)]
* coffread.c, symfile.h (coff_getfilename): Make it static again.
* xcoffread.c (coff_getfilename): Use a static copy from
coffread.c, modified for accessing the static xcoff strtbl.
Jeff Law [Fri, 25 Nov 1994 09:21:49 +0000 (09:21 +0000)]
* hppa-tdep.c (in_solib_call_trampoline): Recognize calls through
_sr4export and $$dyncall as trampolines. Likewise for long-call
stubs and parameter relocation stubs.
(in_solib_return_trampoline): Recognize a return trampoline for
return value relocation stubs.
Jeff Law [Fri, 25 Nov 1994 07:32:51 +0000 (07:32 +0000)]
* hp-symtab.h: New file describing the debug symbols emitted
by the HP C compilers.
* hpux-symtab.h: Deleted.
NOTE: hpux-symtab.h was the HP copyrighted description and data structures
for the debug symbols emitted by the various HP compilers (C, C++, Fortran,
Cobol, Pascal, Modula-2, Cobol, etc).
hp-symtab.h is my rewritten version which only describes the debug symbols
used by the HP C compiler. hp-symtab.h is intended to be copyrighted
by the FSF as part of GDB.
Jeff Law [Thu, 24 Nov 1994 08:02:01 +0000 (08:02 +0000)]
* blockframe.c (find_pc_partial_function): Inhibit mst_trampoline
symbol special handling when INHIBIT_SUNSOLIB_TRANSFER_TABLE_HACK
is defined.
* infrun.c (IN_SOLIB_CALL_TRAMPOLINE): Renamed from
IN_SOLIB_TRAMPOLINE. All callers changed.
(IN_SOLIB_RETURN_TRAMPOLINE): Provide default definition.
(wait_for_inferior): Handle single stepping through trampolines on
return paths from shared libraries.
* config/pa/tm-hppa.h (IN_SOLIB_CALL_TRAMPOLINE): Use
in_solib_call_trampoline.
(IN_SOLIB_RETURN_TRAMPOLINE): Use in_solib_return_trampoline.
(INHIBIT_SUNSOLIB_TRANSFER_TABLE_HACK): Define.
* hppa-tdep.c (in_solib_call_trampoline): New function.
(in_solib_return_trampoline): New function.
* sh-opc.h (mov.l gbr): Get direction right.
* sh-dis.c (print_insn_shx): New function.
(print_insn_shl, print_insn_sh): Call print_insn_shx to
print opcodes with right byte order.
* remote-e7000.c (HARD_BREAKPOINTS): Reenable.
(BC_BREAKPOINTS): Disable.
* sh-tdep.c (print_insn): Cope with big and little endian machines.
* sh/sh.mt: Use libsim.a
* sh/tm-sh.h (TARGET_BYTE_ORDER_SELECTABLE): New
(BREAKPOINT): Changed to be byteorder independent.
* config/obj-coff.h (TARGET_FORMAT): Select between coff-shl and coff-sh.
* config/sh.mh (TARG_CPU_DEPENDENTS): Get it right.
* config/tc-sh.c (little): New function.
(md_parse_option): Notice new option.
(build_relax, build_Mytes, md_atof, md_convert_frag, md_apply_fix):
Cope with little endian data.
* config/tc-sh.h (COFF_MAGIC, LISTING_HEADER): Endian dependent.
Stan Shebs [Wed, 23 Nov 1994 03:27:40 +0000 (03:27 +0000)]
Maintenance commands to report time and space usage.
* main.c (display_time, display_space): New globals.
(main): Add argument --statistics to enable reporting, display
time and space after startup is done.
* maint.c (maintenance_time_display, maintenance_space_display):
New commands.
* top.c (command_loop): Display time and space after command
execution.
* top.c (pre_init_ui_hook): New global.
(gdb_init): If pre_init_ui_hook set, call before all other init.
Stan Shebs [Fri, 18 Nov 1994 23:03:29 +0000 (23:03 +0000)]
* defs.h, infcmd.c (reg_names): Don't declare as constant.
* remote-mips.c (mips_open): Read and set the processor type.
* mips-tdep.c (mips_set_processor_type): Always return an int.
J.T. Conklin [Fri, 18 Nov 1994 21:57:22 +0000 (21:57 +0000)]
* nlm/alpha.c (strtol): Removed, it is provided by NetWare C library.
* nlm/gdbserve.def (strtol): Added to import list.
* nlm/fake_aio.c: Removed file, no longer used.
* objcopy.c (add_strip_symbol): New function, adds a name to an
explicit list of symbols to strip.
(is_strip_symbol): New function, reports whether the name argument
is in the explicit list.
(filter_symbols): Check against is_strip_symbol above all.
(strip_main): Recognize -N option. If used, don't default to
strip_all.
(copy_main): Recognize -N option.
(strip_usage): Document -N and --strip-symbol options.
(copy_usage): Ditto.
* objcopy.1, strip.1, binutils.texi: Document -N and
--strip-symbol options.
Stan Shebs [Fri, 18 Nov 1994 02:18:09 +0000 (02:18 +0000)]
Support for different MIPS IDT processor models.
* mips-tdep.c (mips_processor_type, tmp_mips_processor_type,
mips_generic_reg_names, mips_r3041_reg_names,
mips_r3051_reg_names, mips_r3081_reg_names,
mips_processor_type_table): New globals.
(mips_do_registers_info): Don't display register if name is empty.
(mips_set_processor_type_command): New command.
(mips_show_processor_type_command): New command.
(mips_set_processor_type): New function.
(mips_read_processor_type): New function.
* config/mips/tm-idt.h (DEFAULT_MIPS_TYPE): New macro.
* config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): New macro.
(NUM_REGS): Increase to account for all CP0 registers.
(REGISTER_NAMES): Add empty names for CP0 registers.
(FIRST_EMBED_REGNUM, LAST_EMBED_REGNUM): Adjust.
(PRID_REGNUM): New macro.
Ian Lance Taylor [Thu, 17 Nov 1994 20:11:15 +0000 (20:11 +0000)]
Patches from [email protected] (Martin Pirker).
* config/i386linux.mh: New file; set HOSTING_CRT0.
* genscripts.sh: Don't put ${libdir} in LIB_PATH if it is
/usr/lib, since that is already in LIB_PATH.
Jeff Law [Wed, 16 Nov 1994 23:40:44 +0000 (23:40 +0000)]
* scripttempl/hppaelf.sc (.text): Handle a use rdefined text start
address.
(.data, .bss): If "-N", then place the data/bss just after the end
of the .text section rather than at the default 0x40000000.
Jeff Law [Wed, 16 Nov 1994 04:58:48 +0000 (04:58 +0000)]
* config/tc-hppa.c (pa_align): New function. Aligns the current
offset within the current subspace along with updating the
alignment of the subspace itself.
(pa_subspace): Default alignment to one byte rathern than zero
bytes to avoid setting alignment to log2(0).
(md_pseudo_table): Use pa_alignment for .align.
Jeff Law [Tue, 15 Nov 1994 18:35:32 +0000 (18:35 +0000)]
* gas/config/tc-hppa.h (obj_frob_symbol): Delete ELF specific
definition.
(tc_frob_symbol): Make this condition on OBJ_SOM or OBJ_ELF. For
ELF, subtract out the symbol->section->vma for non-common symbols.
* gas/testsuite/gas/hppa/unsorted/unsorted.exp (importbug): Tweak
to match current expected ELF output.
* gas/testsuite/gas/hppa/reloc/reloc.exp
(do_plabel_relocation_test, do_r_no_reloc): Likewise.
Jeff Law [Sun, 13 Nov 1994 05:06:20 +0000 (05:06 +0000)]
* somsolib.c: Add TODO list.
(som_solib_add): Immediately return if $SHLIB_INFO$ sections does
not exist or has size zero. Slightly simplify error handling.
Keep an internal list of all the loaded shared libraries and
various tidbits of information about the loaded shared libraries.
Build section tables for each loaded shared library and add those
tables to the core target if necessary.
(som_solib_create_inferior_hook): Force re-reading of shared
libraries at exec time.
(som_sharedlibrary_info_command): New function for dumping
information about the currently loaded shared libraries.
(_initialize_som_solib): New function.