Commit Graph

10633 Commits

Author SHA1 Message Date
Jeff Law
655f3ef4af * config/tc-hppa.c (is_complex): New macro.
(cons_fix_new_hppa): "Handle" complex expressions.
1994-07-05 00:37:14 +00:00
Stan Shebs
51684caad1 * breakpoint.c (mention): Always show breakpoint address if no
source file.
1994-07-05 00:15:49 +00:00
Peter Schauer
fb1b2bd0af * config/sparc/tm-sun4sol2.h (HANDLE_SVR4_EXEC_EMULATORS):
Define to enable handling of shared libraries for a.out executables,
	run under Solaris BCP.
1994-07-02 08:55:43 +00:00
Jeff Law
ff5a090fb4 * Support code for enabling the new style linker for PA ELF.
* elfcode.h (swap_symbol_in, swap_symbol_out): Externalize.
	(elf_compute_section_file_positions): Pass link_info to
	the begin_write_processing hook.
	(bfd_elf_write_object_contents): Pass NULL for new link_info
	argument to final_write_processing hook.
	(elf_link_output_sym): Accept new "input_section" argument for
	the symbols's input section.  All callers changed.  Call the
	link_output_symbol_hook if it's defined.
	(elf_bfd_final_link): Call the final_write_processing hook if
	it's defined.
	* libelf.h (elf_backend_link_output_symbol_hook): Declare.
	(elf_backend_begin_write_processing): Add new "info" argument.
	(elf_backend_final_write_processing): Likewise.
	* elf32-target.h (elf_backend_link_output_symbol_hook): Provide
	a default definition.
	(elf32_bed): Add elf_backend_link_output_symbol_hook.
	* elf64-target.h: Likewise.

	* Major rework of the PA ELF code.  Uses the new style BFD
	linker, major cleanups.
	* hppa_stubs.h: Rewrite from scratch.  Much smaller and simpler.
	* elf32-hppa.h: Delete all symbol extension related code.
	(hppa_look_for_stubs_in_section): Delete decl.
	(elf32_hppa_size_stubs, elf32_hppa_build_stubs): New decls.
	* elf32-hppa.c: Symbol extension stuff moved form elf32-hppa.h
	into elf32-hppa.c.  Do not include aout64.h.
	(typdef hppa_stub_type): Delete.
	(elf32_hppa_stub_name_list_struct): Delete.
	(elf32_hppa_stub_description_struct): Delete.
	(arg_reloc_type): Use simpler enumerations.  All references changed.
	(arg_location, arg_reloc_relocation): Likewise.
	(elf32_hppa_symextn_map_struct): Delete.
	(get_symbol_value): Delete.
	(elf32_hppa_get_sym_extn): Delete.
	(find_stubs, new_stubs, type_of_mismatch): Delete.
	(find_stub_by_name, add_stub_by_name): Delete.
	(hppa_elf_stub_finish, hppa_elf_stub_reloc): Delete.
	(hppa_elf_arg_reloc_needed): Renamed.  Simplify.
	(hppa_elf_build_linker_stub, hppa_elf_create_stub_sec): Delete.
	(hppa_elf_long_branch_needed_p): Delete.
	(hppa_look_for_stubs_in_section): Delete.
	(hppa_elf_get_section_contents): Delete.
	(elf32_hppa_backend_symbol_processing): Delete.
	(elf32_hppa_backend_section_processing): Delete.
	(elf32_hppa_backend_section_from_shdr): Delete.
	(elf32_hppa_backend_fake_sections): Delete.
	(elf32_hppa_backend_section_from_bfd_section): Delete.
	(NEW_INSTRUCTION): Delete.
	(CURRENT_STUB_OFFSET): Delete.
	(elf32_hppa_relocate_section): New function.
	(elf32_hppa_bfd_final_link_relocate): New function.
	(elf32_hppa_size_symext): New function.
	(elf32_hppa_link_output_symbol_hook): New function.
	(elf32_hppa_read_symext_info): New function.
	(elf32_hppa_add_symbol_hook): New function.
	(elf32_hppa_name_of_stub): New function.
	(elf32_hppa_size_of_stub): New function.
	(elf32_hppa_build_one_sub): New function.
	(elf32_hppa_build_stubs): New function.
	(elf32_hppa_size_stubs): New function.
	(linker, stub and argument hash tables): Add appropriate
	structures, definitions and functions to implement all three
	hash tables.
	(hppa_elf_relocate_insn): Don't need argument location information
	in this function.
	(add_entry_to_symext_chain): Accept a symbol's argument location
	information rather than the symbol itself.  All callers changed.
	(hppa_elf_gen_reloc_type): Simplify.
	(hppa_elf_set_section_contents): Stub section is no longer special.
	(hppa_elf_reloc): Greatly simplify.
	(elf32_hppa_begin_write_processing): Accept link_info argument.
	Handle being called from the BFD backend linker.
	(elf32_hppa_final_write_processing): Likewise.
	(elf_hppa_tc_make_sections): No longer call stub_finish.
