Commit Graph

7761 Commits

Author SHA1 Message Date
Jim Kingdon
94c74a0c22 * remote-vx.c (vx_wait): Rename pid parameter to pid_to_wait_for.
Some compilers (legitimately) don't like variables in the
	function's outermost block whose name is the name as a parameter.
1993-10-24 18:05:39 +00:00
Fred Fish
90141f9c4e * elfread.c (elf_symtab_read): Use bfd convention that both
initialized and uninitialized data sections have the SEC_ALLOC
	flag bit set, but only initialized sections have SEC_LOAD set.
	SEC_DATA is ignored since it only gets set for initialized
	data.  Likewise, SEC_HAS_CONTENTS is ignored now because it
	never gets set.
1993-10-24 16:41:11 +00:00
David D. Zuhn
ab0751c895 use lowercase "format" instead of Format/format 1993-10-24 05:25:35 +00:00
David D. Zuhn
772ebace7c remove debugging output accidentally checked in 1993-10-24 04:45:51 +00:00
David Edelsohn
631f6b2406 (sim_stop_signal): Result is now enum sim_stop. 1993-10-23 22:10:28 +00:00
David Edelsohn
7db9345b40 (sim_stop_signal): Result is now enum sim_stop. 1993-10-23 22:03:52 +00:00
David Edelsohn
592f517aa3 * remote-sim.h (sim_stop): New enum.
(sim_stop_signal): Change prototype, result is enum sim_stop.
* remote-sim.c (gdbsim_wait): Update call to sim_stop_signal.
1993-10-23 21:56:47 +00:00
Jim Kingdon
dcb389736b * stabsread.c (define_symbol): Skip the whole thing about "pcc
promotion" on little-endian machines.
1993-10-23 01:56:18 +00:00
Jim Kingdon
c3cabecb47 * remote-vx.c: Rename pid parameter to pid_to_wait_for. Some
compilers (legitimately) don't like variables in the function's
	outermost block whose name is the name as a parameter.
1993-10-23 01:14:47 +00:00
Jim Kingdon
2d62828161 Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
* dst.h, dstread.c, config/m68k/{apollo68b.mt,tm-apollo68b.h}:
	New files.
	* config/m68k/nm-apollo68b.h: Add more defines.
	* configure.in: Recognize apollo target, not just host.
1993-10-22 20:25:43 +00:00
Ian Lance Taylor
8efed14f10 * input-scrub.c (physical_input_file, logical_input_file,
physical_input_line, logical_input_line): Made static.
	(as_where): Return current file name and line number, don't print
	them out.
	* messages.c (as_show_where): New static function.  Other
	functions use it instead of as_where.
	(as_bad_internal): New static function.
	(as_bad): Use as_bad_internal.
	(as_bad_where): New function, like as_bad but taking a file name
	and line number.
	* as.h (as_bad_where): Declare.
	(as_where): Change prototype for new arguments.
	* write.h (fixS): Added fields fx_file and fx_line.
	* write.c (fix_new_internal): Save file and line number in fix.
	(fixup_segment): Use as_bad_where, not as_bad.
	* input-file.c (f_in, file_name): Made static.
	* cond.c (struct file_line): Just use file and line fields.
	(s_else): Use as_where and as_bad_where, not get_file_line and
	set_file_line.
	(get_file_line, set_file_line): Removed.
	* listing.c (listing_newline): Use as_where.
	* config/obj-coffbfd.c (obj_coff_init_stab_section): Use as_where.
	* config/obj-ecoff.c (add_file): Use as_where.
	* config/obj-elf.c (obj_elf_init_stab_section): Use as_where.
	* config/tc-m68k.c (md_apply_fix_2): Use as_bad_where.
	* config/tc-mips.c (tc_gen_reloc): Use as_bad_where, not assert.
1993-10-22 19:15:20 +00:00
Mark Eichin
9ca0105226 note change to fprintf declaration 1993-10-22 18:15:53 +00:00
Mark Eichin
dd8dd099b0 note TDEFINES setting of FPRINTF_ALREADY_DECLARED. 1993-10-22 18:14:21 +00:00
Mark Eichin
80d19ec1fc hide declaration of fprintf inside FPRINTF_ALREADY_DECLARED, because
this declaration can be wrong but there must *be* a declaration for
include/dis-asm.h to work.
1993-10-22 18:04:09 +00:00
Jim Kingdon
835fe6e630 Merge Apollo patches from Troy Rollo (troy@cbme.unsw.edu.au):
* dst.h, dstread.c, config/m68k/{apollo68b.mt,tm-apollo68b.h}:
	New files.
	* config/m68k/nm-apollo68b.h: Add more defines.
	* configure.in: Recognize apollo target, not just host.
