Commit Graph

12978 Commits

Author SHA1 Message Date
Jim Kingdon e8bf33c4ac * breakpoint.c, target.h: Move defaults of watchpoint related
macros back to breakpoint.c.  Required to get GDB compiling
	on Solaris again.
1995-05-22 15:29:00 +00:00
Angela Marie Thomas fc18000d56 Sat May 20 13:22:31 1995 Angela Marie Thomas <angela@cirdan.cygnus.com>
* configure.in (noconfigdirs): Don't configure tk for i386-go32
        hosted builds (DOS builds)
1995-05-20 20:25:21 +00:00
Ken Raeburn 0509f0643c more vms updates from Pat Rankin 1995-05-20 20:11:38 +00:00
Ken Raeburn a088fb62b3 From Pat Rankin:
For VMS gas port, make libiberty build on its own instead of driving it all out
of the gas directory.  Also improve some of the libiberty support for VMS.
1995-05-20 19:59:47 +00:00
J.T. Conklin e3033bb086 * defs.h (ATTR_FORMAT): New macro, expands to gcc's format
attribute when compiled by gcc.
* defs.h, language.h, monitor.h: Changed many function
  declarations to use ATTR_FORMAT.

* breakpoint.c (delete_command); source.c (directory_command);
  top.c (define_command): Changed call to query() that had too
  many arguments.
* printcmd.c (address_info): Changed call to printf_filtered()
  that had too many arguments.
1995-05-19 22:44:51 +00:00
Ken Raeburn 078d1a5afa From Richard Earnshaw (rearnsha@armltd.co.uk):
* gasp.c (istrue): Correctly test for string inequality.
1995-05-19 18:43:49 +00:00
Jim Kingdon a5298c2aa2 * infrun.c (wait_for_inferior): Move assignments to stop_signal
and stop_pc, and STOPPED_BY_WATCHPOINT code, back where they
	were--after the switch statement on w.kind.  You can't read the
	registers of an inferior which has exited.  Use a goto in the
	STOPPED_BY_WATCHPOINT code.
	* infrun.c (wait_for_inferior): Reinstate
	HAVE_STEPPABLE_WATCHPOINT and HAVE_CONTINUABLE_WATCHPOINT code.
1995-05-19 17:51:22 +00:00
Steve Chamberlain 7cdedb42c1 * coffswap.h: (IMAGE_BASE): Define to 0 if not. 1995-05-19 17:01:27 +00:00
Jim Kingdon 73d3dbd4e6 * utils.c, complaints.c, language.c, monitor.c, remote-array.c,
remote-mips.c, remote-os9k.c, remote-st.c: Conditionalize use of
	stdarg rather than varargs on ANSI_PROTOTYPES not __STDC__; it
	must match the definition of PARAMS.
start-sanitize-gdbtk
        * gdbtk.c: Likewise.
end-sanitize-gdbtk
1995-05-19 14:15:48 +00:00
J.T. Conklin 85c613aaa7 * utils.c (fprintf_filtered, fprintf_unfiltered, fprintfi_filtered,
printf_filtered, printf_unfiltered, printfi_filtered, query, warning,
          error, fatal, fatal_dump_core): Use stdarg.h macros when compiling
          with an ANSI compiler.
        * complain.c (complain): Likewise.
        * language.c (type_error, range_error): Likewise.
        * monitor.c (monitor_printf, monitor_printf_noecho): Likewise.
        * remote-array.c (printf_monitor, debuglogs): Likewise.
        * remote-mips.c (mips_error): Likewise.
        * remote-os9k.c (printf_monitor): Likewise.
        * remote-st.c (printf_stdebug): Likewise.
        * gdbtk.c (gdbtk_query): Likewise.

        * defs.h, complain.h, language.h, monitor.h: Add prototypes to
          match above changes.

        * printcmd.c: Remove uneeded #include <varargs.h>.
        * remote-e7000.c: Likewise.

        * f-typeprint.c (f_type_print_base): Fix typo found by above
          changes.
1995-05-18 23:45:31 +00:00
Ken Raeburn ff15324f63 Bunch of changes from Richard Earnshaw for generic bi-endian ARM aout targets.
Details in change logs.
1995-05-18 22:21:18 +00:00
Angela Marie Thomas 1b9016457d add support for i386-unixware target, m68k-vxworks5.1 target, i960-vxworks5.1 target... always configure with --enable-gdbtk 1995-05-18 09:27:23 +00:00
Angela Marie Thomas db78f2aeb1 update target lists for all hosts 1995-05-18 09:16:59 +00:00
Jim Kingdon fb49432789 * Makefile.in (xcoffread.o): Depend on partial-stab.h.
* xcoffsolib.c (sharedlibrary_command): New command.
	* xcoffsolib.c (solib_info): Call xcoff_relocate_symtab.
	* xcoffsolib.c: Miscellaneous cleanups.

	* partial-stab.h: Ignore symbol descriptor '-' (for local
	variables with negative type numbers) without complaint.

	* rs6000-nat.c (vmap_ldinfo): Use bfd_stat rather than our own
	local emulation thereof.  Remove unused variable ostart.