1994-07-01 19:00:17 +00:00
Stan Shebs
7f6572f512 * mpw-config.in (MacSerial.h): Duplicate from standard Serial.h.
* ser-mac.c (MacSerial.h): Include instead of Serial.h.
1994-07-01 18:44:26 +00:00
Stan Shebs
0f2fa54c06 * mpw-README: Update the GDB information. 1994-07-01 01:21:18 +00:00
Steve Chamberlain
c6450736dd Add CXX 1994-07-01 00:39:20 +00:00
Stan Shebs
10f1b5978b Elim dup of file names 1994-06-30 23:19:26 +00:00
Ken Raeburn
7e6fc3a845 * config/default.exp: Look for "as.new" in "$base_dir/..", where it got
compiled, not in "$base_dir".

* config/unknown.exp: Deleted.
1994-06-30 22:54:44 +00:00
Steve Chamberlain
d14d610da2 * rltty.c (control_meta_key_on): Don't compile if __GO32__ is
defined.
	(rltty_set_default_bindings): Likewise.
	* display.c (insert_some_chars, delete_chars): row_start should be
	a short.
	* parens.c (rl_insert_close): No FD_SET if using __GO32__.
	* readline.c (rl_gather_tyi): Strip off spurious high bits.
1994-06-30 22:31:29 +00:00
Jim Kingdon
018d94f53c * infrun.c (wait_for_inferior): Print "Program exited normally"
regardless of batch_mode.
	* defs.h, top.c (batch_mode): Removed.
1994-06-30 21:24:57 +00:00
Ken Raeburn
04f0c2e34b Some updates for const-ness added to BFD structures. 1994-06-30 19:09:58 +00:00
Ian Lance Taylor
f255457995 * config/tc-mips.c (macro): For M_LI_SS, decide how to handle it
based on contents of imm_expr and offset_expr, rather than
	mips_pic.  For M_LI_DD, decide how to handle it based on segment
	name of offset_expr, rather than mips_pic.
	(mips_ip): If g_switch_value < 4, use immediate values for 'l'.
	If g_switch_value < 8, use .rdata rather than .lit for 'L'.
1994-06-30 18:47:29 +00:00
Stan Shebs
8d9171304f Fix a booboo 1994-06-30 03:25:02 +00:00
Stan Shebs
054308add9 * Makefile.in (dcache_h): Remove redundant definition.
(init.c): Add a comment.
	(top.c): Remove explicit compile action.
	* breakpoint.c (mention): Share code indicating location of
	break/watchpoints, don't print address if addressprint is off.
	* breakpoint.c, c-typeprint.c, c-valprint.c, energize.c, symtab.h
	(demangle): Remove redundant declarations.
	* eval.c: Remove redundant function declarations.
	* objfiles.h: Cosmetic and grammatical improvements.
	* TODO: Various updates.
1994-06-30 02:51:50 +00:00
Stan Shebs
7d13174e08 * remote-mips.c: Replace all \r chars with \015.
(mips_receive_header): Display control characters readably.
	(mips_xfer_memory): Add a simple progress display.
1994-06-30 01:59:36 +00:00
Stan Shebs
c2f2c6fa6c * mpw-make.in: Use {s} instead of {srcdir} everywhere.
(bindir, libdir): Remove extra colon.
	(source.c): Compile with C instead of gC.
	(c-exp.tab.c, ch-exp.tab.c, m2-exp.tab.c): Add {o}.
	(install-only): Don't install MacGDB.
	* source.c (openp) [MPW]: Add a debugging display.
	(open_source_file) [MPW]: Use MPW basename finders.
	[MPW_C]: Briefer versions of help for line and list commands.
