Commit graph

4473 commits

Author SHA1 Message Date
J.T. Conklin
d7758a22a2 * sparcnbsd.mh,sparcnbsd.mt: New files, support for NetBSD/sparc. 1994-08-26 18:10:49 +00:00
J.T. Conklin
ebedfc6785 fix typo 1994-08-25 00:58:14 +00:00
J.T. Conklin
6b13c79c6d * config/xm-nbsd.h: New file, support for all NetBSD ports.
* config/sparc/{nm-sparcnbsd.h,tm-sparcnbsd.h,xm-sparcnbsd.h}: New files,
  support for NetBSD/sparc.
* configure.in: Add sparc-*-netbsd target.
1994-08-25 00:55:39 +00:00
J.T. Conklin
74d319e092 * config/xm-nbsd.h: New file, support for all NetBSD ports.
* config/sparc/{nm-nbsd.h,tm-nbsd.h,xm-nbsd.h}: New files, support
  for NetBSD/sparc.
* configure.in: Add sparc-*-netbsd target.
1994-08-25 00:54:50 +00:00
Stan Shebs
3d19ff2b13 * remote-vx.c (vx_attach): Interpret the command argument as an
unsigned long.
1994-08-24 20:22:25 +00:00
Ian Lance Taylor
2c5d4a3443 * configure.in: Change i386 to i[345]86.
* gdb.base/configure.in: Likewise.
	* gdb.c++/configure.in: Likewise.
	* gdb.chill/configure.in: Likewise.
1994-08-24 17:18:05 +00:00
Ian Lance Taylor
7382b3b197 * configure.in: Change i[34]86 to i[345]86.
* nlm/configure.in: Likewise.
	* gdbserver/configure.in: Likewise.
1994-08-24 17:12:57 +00:00
J.T. Conklin
bdf218b315 * configure.in (i386-*-netware): Automatically configure nlm
subdir.
1994-08-24 16:43:18 +00:00
Stan Shebs
70bcd4bc7e * lib/gdb.exp (gdb_run_cmd): Move comment out from between expect
patterns, since that is not a valid context for comments.
1994-08-24 02:21:37 +00:00
J.T. Conklin
86165efce5 * nlm/gdbserve.c: conditionalize header file inclusion for either
NetWare 4.0 or PIN targets.
* nlm/i386.c: include appropriate header files.
* nlm/prelude.c: define TERMINATE_BY_UNLOAD for NetWare 4.0
  targets.
1994-08-24 00:58:42 +00:00
J.T. Conklin
513d7836d0 * gdbserve.c: conditionalize header file inclusion for either
NetWare 4.0 or PIN targets.
* nlm/i386.c: include appropriate header files.
* nlm/prelude.c: define TERMINATE_BY_UNLOAD for NetWare 4.0
  targets.
1994-08-24 00:57:17 +00:00
Stu Grossman
8edf00160b * nlm/ppc.c (set_step_traps clear_step_traps): Cleanups.
* nlm/gdbserve.def:  Autoload clib.
1994-08-24 00:27:38 +00:00
Jim Kingdon
e44075d3aa * gdbtypes.h: Declare f77_create_literal_string_type and
f77_create_literal_complex_type.
	* valops.c (f77_value_literal_string, f77_value_substring,
	f77_value_literal_complex): Use xmalloc not malloc.
	* valops.c (f77_value_literal_string, f77_value_substring):
	Make addr char * not CORE_ADDR.
	* value.h (struct value): Add new field literal_data of aligner union.
	(VALUE_LITERAL_DATA): Use it.
	* f-lang.h: Declare find_common_for_function.
	* value.h, valops.c: Split VALUE_SUBSTRING_START into memaddr and
	myaddr fields of a union.  Don't overload it with the frame field
	(not sure this is necessary; I'm not sure what lval_* codes
	VALUE_SUBSTRING_* can be used with).
1994-08-23 21:39:50 +00:00
Rob Savoye
4682251ba1 Command loop sort-of works, stopeed core dumping. 1994-08-23 01:22:56 +00:00
Stan Shebs
0cf4b3b7c6 * config/a29k/{a29k-kern.mt,a29k-udi.mt,a29k.mt,ultra3.mh,
ultra3.mt}: Clean up, remove no-longer-used definitions.
1994-08-23 00:52:23 +00:00
Stan Shebs
886955e7cc * rs6000-nat.c: Include libbfd.h again, needed until reference
to bfd_cache_lookup is cleaned out.
1994-08-22 19:48:31 +00:00
Stan Shebs
2656b343e1 * config/i386/linux.mh (XM_CLIBS): Add -lm. 1994-08-22 18:49:23 +00:00
Steve Chamberlain
be5e6fff5a Work to reduce the interrupts-off duration when running in DOS.
* ser-go32.c:  (dos_async_ready): See if anything is in the buffer.
	(dos_async_rx): rewrite to unpack as many characters from the
	asynctsr as possible into a local buffer.