1993-10-22 16:03:08 +00:00
Ian Lance Taylor
609151bee8 * targets.c (target_vector): Enable MIPS ELF vectors. 1993-10-22 15:56:08 +00:00
Jim Kingdon
7129250052 new for apollo 1993-10-22 15:24:31 +00:00
Jim Kingdon
d19e168692 new for apollo 1993-10-22 15:14:45 +00:00
Jim Kingdon
212b1b07fa * config.bfd: Use bigmips for mips-sony-bsd*. 1993-10-22 14:58:28 +00:00
Jim Kingdon
3b891e0b5c * configure.in: Add * to end of all OS names. 1993-10-22 13:49:08 +00:00
Jim Kingdon
ffa2b1dfe7 * configure.host, config.bfd: Add * to end of all OS names. 1993-10-22 13:36:28 +00:00
Jim Kingdon
c71350fc3b * configure.in: Add * to end of all OS names. 1993-10-22 13:32:12 +00:00
Fred Fish
c8bd627f9f * Makefile.in (ALLPARAM): Add config/m88k/xm-delta88v4.h 1993-10-22 13:24:55 +00:00
Jim Kingdon
f701d1341c * munch: Removed. 1993-10-22 06:08:04 +00:00
Jim Kingdon
49f8eccbff * Makefile.in (init.c): Generate using the source, not munch. This
cleans up all kinds of hassles (which nm to use in munch, etc).  The
	new formatting conventions (mostly already followed) are that
	the name of the _initialize_* routines must start in column zero,
	and must not be inside #if.
	* munch: Removed.
	* Makefile.in: Remove references to munch.
	* serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c,
	alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c,
	procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c,
	i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c,
	z8k-tdep.c: Make sure the above conventions are followed.  Make
	sure they are all declared as returning void.  Clean up
	miscellaneous comments and such.
1993-10-22 06:03:50 +00:00
Jim Kingdon
976bb0be03 * Makefile.in (init.c): Generate using the source, not munch. This
cleans up all kinds of hassles (which nm to use in munch, etc).  The
	new formatting conventions (mostly already followed) are that
	the name of the _initialize_* routines must start in column zero,
	and must not be inside #if.
	* munch: Removed.
	* Makefile.in: Remove references to munch.
	* serial.c, remote.c, infptrace.c, maint.c, convex-tdep.c,
	alpha-tdep.c, hp300ux-nat.c, hppab-nat.c, osfsolib.c, remote-es.c,
	procfs.c, remote-udi.c, ser-go32.c, ultra3-xdep.c, sh-tdep.c,
	i960-tdep.c, hppa-tdep.c, h8500-tdep.c, dpx2-nat.c, delta68-nat.c,
	z8k-tdep.c: Make sure the above conventions are followed.  Make
	sure they are all declared as returning void.  Clean up
	miscellaneous comments and such.
1993-10-22 05:55:58 +00:00
Roland Pesch
06b24c9e49 Man page for "run" simulator, and install-man target for it. 1993-10-22 04:58:26 +00:00
Jim Kingdon
b8615faeec * Makefile.in: Update dependencies to reflect all these new includes. 1993-10-22 01:49:27 +00:00
Jim Kingdon
c853c90d12 * sh-tdep.c (sim_load): Add function. 1993-10-22 00:53:32 +00:00
David D. Zuhn
f7fa951fd0 add pid argument to mips_wait 1993-10-21 23:02:40 +00:00
Jim Kingdon
100f92e2de * Makefile.in (c-exp.tab.o): Remove notice about shift/reduce conflicts
which no longer occur.

	gcc -Wall lint:
	* findvar.c (symbol_read_needs_frame), corelow.c (ignore),
	inflow.c (gdb_has_a_terminal): Make sure to return a value.
	* regex.h: Declare re_set_syntax.
	* printcmd.c: Include valprint.h.
	* infcmd.c, exec.c, maint.c, core.c: Include language.h.
	* maint.c: Include expression.h.
	* infrun.c, fork-child.c, corelow.c, inflow.c: Include thread.h.
	* inftarg.c: Include command.h.
	* coredep.c: Include value.h.
	* c-exp.y, m2-exp.y, ch-exp.y: Include bfd.h, symfile.h and objfiles.h.
	* ch-typeprint.c: Include typeprint.h.
	* ch-valprint.c: Include c-lang.h.
	* nlmread.c: Include buildsym.h.
	* environ.c: Include gdbcore.h.  Only include defs.h once.
	(set_in_environ): Cast const char * to char * when passing to
	set_gnutarget.
	Remove unused variables:
	* printcmd.c (printf_command): args_to_vprintf.
	* coffread.c (coff_symfile_init): strsection.
	Move variables to within the #ifdefs where they are used:
	* symtab.c (gdb_mangle_name): opname.
	* inftarg.c (child_attach): pid and exec_file.
	* inftarg.c (child_detach): siggnal.
	* objfiles.c (allocate_objfile): mapto, md, and fd.
	* objfiles.c (free_objfile): mmfd.
	* infrun.c (wait_for_inferior): Include BPSTAT_WHAT_LAST in switch.
	* infrun.c (wait_for_inferior): Remove unused same_pid label.
	* inferior.h: Declare set_sigint_trap and clear_sigint_trap.
	* parser-defs.h: Declare write_exp_elt_block.
	* stabsread.h: Declare elfstab_offset_sections and
	coffstab_build_psymtabs.