1994-06-30 01:52:15 +00:00
Stan Shebs
921e047bab * mpw-make.in (as.c): Compile with C not gC.
(config-stamp): Touch correctly.
	(install-only): New target.
	(install): Depend on all and install-only.
1994-06-30 00:59:49 +00:00
Stan Shebs
6f0b87c329 * as.c (show_usage): Break long string into shorter ones.
(parse_args): Add -v, prints version id and continues.
	* config/tc-mips.c (md_show_usage): Break long string.
1994-06-30 00:55:33 +00:00
Stan Shebs
6989f6778e * ecoffswap.h (ecoff_swap_pdr_in, ecoff_swap_pdr_in) [MPW_C]:
Alternate versions without ECOFF_64 that chokes MPW C.
1994-06-30 00:20:40 +00:00
Stan Shebs
62d0348de7 * mpw-build.in: (install-only): New target. 1994-06-30 00:12:28 +00:00
Stan Shebs
8b50a709e9 Fix typo 1994-06-30 00:08:11 +00:00
Jean Marie Diaz
0373062441 * config/solaris2.mh (NATIVE_LIB_DIRS): Define as /usr/ccs/lib. 1994-06-29 21:18:47 +00:00
Jean Marie Diaz
111b24d572 * lexsup.c (parse_args): Accept -Bstatic and -Bdynamic. Do not
accept plain -B.
	* ld.texinfo: -Bstatic is not ignored.
1994-06-29 20:59:53 +00:00
Steve Chamberlain
402b0d2e55 * remote-e7000.c (e7000_open): Don't try a tcp open if we're
using go32.
	* remote-hms.c (flush): New function.
	(expect): Get edge case right.
	(hms_read_inferior_memory): Be more tolerant of line noise.
1994-06-29 20:20:42 +00:00
Jean Marie Diaz
3563094ddc * configure.in: Use i386m3.mh and i386m3.mt as names of host and
target files, not non-existent mach3.mh and mach3.mt.
1994-06-29 13:15:51 +00:00
Jean Marie Diaz
61172a5a39 * config.guess: Recognize Mach. 1994-06-29 13:13:53 +00:00
Peter Schauer
8959745750 * gdb.c++/misc.cc: Instantiate classes to inhibit the compiler
from optimizing them away.
	* gdb.c++/classes.exp, gdb.c++/inherit.exp:  Update ptype expect
	patterns to include default constructors and assignment operators,
	to match gcc versions beyond 2.5.8.
1994-06-29 07:35:00 +00:00
Peter Schauer
ca694bfdd7 * dbxread.c (dbx_symfile_read): Unconditionally add dynamic
symbols for all symbol files.  Makes skipping over the
	trampoline code work when stepping from a function in a shared
	library into a function in a different shared library.
	(read_dbx_dynamic_symtab):  Relocate mst_solib_trampoline address.
1994-06-29 07:31:53 +00:00
Stu Grossman
320f93f714 * dbxread.c, partial-stab.h (near N_SO): SO stabs with blank
names mean end of .o file.
	* infrun.c (wait_for_inferior):  Clean up multi-thread logic near
	top of routine.  Handle new thread notification cleanly.
	* lynx-nat.c (child_wait):  General cleanups, handle new LynxOS
	thread notification scheme.
	* (child_resume):  General cleanups, handle resumption of all
	threads properly.
1994-06-28 23:36:52 +00:00
Stan Shebs
fea3fe6407 * h8300-dis.c, mips-dis.c: Don't use true and false. 1994-06-28 20:27:02 +00:00
Stan Shebs
22691fe7be * mpw-config.in (emulname): Set based on target.
(ldemul-list.h): Construct.
	* mpw-make.in (install-only): New target.
	(install): Depend on install-only.
1994-06-28 20:20:35 +00:00
Stan Shebs
83896c8b2b * mpw-xconfig.in: Remove ldemul-list.h construction, now in
generic config.
1994-06-28 20:16:32 +00:00
Stan Shebs
1c883f34fc * ldlex.l: Recognize \r the same as \n. 1994-06-28 19:16:24 +00:00
Stan Shebs
6153f5bb58 * mpw-config.in: New file, MPW configure fragment for binutils.
* mpw-make.in (install-only): New target.
	(install): Also depend on install-only.