1995-05-18 05:24:29 +00:00
Jim Kingdon 8558c4e316 * libbfd.c (bfd_stat): If bfd_cache_lookup returns an error,
return an error to the caller.  Call bfd_set_error on errors.
1995-05-18 05:20:37 +00:00
J.T. Conklin e61853ddc5 * Makefile.in (config.status): changed target so that
config.status --recheck is executed if configure script changes.
1995-05-18 01:01:57 +00:00
J.T. Conklin 3ecd5c7d38 * Makefile.in (Makefile): Added config.status to dependency list.
(config.status): New target.
  (SHELL): New definition.
1995-05-18 00:58:02 +00:00
J.T. Conklin eba0864375 * monitor.c (monitor_printf): Changed format specification in
error message to work with pre-ansi compilers.
  (monitor_load_srec): reduced length of s-records from 128 to 32
  bytes so download is more reliable with the rom68k monitor.

* rom68k-rom.c: Added trailing space to prompt string.

* config/i386/xm-i386sco.h (HAVE_STRSTR): Removed.
* config/i386/xm-go32.h, mswin/xm.h (SYS_SIGLIST_MISSING):
  Removed.
* defs.h, config/{xm-lynx.h, xm-nbsd.h},
  config/i386/{xm-i386bsd.h, xm-linux.h},
  config/m68k/xm-hp300bsd.h, config/mips/xm-irix4.h,
  config/ns32k/xm-ns32km3.h, doc/gdbint.texinfo
  (PSIGNAL_IN_SIGNAL_H): Removed.
1995-05-17 23:13:26 +00:00
David Edelsohn f57b30fc38 Fix typo in keeping of ld.d. 1995-05-17 22:02:46 +00:00
Ken Raeburn ff17873d14 * config/obj-ecoff.c (ecoff_pop_insert): New function.
(ecoff_format_ops): Use it.
(obj_ecoff_frob_symbol): Now static.
1995-05-16 23:36:53 +00:00
Michael Meissner 9914665911 Little endian fix 1995-05-16 23:30:21 +00:00
Ken Raeburn b444036dd9 * config/tc-mips.c (mips_init_after_args): New function. Set byte_order here.
(md_parse_option): Not here.
(byte_order): Don't bother initializing.
* config/tc-mips.h (mips_init_after_args): Declare.
(tc_init_after_args): New macro.
1995-05-16 23:27:02 +00:00
Michael Meissner 7e11b1db3d Make filenames unique to 8.3 characters for Powerpc. 1995-05-16 22:29:39 +00:00
Ken Raeburn 739708fa4a Make Irix 5 configuration work again:
* config/obj-multi.h (obj_frob_symbol, obj_frob_file, S_GET_SIZE, S_SET_SIZE,
S_GET_ALIGN, S_SET_ALIGN, obj_copy_symbol_attributes, OBJ_PROCESS_STAB): New
macros.
* config/tc-mips.c: Protect against redefining them also when including
obj-elf.h.  Test only OBJ_ELF for including elf/mips.h.
1995-05-16 22:28:26 +00:00
David Edelsohn 80a0c990b0 Fix arc sanitization. 1995-05-16 22:20:45 +00:00
Ken Raeburn b0d419969e read.c (s_lcomm): Do ELF/ECOFF test at run time, not compile time. 1995-05-16 22:17:17 +00:00
J.T. Conklin 0a5a18215c * configure.in: Added INIT-CMDS argument to AC_OUTPUT which sets
gdb_host_cpu, gdb_target_cpu and nativefile.
* configure: regenerated.
1995-05-16 20:21:58 +00:00
Ken Raeburn 832338b24a internal.h: declare NT_subsystem and NT_stack_heap extern, so bfd compiles
better under picky compilers.

also added some changelog entries steve forgot to check in.
1995-05-16 19:11:48 +00:00
Peter Schauer 943b7032ab * mdebugread.c (parse_symbol): Do not relocate stBlock/scText
symbols, their value is the displacement from the procedure address.
	* top.c (init_main):  Add missing newlines to help strings for
	`if' and `while' commands, fix help string for `show commands'.
