Commit graph

10944 commits

Author SHA1 Message Date
Stu Grossman
b7da24943d * Makefile.in (TARGET_FLAGS_TO_PASS): Pass down LD_FOR_TARGET and
NLMCONV_FOR_TARGET.  (SUBDIRS):  Add nlm target.
	* configure.in (powerpc-*-netware*):  Automatically configure nlm
	subdir.
	* nlm/Makefile.in:  Add {CC NLMCONV LD}_FOR_TARGET.  Remove alpha
	specific stuff.  Make things more configurable.
	* nlm/configure.in:  Add powerpc-*-netware* target.  Use
	gdbserve.mt/cpu.c/cpu.h for target stuff.  Get rid of tm/xm/nm.h
	files.
	* nlm/gdbserve.c:  Move Alpha specific stuff into other files.
	Remove lots of architecture-specific stuff.
	* nlm/gdbserve.def:  Add new imports.
	* nlm/ppc.c, nlm/ppc.h:  New files that contain PowerPC specific code.
	* nlm/prelude.c:  Don't include libhooks.h, get rid of call to
	register library.
	* nlm/prelude.o:  What was this doing here?
1994-08-18 06:32:55 +00:00
Rob Savoye
8c074d7ada * remote-pa.c: New file for HPPA embedded support. Currently it's
a copy of remote.c.
	* config/pa/hppabsd.mt,hppahpux.mt,hppaosf.mt: User remote-pa.c.
1994-08-18 05:20:23 +00:00
Rob Savoye
e782af99f5 Use new remote-pa, rather than the generic one. 1994-08-18 05:16:52 +00:00
Rob Savoye
2e0fa11c9f New file for remote protocol to embedded HPPA targets. 1994-08-18 05:16:12 +00:00
Ian Lance Taylor
7cc5cc22bb * linker.c (_bfd_generic_link_add_archive_symbols): Initialize
PASS to the old value + 1.
1994-08-17 20:58:47 +00:00
Stan Shebs
ca3c57e52e * config/m68k/tm-delta68.h (EXTRACT_RETURN_VALUE,
STORE_RETURN_VALUE): Define to use %a0 for pointers.
1994-08-17 20:27:17 +00:00
Rob Savoye
52283cf39a Add serial tcp support for HPPA hosts and targets. 1994-08-17 19:41:22 +00:00
Ian Lance Taylor
d83689d4de * coffgen.c (coff_get_normalized_symtab): If a C_FILE symbol has
no aux entries, use the symbol name as the file name.
	(coff_find_nearest_line): Look for the right C_FILE symbol, rather
	than always using the first one.  If there is a debugging symbol
	after a function symbol, skip it.  Add the section VMA to the line
	offset, since it was subtracted out in coff_slurp_line_table.
PR 5010.
1994-08-17 17:44:17 +00:00
Jim Kingdon
e1f38ddf8e * remote-mips.c: Remove unused declaration of mips_load. 1994-08-17 14:46:57 +00:00
Stan Shebs
d696808d7d * coffread.c: General cleanup, and support for section offsets.
(time.h, sys/types.h, libbfd.h): Don't include.
	(cur_src_start_addr, cur_src_end_addr): Rename to
	current_source_start_addr, current_source_end_addr.
	(nlist_stream_global): Remove.
	(nlist_bfd_global): New global variable.
	(coff_symfile_read): Remove code that gets and uses fileno()
	directly.
	(read_coff_symtab, enter_linenos, process_coff_symbol): Add
	section_offsets parameter, add text/data section offset to
	appropriate symbols' values.
	(read_one_sym): Use bfd_read instead of fread.
	(init_stringtab, init_lineno): Change first parameter to a bfd,
	use bfd routines instead of raw I/O.
1994-08-17 00:15:28 +00:00
Jim Kingdon
0cec815fa2 * symtab.c (decode_line_1): If funfirstline and we get a
non-LOC_BLOCK symbol (e.g. variable or type), then error().
1994-08-17 00:07:12 +00:00
Jim Kingdon
c8a1505adc * Makefile.in (TARFILES, NONSRC, SFILES_STAND, SFILES_KGDB):
Remove; unused.
	(TAGFILES_NO_SRCDIR): Remove ALLPARAM.
	(HFILES_NO_SRCDIR): Remove all files in config sub-directory.
	(TAGS): Also pass result of find on config sub-directory to etags.
	(ALLPARAM): Remove; now unused.
1994-08-16 23:22:45 +00:00
Jeff Law
fde543b5ff * som.c (som_prep_headers): If writing some form of an executable,
allocate and attach an exec header to the BFD private data.
	(som_begin_writing): Don't fill fields of the exec header based
	on BFD private data here (like the exec flags).  Do not write
	the exec header here.
	(som_write_headers): Instead do it here.
	* som.h (struct somdata): New field "exec_hdr" for the executable
	file header.
	(obj_som_exec_hdr): New accessor macro.