1994-06-28 02:20:40 +00:00
Stan Shebs
066f301d5d Remove more GM-specific stuff 1994-06-28 02:16:18 +00:00
Stan Shebs
75c8a303bb Remove more GM-specific stuff. 1994-06-28 02:12:13 +00:00
Steve Chamberlain
40b559d27f * configure.in (i386-go32): When it's a host set
host_makefile_frag.
	* gasp.c  (get_any_string): Fix handling of % when in PharLap
	mode.
1994-06-28 01:20:04 +00:00
Steve Chamberlain
1b01afe630 Don't keep the "is" cases, only the "was" cases. 1994-06-28 01:19:19 +00:00
Steve Chamberlain
7a9e58720f Reflect new rules. 1994-06-28 01:17:29 +00:00
Steve Chamberlain
eeaed1957a * section.c (bfd_get_section_contents): Put in parens to get
precedence right.
1994-06-28 01:09:50 +00:00
Steve Chamberlain
0a24010060 Specify the file type. 1994-06-28 01:05:38 +00:00
Steve Chamberlain
aa48187bd3 ser-go32.c: Rewrite so it runs under windows. 1994-06-28 00:52:59 +00:00
Jean Marie Diaz
55f6c903f6 * configure: Check ${exec_prefixoption}, not ${exec_prefix}, to
see whether --exec-prefix was used.
1994-06-27 20:52:52 +00:00
Steve Chamberlain
bffce4c6b8 Use e7000-pc stuff. 1994-06-27 17:17:27 +00:00
Steve Chamberlain
5567978794 * ser-e7kpc.c: New file to support the E7000 with the PC ISA
bus interface.
	* serial.c (serial_open): Notice device "pc".
	* remote-e7000.c: Fix copyright date.
	(expect): Compare \n and \r the same.
	(e7000_open): Allow pc as a serial port
	* sh/sh.mt: Add ser-e7kpc.
	* h8300/h8300hms.mt: Add ser-e7kpc.
	* main.c (proc_wait): Don't wait if using go32.
1994-06-27 17:16:26 +00:00
Jeff Law
6a86fa489b * somread.c: Simplify by using stabsect_build_psymtabs.
* dbxread.c (stabsect_build_psymtabs): New argument "text_name"
	corresponding to the name of the text section.  All references
	changed.
	(somstab_build_psymtabs): Delete function, no longer needed.
1994-06-27 06:45:35 +00:00
Jeff Law
bfe2f12bd0 * somread.c: Renamed from paread.c. Changed function names and
comments to reflect that this file deals with SOM (an object file
	format), rather than the PA (a cpu).
	(Makefile.in): Chaned appropriately.
	(config/pa/hppabsd.mh, config/pa/hppahpux.mh): Likewise.
	* dbxread.c (somstab_build_psymtabs): Renamed from
	pastab_build_psymtabs.
1994-06-27 06:09:40 +00:00
Jeff Law
6dde66d569 * libelf.h (relocate_section): New argument "output_names" added
to prototype.
	* elfcode.h (elf_link_input_bfd): New argument "output_names"
	added to prototype of relocate_section.  Pass the output symbol
	names to relocate_section.
	* elf32-i386.c (elf_i386_relocate_section): Use "output_names" to
	determine the name of a local symbol.
	* elf32-mips.c (mips_elf_relocate_section): Likewise.
	* elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
1994-06-27 00:17:41 +00:00
Stan Shebs
9e4eebc207 * mpw-config.in: Parse target and use to generate forward includes
to tc-, obj-, and atof- files, use te-generic.h for emulation.
	* mpw-make.in (VERSION): Define.
	(as.c): Compile with GCC.
	(TARG_OBJECTS, CLIBS): Define.
	(as.new): Use LDFLAGS, TARG_OBJECTS, CLIBS and EXTRALIBS in link
	command.
	(config.h, config-stamp): Build.
	config/ho-mpw.h (HOST_SPECIAL_INIT): Define.
1994-06-26 23:51:45 +00:00