1995-05-16 07:12:22 +00:00
Stu Grossman 75cbae716f * breakpoint.c: Move defaults of watchpoint related macros into
target.h.  Use BP_TEMPFLAG and BP_HARDWAREFLAG instead of
	constants.
	* infrun.c (wait_for_inferior):  Enhance comment near
	STOPPED_BY_WATCHPOINT.
	* target.h:  Macros from breakpoint.c.
1995-05-16 01:47:52 +00:00
J.T. Conklin 5436fc6578 * config/i386/{i386sol2.mh, i386v4.mh, ncr3000.mh},
config/m68k/m68kv4.mh, config/mips/{irix4.mh, irix5.mh,
  mipsv4.mh}, config/sparc/sun4so2.mh (INSTALL): Removed, figured
  out by autoconf.
* config/apollo68v.mh (RANLIB): Removed, figured out by autoconf.

* Makefile.in, configure.in: Converted to use autoconf
* aclocal.m4: New file, local autoconf macro definitions.
* configure: New file, generated with autoconf 2.3.
1995-05-16 00:18:43 +00:00
Stan Shebs c812c3087a * remote.c (remote_kill): Add prototype.
* cpu32bug-rom.c (cpu32bug_open): Properly define as static.
	* config/h8300/h8300hms.mt (TDEPFILES): Add monitor.o.
1995-05-15 22:01:01 +00:00
Stan Shebs dfd7f39535 * remote.c (remote_kill): Add prototype.
* cpu32bug-rom.c (cpu32bug_open): Properly define as static.
	* config/h8300/h8300hms.mt (TDEPFILES): Add monitor.o.
1995-05-15 21:55:42 +00:00
Stu Grossman 24e1a4e0eb * sparclite/salib.c (win_ovf win_unf): Make window size constant
into a variable (__WINSIZE) so that it can be controlled via the
	.h file.
	* sparclite/sparclite.h:  Add SL933 #ifdef to set __WINSIZE to 6
	for the 933 board.
1995-05-15 21:17:36 +00:00
David Edelsohn 96433d032b (SER_HARDWIRE): Comment out for now. 1995-05-15 21:02:08 +00:00
David Edelsohn 58ca0030db * config/tc-arc.c (md_longopts): -EB/-EL renamed to
-mbig-endian/-mlittle-endian.
	(md_show_usage): Likewise.
1995-05-15 20:42:57 +00:00
Stu Grossman c66ed884ed * infrun.c: Add #ifdef HP_OS_BUG to all references to
trap_expected_after_continue.
	* (wait_for_inferior):  Fix for remote watchpoints.  Don't try to
	insert breakpoints while target is running (this only works on
	*some* native targets).  This may also speed up native watchpoints
	considerably.
1995-05-15 20:15:17 +00:00
Jim Kingdon bbb053fd78 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
mdebugread.c (struct symloc), hpread.c (struct symloc),
	xcoffread.c (struct symloc): Fix inaccurate comment introduced
	20 Apr 1995.
1995-05-13 21:03:23 +00:00
Jim Kingdon f133a597e4 * dwarfread.c (struct dwfinfo), dbxread.c (struct symloc),
mdebugread.c (struct symloc), hpread.c (struct symloc): Fix error
	in 20 Apr 1995 cleanup of comments.
1995-05-13 21:00:17 +00:00
Jim Kingdon fe5d4b85ae * gdb.stabs/xcoff.sed: Change N_LSYM to C_DECL not C_LSYM.
* gdb.stabs/weird.exp: Remove xfail for xcoff bitching about lack
	of a text section.
1995-05-13 20:52:01 +00:00
Jim Kingdon a367db8959 * rs6000-tdep.c (find_toc_address): Revise comment.
* symfile.c, symfile.h (init_psymbol_list): New function;
	consolidate duplicated copies from os9kread.c, dbxread.c
	and dwarfread.c.
	* defs.h: Declare info_verbose.
	* xcoffread.c: Extensive changes to support psymtabs.
1995-05-13 20:39:21 +00:00
Steve Chamberlain b297038d0b Thu May 11 16:43:14 1995 Steve Chamberlain <sac@slash.cygnus.com>
tekhex.c (first_phase): Understand type 0 symbols.
	(tekhex_write_object_contents): Fix typo in final record.

Thu May 11 16:43:14 1995  Steve Chamberlain  <sac@slash.cygnus.com>

	pr ld/6840

	* coff-i960.c (optcall_callback): don't try and optimize
	undefined refs.
	(coff_write_relocs): Search for broken relocs on the way
	out and fix them up.
	(coff_renumber_symbols): Calculate and return index of
	first undefined symbol.
	(coff_write_object_contents): Call coff_renumber_symbols
	and coff_write_relocs with the new args.
	* libcoff.h: (coff_renumber_symbols, coff_renumber_symbols):
	Modified prototypes.