1994-08-16 23:11:59 +00:00
Per Bothner
63a042e60f * configure.in: Also configure librx. 1994-08-16 23:11:16 +00:00
Stan Shebs
3cbe9f4d97 * gdb.base/printcmds.exp: Remove all the a29k XFAILs tagged with
2417; old bug has been fixed.
1994-08-16 23:05:00 +00:00
Per Bothner
c71a8d1de1 Add librx. 1994-08-16 21:12:12 +00:00
Jeff Law
f3b7067941 * gas/config/tc-hppa.c (pa_comm): Set sy_frag for the common
symbol to the zero address frag.
1994-08-16 18:28:12 +00:00
Jeff Law
2cffb4f411 * config/tc-hppa.c (pa_comm): Set sy_resolved for the common
symbol.
1994-08-16 07:54:06 +00:00
Ian Lance Taylor
9e5a036f28 * scripttempl/aout.sc: Add .linux-dynamic after .data. 1994-08-16 04:19:32 +00:00
Ian Lance Taylor
969ceea035 * i386linux.c (linux_link_create_dynamic_sections): Create section
named .linux-dynamic, not .dynamic.
	(linux_add_one_symbol): Use .linux-dynamic, not .dynamic.
	(bfd_linux_size_dynamic_sections): Likewise.
	(linux_finish_dynamic_link): Likewise.
1994-08-16 04:15:50 +00:00
Ian Lance Taylor
c1a9aaa316 * Treat --dll-verbose as --version, for Linux compatibility. From
hjl@nynexst.com (H.J. Lu).
1994-08-16 04:10:03 +00:00
Per Bothner
1d5fcc6621 * Makefile.in: Update various rules to reflect that librx
is now needed for libg++.
1994-08-15 23:51:58 +00:00
Ian Lance Taylor
9fbe895ae7 * coffgen.c (STRING_SIZE_SIZE): Define.
(coff_fix_symbol_name): Use STRING_SIZE_SIZE, not 4.
	(coff_write_symbols, build_string_table): Likewise.
	(coff_get_normalized_symtab): Likewise.
1994-08-15 22:07:29 +00:00
Ian Lance Taylor
1fee94ece0 * ldexp.h (exp_get_abs_int): Declare. 1994-08-15 21:18:48 +00:00
Ian Lance Taylor
f07bb971a0 * libcoff-in.h (obj_symbol_slew): Don't define.
(struct coff_tdata): Remove unused fields index_slew, raw_linenos,
	and flags.
	* libcoff.h: Rebuilt.
	* coffcode.h (coff_mkobject): Don't initialize raw_linenos.
	(coff_mkobject_hook): Don't initialize flags.
1994-08-15 21:02:05 +00:00
Ian Lance Taylor
a932d0ffb7 * aout-target.h (MY_zmagic_contiguous): Define as 0 if not already
defined.
	(MY(backend_data)): Use MY_zmagic_contiguous, not hardcoded 0.
	* i386linux.c (MY_zmagic_contiguous): Define.
1994-08-15 18:12:05 +00:00
Ian Lance Taylor
823609fe90 * elfcode.h (bfd_section_from_shdr): If a SHT_SYMTAB section in a
shared object has SHF_ALLOC set, create a BFD section for it.
	(elf_section_from_bfd_section): There may be a BFD section for a
	SHT_SYMTAB section.
1994-08-15 18:08:13 +00:00
Ian Lance Taylor
e8fbe6d924 * coffcode.h (styp_to_sec_flags): Add name argument. If no flags
are recognized, chose section flags based on the name.
	(bfd_coff_backend_data): _bfd_styp_to_sec_flags_hook field: Add
	name argument.
	(bfd_coff_styp_to_sec_flags_hook): Add name argument.
	(coff_compute_section_file_positions): Don't adjust the section
	position by COFF_PAGE_SIZE unless SEC_ALLOC is set.
	* libcoff.h: Rebuilt.
	* coffgen.c (make_a_section_from_file): Pass section name to
	bfd_coff_styp_to_sec_flags_hook.
	* ecoff.c (_bfd_ecoff_styp_to_sec_flags): Add unused name
	argument.
	* libecoff.h (_bfd_ecoff_styp_to_sec_flags): Add name argument to
	prototype.