1993-10-21 20:41:50 +00:00
Ken Raeburn
efa0c22e67 Various arious PA changes from Utah.
V9 bugfix.
See changelog...
1993-10-21 20:03:19 +00:00
Ken Raeburn
2d4f509a1f delete some code in "#if 0" 1993-10-21 19:55:01 +00:00
Ian Lance Taylor
7766838e96 * config/tc-sparc.c (md_parse_option): Accept and ignore -sparc
option, which is used by the SunOS make default .s.o rule.
1993-10-21 19:50:57 +00:00
Ken Raeburn
8cac6ca6e2 Set bfd_gas for all sparc targets. Added facility for keeping or rejecting
configurations still under development; default is to assume production
environment, and reject configs still being worked on.  Mark Elf configurations
(except sparc and i386) as developmental.  Deleted cases matching some generic
names in favor of more specific names.  (E.g., when we get Alpha
support, we'll still only support VMS for Vax.)
1993-10-21 19:50:06 +00:00
Ken Raeburn
003ccb904d Patch from Jeff Law:
* paread.c: Fix references to "hppa" that should now be "som".
1993-10-21 19:28:54 +00:00
Ken Raeburn
3bca03362f elfcode.h (FILE_ALIGN_: Renamed from EALIGN, to avoid conflict with Ultrix
header files.

Also, lots of changes for PA elf and som support from Utah; see ChangeLog
for details.
1993-10-21 19:22:42 +00:00
Jim Kingdon
37e6f1d0e4 gcc -Wall lint:
* coff-h8300.c, coffcode.h: Change shrink parameter
	in *_reloc16_estimate to unsigned to match prototype.
	* archive.c: Avoid "/*" in comment.
1993-10-21 19:11:15 +00:00
Stan Shebs
312cae61a0 Always build newlib for native Lynx. 1993-10-21 18:40:48 +00:00
Ian Lance Taylor
5280bd62ff * dep-in.sed: Create our own line breaks for a more aesthetic
Makefile.
	* Makefile.in: Rebuilt dependencies.
1993-10-21 18:30:12 +00:00
Jim Kingdon
ad0a2521d2 * symtab.c (decode_line_1): Don't use SYMBOL_LINE for functions. 1993-10-21 17:32:52 +00:00
Ian Lance Taylor
632f2cc779 * elf32-mips.c: Include "seclet.h".
(mips_elf_fake_sections): Force size of .reginfo section to sizeof
	Elf32_External_RegInfo.
	(mips_elf_seclet_link): New function.  Link the .reginfo section
	specially, and pass everything else to the generic routine.
	(bfd_elf32_bfd_seclet_link): Define macro.
	* elf32-target.h: If bfd_elf32_bfd_seclet_link is already defined,
	don't override it.
1993-10-21 17:13:38 +00:00
Jim Kingdon
e252598636 * stabs.texinfo (Local Variable Parameters): Re-write paragraph on
floats passed as doubles (to improve clarity).
1993-10-21 14:20:50 +00:00
Jim Kingdon
bf96935bbc * gdb.t09/corefile.exp: At end of test, use "core" command with
no arguments.
1993-10-21 13:32:51 +00:00
Stu Grossman
cadd2c6f7c * remote-udi.c (udi_store_registers, store_register): Use
UDI29KPC address space when modifying PC.  It seems that you can't
	modify the PC directly (at least in the isstip simulator).
1993-10-21 10:10:21 +00:00
Jim Kingdon
68dc3cd9fc * Move "set remotebaud" from remote-utils.c to main.c to it applies
to remote.c as well.
1993-10-21 05:30:47 +00:00
Jim Kingdon
577e6a8dc5 * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
Sort symtabs for this objfile only, not for all objfiles.
1993-10-21 05:24:18 +00:00
Jim Kingdon
9c38eb65ac * target.h: Put remote_debug declaration back here. Add baud_rate.
* remote.c, remote-udi.c, remote-utils.h: Let target.h take care of
	declaring these.  Those random externs all over are error prone.
	* Move "set remotebaud" from remote-utils.c to main.c to it applies
	to remote.c as well.

	* xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
	Sort symtabs for this objfile only, not for all objfiles.
	* symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
1993-10-21 05:22:34 +00:00
Jim Kingdon
8f6960c90e * xcoffread.c (xcoff_symfile_read), coffread.c (coff_symfile_read):
Sort symtabs for this objfile only, not for all objfiles.
	* symfile.c, symfile.h (sort_all_symtab_syms): Remove; no longer used.
1993-10-21 04:41:56 +00:00
Jim Kingdon
b438af4694 * mh-hp300: Revert yesterday's change, but add comment explaining. 1993-10-21 01:37:55 +00:00