Thu May 11 16:43:14 1995  Steve Chamberlain  <sac@slash.cygnus.com>
			  Tom Griest <griest@cs.yale.edu>

	Initial support for PE format.

	* Makefile.in, targets.c, configure.in, config.bfd:
	Add support for i386-*-winnt and i386-*-pe.
	* archive.c (do_slurp_coff_armap):  Understand NTPE format
	archives.
	(_bfd_slurp_extended_name_table): Turn \ in a filename
	into /.
	* bfd-in.h (bfd_link_subsystem, _bfd_link_stack_heap): New.
	* coff-i386.c  (howto_table): Conditionalize PCRELOFFSET.
	* coffcode.h (IMAGE_BASE): New.
	(coff_compute_section_file_positions): Throw away .junk
	sections for PE, align symbols.
	(coff_write_object_contents): Throw away .junk sections
	for PE. Remember info on .idata and .rsrc sections.
	Fill in the PE header.
	(coff_slurp_symbol_table): PE uses C_SECTION class.
	* cofflink.c (_bfd_coff_final_link): Keep PE info up to date.
	(_bfd_coff_generic_relocate_section): Cope with PE relocs.
	* coffswap.h (coff_swap_{aout/file/scn/sym}hdr_{in/out}):
	New code for PE headers.
1995-05-13 18:03:25 +00:00
Steve Chamberlain 9111b25a5b Sat May 13 10:14:08 1995 Steve Chamberlain <sac@slash.cygnus.com>
* coff/pe.h: New file.
	* bfdlink.h (subsytem, stack_heap_parameters): New.
	* coff/i386.h (NT_SECTION_ALIGNMENT, NT_FILE_ALIGNMENT,
	NT_DEF_RESERVE, NT_DEF_COMMIT): New.
	* coff/internal.h (internal_filehdr):  New fields for PE.
	(IMAGE_DATA_DIRECTORY): New.
	(internal_aouthdr): New fields for PE.
1995-05-13 17:16:31 +00:00
Steve Chamberlain b04b02a544 Fri May 12 14:17:47 1995 Steve Chamberlain <sac@slash.cygnus.com>
Initial support for PE object files.
	* configure.in, configure (i386-*-pe, i386-*-*nt): Add.
	* config/obj-coff.c (fixup_segment): Cope with PE wierdness.
	* config/obj-coff.h (TE_PE): New target format.
1995-05-12 21:26:01 +00:00
Stu Grossman 511ffbf219 * cpu32bug-rom.c remote-est.c rom68k-rom.c: Update line_term element. 1995-05-12 20:52:11 +00:00
Steve Chamberlain 3f38a017be Fri May 12 11:03:55 1995 Steve Chamberlain <sac@slash.cygnus.com>
Tom Griest <griest@cs.yale.edu>

	Initial support for PE executables (eg NT, win32)

	* Makefile.in (configure.in, ei386pe): Add support.
	* ldmain.c (main): Initialize PE argument info.
	* ldwrite.c (print_file_stuff): Don't print out .drectve
	and .debug section info.
	* lexsup.c (set_subsystem, set_stack_heap, OPTION_HEAP,
	 OPTION_SUBSYSTEM, parse_argsm set_subsystem, set_stack_heap):
	 Handle new arguments.
	* config/i386-pe.mt, emultempl/i386pe.em, scripttempl/i386pe.sc:
	New files
1995-05-12 18:55:06 +00:00
Jim Kingdon 48b2d07e4c * partial-stab.h: Expand comments. 1995-05-12 13:41:52 +00:00
Jeff Law 2d2959e852 * Support debugging using native MACH primitives on hppa*-*-osf*.
* configure.in: hppa*-*-osf* != hppa*-*-bsd* anymore.
	* config/pa/hppaosf.mh: New file.
	* config/pa/nm-hppao.h: Likewise.
	* hppam3-nat.c: Likewise.
	* config/pa/tm-hppao.h (PSW_SS): Define for single-stepping.
	(MACHINE_CPROC_*_OFFSET): Define.
	(TRACE_*): Define.
	(START_INFERIOR_TRAPS_EXPECTED): Delete definition.
1995-05-12 01:10:28 +00:00
Ken Raeburn 511cd41cc1 update for new files 1995-05-12 00:04:35 +00:00
Stu Grossman 7c71315ce5 * config/monitor.exp (gdb_target_monitor): Fix loop interator so
that loop eventually terminates.  Fix Connection refused logic so
	that testsuite will expire nicely.
1995-05-11 22:13:46 +00:00