1994-08-22 17:58:47 +00:00
Stan Shebs
c94ca90e9d * mpw-init.c (initialize_all_files): Remove inits of utils and
targets.
1994-08-19 22:25:43 +00:00
Stan Shebs
042bb07930 Keep new Fortran files. 1994-08-19 22:01:24 +00:00
Stan Shebs
a91a61923d Initial Fortran language support, adapted from work by Farooq Butt
(fmbutt@engage.sps.mot.com).
	* Makefile.in: Add Fortran-related files and dependencies.
	* defs.h (language_fortran): New language enum.
	* language.h (_LANG_fortran): Define.
	(MAX_FORTRAN_DIMS): Define.
	* expression.h: Reformat to standard.
	(MULTI_F77_SUBSCRIPT, OP_F77_UNDETERMINED_ARGLIST,
	OP_F77_LITERAL_COMPLEX, OP_F77_SUBSTR): New expression opcodes.
	* gdbtypes.h (TYPE_CODE_COMPLEX, TYPE_CODE_LITERAL_COMPLEX,
	TYPE_CODE_LITERAL_STRING): New type codes.
	(type): New fields upper_bound_type and lower_bound_type.
	(TYPE_ARRAY_UPPER_BOUND_TYPE, TYPE_ARRAY_LOWER_BOUND_TYPE,
	TYPE_ARRAY_UPPER_BOUND_VALUE, TYPE_ARRAY_LOWER_BOUND_VALUE): New
	macros.
	(builtin_type_f_character, etc): Declare.
	* value.h (VALUE_LITERAL_DATA, VALUE_SUBSTRING_START): Define.
	* f-exp.y: New file, Fortran expression grammar.
	* f-lang.c: New file, Fortran language support functions.
	* f-lang.h: New file, Fortran language support declarations.
	* f-typeprint.c: New file, Fortran type printing.
	* f-valprint.c: New file, Fortran value printing.
	* eval.c (evaluate_subexp): Add code for new expression opcodes,
	fix wording of error message.
	* gdbtypes.c (f77_create_literal_complex_type,
	f77_create_literal_string_type): New functions.
	* language.c (set_language_command): Add Fortran info.
	(calc_f77_array_dims): New function.
	* parse.c (length_of_subexp, prefixify_subexp): Add cases for new
	expression opcodes.
	* symfile.c (deduce_language_from_filename): Recognize .f and .F
	as Fortran source files.
	* valops.c (f77_value_literal_string, f77_value_substring,
	f77_value_literal_complex): New functions.
1994-08-19 21:59:05 +00:00
Peter Schauer
f3806e3b6c * c-typeprint.c (c_print_type): Assume demangled arguments
if a '(' is found in varstring, Looking for ')' at the end of
	varstring did fail with demangled const member functions, which
	have a trailing `const'.
	* remote.c (get_offsets, putpkt):  Change to `char' buffers,
	to avoid errors when compiling with DEC c89.
	(remote_wait):  Cast to `char *' before passing buffer to
	fputs_filtered, to avoid errors when compiling with DEC c89.
	(remote_wait):  Do not return inferior_pid by default, this
	statement is never reached, which causes warnings from some
	compilers.
	* stabsread.c (scan_file_globals):  Ignore static minimal symbols.
	* symfile.c (load_command):  If called with no argument, try
	to get the filename from the executable file.
	(generic_load):  Remove check for NULL filename, it is done
	in load_command now.
1994-08-19 20:44:18 +00:00
Rob Savoye
399290be36 Add remote-pa.c. 1994-08-19 16:54:14 +00:00
Jeff Law
98c0e047bd * Makefile.in (ALLDEPFILES): Add hpread.c.
(hpread.o): Add dependencies.

        * somread.c: Do not include "aout/aout64.h".  SOM has nothing to
        do with a.out.
        (BYTES_IN_WORD): Delete.
        (som_symfile_read): Call hpread_build_psymtabs to build any
        minimal symbols based on the HP C native debug symbols.
        (som_symfile_finish): Call hpread_symfile_finish.
        (som_symfile_init): Call hpread_symfile_init.
        * config/pa/tm-hppa.h (HPREAD_ADJUST_STACK_ADDRESS): Define.
        * hppa-tdep.c (hpread_adjust_stack_address): New function.

        * config/pa/hppabsd.mh (NATDEPFILES): Add hpread.o
        * config/pa/hppahpux.mh (NATDEPFILES): Likewise.
        * hpread.c: New file.
1994-08-19 16:48:51 +00:00
Jeff Law
4cbc4bf151 * hppa-tdep.c (skip_trampoline_code): Revert incorrect change
from June 2, 1994 (what was I thinking?!?).  Fix it right this
	time.
1994-08-19 06:57:06 +00:00
J.T. Conklin
ef4b379aab * nlm/i386.c, nlm/i386.h: New files that contain i386 specific code. 1994-08-19 00:06:47 +00:00
Stan Shebs
78425afef6 * README: Grammar improvements, clarifications, updates. 1994-08-18 21:46:06 +00:00
Rob Savoye
fe4f3d0bec Support both the generic remote protocol and the one for HP-PRO targets. 1994-08-18 17:06:26 +00:00
Rob Savoye
7765123d8a Make a unique remote target "hppro", rather than use generic remote. 1994-08-18 17:05:07 +00:00
Stu Grossman
a8f6da08dc * 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?
	* config/alpha/gdbserve.mt:  Defs for alpha nlm stub.
	* config/powerpc/gdbserve.mt: Defs for PowerPC nlm stub.
	* config/powerpc/ppc-nw.mt:  Defs for PowerPC target for GDB.
	* config/powerpc/tm-ppc-nw.h:  Ditto.

	* nlmstub.def:  New file, contains imports for 386 nlm stub.
1994-08-18 06:43:56 +00:00
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
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
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
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
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
Stu Grossman
4fb7359d97 * remote.c (remote_wait): Return inferior_pid instead of 0 for
`W` message.
1994-08-12 22:54:53 +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
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
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