1994-08-15 16:26:06 +00:00
Fred Fish
7de5c5e275 * Makefile.in (VERSION): Bump to 4.13.1
* NEWS, README:  Update to match gdb 4.13 release version.
1994-08-14 20:13:01 +00:00
Fred Fish
96ff369d81 Harris CX/UX support, from Bob Rusk (rrusk@mail.csd.harris.com).
* cxux-nat.c:  Remove dangling #else block.
	((m88k_harris_core_register_addr):  New function.
1994-08-13 16:17:45 +00:00
Fred Fish
71ed485dc3 * environ.c (init_environ): If no environment, do nothing. 1994-08-13 15:28:24 +00:00
Jeff Law
b42f02ba3f * gdb.base/interrupt.exp: When trying to wake up the inferior,
send the newline ourselves instead of assuming gdb_test will do
	so when passed an empty input string.
1994-08-13 02:12:03 +00:00
Jeff Law
5278c61d20 * gdb.stabs/hppa.mt: Use $(AS), not $(CC) to assemble the
stabs testcode.
1994-08-13 01:38:55 +00:00
Ian Lance Taylor
e9227b4255 * elfcode.h (section_from_elf_index): Correct check for invalid
section index.
1994-08-12 23:25:23 +00:00
Stu Grossman
4fb7359d97 * remote.c (remote_wait): Return inferior_pid instead of 0 for
`W` message.
1994-08-12 22:54:53 +00:00
Ian Lance Taylor
9a1ef62dcd * config.sub: Accept mips64orion and mips64orionel as a CPU name. 1994-08-12 22:09:18 +00:00
Ian Lance Taylor
101fbf7ed7 * config/tc-mips.c (md_begin): Drop "el" from the end of
TARGET_CPU.  Check for mips64orion.
1994-08-12 21:55:42 +00:00
J.T. Conklin
a9a53e435a * sparclite/aload.c (sys_error, error): Use vfprintf to variable
argument lists.
1994-08-12 18:50:26 +00:00
Ian Lance Taylor
1c640609d8 * elfcode.h (elf_link_add_object_symbols): If there is no symbol
table, try using the dynamic symbol table.  From Eric Youngdale
	<ericy@cais.cais.com>.
1994-08-12 15:51:09 +00:00
Ian Lance Taylor
098e8a89ec * configure.host (sparc-*-solaris2*): Use solaris2, not sysv4.
The linker depends upon configuring for solaris2.
	* hosts/solaris2.h: New file; include hosts/sysv4.h.
	* config/solaris2.mh: New file; copy of config/sysv4.mh.
1994-08-12 15:28:19 +00:00
Ian Lance Taylor
0aca460e7c Add support for removing named sections to objcopy and strip.
* objcopy.c (struct section_list): Define.
	(remove_sections): New static variable.
	(strip_options, copy_options): Add remove-section.
	(copy_usage, strip_usage): Mention -R and --remove-section.
	(setup_section): If section is in remove_sections list, ignore it.
	(copy_section): Likewise.
	(strip_main, copy_main): Handle -R.
	* binutils.texi, objcopy.1, strip.1: Document new options.
1994-08-11 19:00:26 +00:00
David Edelsohn
97e7b66f5e (concat, basename, buildargv, freeargv, strerrno, strsigno,
errno_max, signo_max, strtoerrno, strtosigno):  Delete.
Include "libiberty.h" instead.
1994-08-11 11:09:54 +00:00
Ian Lance Taylor
af76a6e052 Remove aout-ns32k.h. 1994-08-11 04:39:16 +00:00
Fred Fish
04dd69e185 * i386v-nat.c (i386_insert_nonaligned_watchpoint):
add additional argument specifying raw address to permit
	proper release of debug registers.
	(i386_insert_watchpoint, i386_insert_aligned_watchpoint):
	change all callers.
1994-08-11 00:04:03 +00:00
Stu Grossman
8164ec2eb5 * defs.h, top.c: Use `extern' in declarations of GUI hooks, and
define them in top.c.  Add comments to the hooks.
1994-08-10 23:16:40 +00:00
David Edelsohn
1311f8d1a5 (gdbsim_ops): Set to_insert_breakpoint' and to_remove_breakpoint' fields. 1994-08-10 23:06:39 +00:00
Jim Kingdon
ced992e4bd * infcmd.c (run_command): Remove comment suggesting using
target_has_execution instead of inferior_pid.
1994-08-10 22:49:42 +00:00
Kung Hsu
d48d9a282a Modified Files:
ChangeLog remote-mips.c

        * remote-mips.c (mips_open): add code to handle baud rate.
1994-08-10 17:37:56 +00:00
Stan Shebs
8ea882c6df * nlmconv.c (powerpc_mangle_relocs): Rename symvalue to sym_value,
so as not to conflict with the symvalue typedef in bfd.h.
1994-08-10 17:24:10 +00:00
Ian Lance Taylor
e1f99f6068 * aoutx.h (adjust_z_magic): Make sure data section is padded to
page boundary when the VMA is set by the calling program.  From
	Eric Youngdale <ericy@cais.cais.com>.
1994-08-10 17:15:05 +00:00