Commit Graph

2634 Commits

Author SHA1 Message Date
David D. Zuhn fe76016acb fix docstring so that it compiles 1993-06-29 16:02:41 +00:00
David D. Zuhn 77641260c5 fix include file ordering problem (bfd.h vs. symfile.h) 1993-06-29 15:30:57 +00:00
Jim Kingdon fd09c96316 * dbxread.c (process_one_symbol): If we find a LOC_BLOCK where we
don't expect it, change it to LOC_STATIC so at least we don't coredump.

	* c-typeprint.c (c_type_print_base): Don't error() on invalid type.
1993-06-29 15:25:27 +00:00
Jim Kingdon d63aae7f32 * symtab.h (struct symtab, line_charpos): Fix comment.
* source.c (identify_source_line): Fix off by one bug with line.
1993-06-29 14:47:17 +00:00
Jim Kingdon b4e899792d * gdb.t10/Makefile.in (clean): Remove $(EXECUTABLES) too. 1993-06-29 14:24:36 +00:00
Jim Kingdon f9dd88b41e * config/pa/xm-pa.h: New file.
* config/pa/xm-hppa{b,h}.h: Include it.
1993-06-28 22:35:18 +00:00
Jim Kingdon c702007b17 x 1993-06-28 22:34:29 +00:00
Jim Kingdon 53fc6c46e9 config/m88k/xm-delta88.h: Remove VPRINTF define, not needed. 1993-06-28 19:18:56 +00:00
Jim Kingdon 6b9561a423 * xcoffread.c: Remove obsolete NO_TYPEDEFS comment. 1993-06-28 17:38:30 +00:00
Jim Kingdon 44443a9b09 * gdb.stabs/wierd.exp: Add xfail for rs6000. 1993-06-28 15:15:23 +00:00
Jim Kingdon f492b6c11b * gdb.stabs/wierd{.def,-aout.S,-xcoff.S}: Use new macros
{BEGIN,END}_COMMON for common block instead of STAB.
1993-06-28 15:03:27 +00:00
Jim Kingdon 884e8cd43e * gdb.stabs/wierd.def: Make value of N_GSYM's 0.
intp_var should be N_GSYM not N_LSYM.
	wierd-aout.S: Use a label for the value of the N_SO.
	wierd.def: Remove all backslashes.
	wierd-{aout,xcoff}.S: Put a few tests with backslashes here.
1993-06-28 14:34:46 +00:00
Peter Schauer 9325d5afa3 * gdb.t20/gdbme.cc (main): Move variable initialization for AIX to
get the expected next to inheritance3.
1993-06-28 14:23:11 +00:00
Rob Savoye 6214895281 Works again. 1993-06-28 01:43:34 +00:00
Peter Schauer d2b860e3a7 * gdb.t00/teststrategy.exp: Remove expected failure for mips-*-*
now that gcc-2.4 gets it right.
1993-06-27 19:31:36 +00:00
Peter Schauer be2860fbf3 * valprint.c (val_print_type_code_int): Fix off by one error with
eliminating leading zeroes for large little endian integers.
1993-06-27 15:56:44 +00:00
Jim Kingdon 42280556eb * config/mips/riscos.mh (CC): Use -systype sysv. 1993-06-27 14:28:30 +00:00
Jim Kingdon 68d2db622d * ser-unix.c: Move #include of <sys/time.h> to HAVE_SGTTY section. 1993-06-27 14:16:34 +00:00
Jim Kingdon ee0d1b6565 * Makefile.in (ALLPARAM): Add config/mips/{x,n}-{news-mips,riscos}.h. 1993-06-27 14:06:28 +00:00
Jim Kingdon 2de1aa1cc9 * gdb.stabs/wierd{.def,.exp,-aout.S,-xcoff.S}: Add common block test. 1993-06-26 03:30:24 +00:00
Jim Kingdon 11d1934593 revisions to just-checked-in stuff re common blocks 1993-06-26 03:25:03 +00:00
Jim Kingdon e0020f272e * stabs.texinfo (Common Blocks): Say what Sun FORTRAN does. 1993-06-26 02:39:05 +00:00
Jim Kingdon 751b4006af * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
CALL_DUMMY between different 68k machines.
1993-06-26 02:05:54 +00:00
Jim Kingdon ea2455a939 * config/m68k/tm-m68k.h: Remove obsolete comment about duplicating
CALL_DUMMY between different 68k machines.
1993-06-26 01:44:56 +00:00
Stu Grossman 41e170e271 * gdbserver/Makefile.in: Add dependancies on server.h.
* gdbserver/remote-gutils.c:  Remove lots of unused functions and
	variables.
	* gdbserver/remote-inflow.c:  Remove lots of unused variables and
	#includes.  Also, use PTRACE_* symbols instead of constants.
	(mywait):  Surround calls to wait() with enable/disable_async_io()
	so that we can be interrupted from GDB while waiting for the
	child.  Also, handle child exit more gracefully.
	* gdbserver/remote-server.c:  Remove lots of unused variables.
	Move all extern defs into server.h.  Redo main loop so that
	failure from getpkt() causes communications to be re-established.
	Fix 'k' command so that it restarts the child.
	* gdbserver/remote-utils.c:  Remove lots of unloved vars and
	subrs.  Move many extern decls into server.h.  (remote_open):  For
	tcp, seperate usage of proto fd from connected fd.  Close proto
	fd after getting connection.  (putpkt/getpkt):  Pay attention to
	errors when reading/writing.  Report these to the caller.  New
	routines input_interrupt/enable_async_io/disable_async_io to make
	it possible to get an I/O interrupt when data arrives from the
	comm link.
	* serial.h:  New file to contain common defs for all remote files.
1993-06-26 00:41:00 +00:00
Stu Grossman a037b21e75 * remote.c: Add arg names to prototypes, in a modest effort at
clarification.  Also add prototypes for some new functions.
	* (remote_wait):  Better error reporting for 'T' responses.
	* ser-go32.c (strncasecmp):  Make str1 & str2 be const.
	* (dos_async_init):  Make usage message reflect requested port #.
	* ser-tcp.c (tcp_open):  Terminate hostname properly to prevent
	random hostname lookup failures.  Add nicer message for unknown
	host error.  (wait_for):  Wake up in case of exceptions.  Also,
	restart select() if we got EINTR.
	* ser-unix.c (wait_for):  Restart select() if we got EINTR.
	* serial.c: (serial_close):  Clean up code.
1993-06-26 00:22:30 +00:00
Roland Pesch 2685ead7d6 * Makefile.in: (REFEDITS) new var to control whether PS or CM
fonts and whether US or A4 paper for GDB refcard; (refcard.dvi)
	collect sed edits if any, apply to refcard before formatting;
	(refcard.ps) stop implying PS fonts if PS output requested;
	(lrefcard.ps) delete extra target for variant PS fonts

	* refcard.tex: parametrize papersize dependent info, collect
	  in easily replaced spot

	* a4rc.sed: new file, edits to refcard for A4 paper
1993-06-25 23:20:43 +00:00
Jim Kingdon a4cb75b801 add comment 1993-06-25 22:34:44 +00:00
Jim Kingdon 16e1d1d361 doc fix 1993-06-25 22:30:46 +00:00
Jim Kingdon f3fe62b125 * Makefile.in (*.tab.c): Use ./c-exp.tab.c not just c-exp.tab.c.
Make comment explaining this comprehensible.
	(TAGFILES): Include ALLDEPFILES.
	(ALLDEPFILES): udi2soc.c and udr.c are in 29k-share/udi, not
	29k-share/udi/udi.
	(update-alldeps): Remove; obsolete.
1993-06-25 20:28:06 +00:00
Jim Kingdon e50ebec874 * remote.c: Move comments regarding packets to top of file with the
rest of the protocol comments.
	Fix incorrect description of 'T' response.
1993-06-25 19:44:18 +00:00
Jim Kingdon 3576a41210 * README (Reporting Bugs): Refer people to the GDB manual. 1993-06-25 19:35:35 +00:00
Jim Kingdon 455c860321 * stabs.texinfo (Negative Type Numbers): Type -16 is 4 bytes. 1993-06-25 19:32:18 +00:00
Jim Kingdon 7e71985c9e * c-valprint.c (c_val_print): Handle TYPE_CODE_BOOLEAN.
* stabsread.c: Type -16 is 4 bytes.
1993-06-25 19:29:45 +00:00
Jim Kingdon a38b1233c2 * remote-udi.c: Improve docstring. 1993-06-25 19:11:22 +00:00
Fred Fish 872dd3fe12 * elf_symfile_read (bfd_elf32_find_section): Revert back to
calling bfd_elf_find_section to track bfd changes.
1993-06-25 18:51:11 +00:00
Jim Kingdon f788cf78fd * gdb.t{02,13}/{Makefile.in,gdbme.c,comp-info.c}: New way of
generating comp-info.exp which works for cross-compilation.
1993-06-25 17:16:44 +00:00
Jim Kingdon ef3986bbe1 * config/mips/xm-riscos.h: Define USG. 1993-06-25 16:31:24 +00:00
Jim Kingdon f75ad5da8f * config/mips/riscos.mh (REGEX{,1}, MUNCH_DEFINE, MH_CFLAGS): Define. 1993-06-25 16:27:51 +00:00
Jim Kingdon a32ebcfd6b * main.c (filename_completer): Don't complete to files ending in ~.
* NEWS: Mention filename completion and "info line" enhancements.

	* main.c (symbol_completion_function): On "info t foo", return NULL,
	don't error().

	* main.c (symbol_completion_function): Don't use readline word
	breaking.  Use new calling convention for c->completer and
	complete_on_cmdlist.
	* command.h (struct command): Change arguments; now the text passed
	to completer does not have any word breaking done.  New arg word.
	* symtab.{c,h} (make_symbol_completion_list): Do word breaking.  Take
	word argument.
	* {main.c,gdbcmd.h} ({filename,noop}_completer): Take word argument.
	* command.{c,h} (complete_on_cmdlist): Take word argument.

	* command.c (lookup_cmd_1): Doc fix.
1993-06-25 03:47:12 +00:00
Fred Fish 6ba7b81886 * gdb.t11/list.exp: For SVR4 xfails, match "*-*-sysv4*", not
"*-*-sysv4.*".
1993-06-24 23:56:35 +00:00
Rob Savoye 453592cae0 Add RUNTEST so make can use the right one. 1993-06-24 23:19:51 +00:00
K. Richard Pixley b8774958a0 define OP_INCLUDE 1993-06-24 23:16:00 +00:00
K. Richard Pixley e704cf435b * config/i386/ncr3000.mh, config/i386/i386v4.mh,
config/i386/i386sol2.mh, config/m68k/hp300hpux.mh,
config/m68k/amix.mh, config/mips/irix[34].mh, config/m88k/delta88.mh,
config/sparc/sun4sol2.mh (ALLOCA, ALLOCA1): macros removed.

* config/mips/decstation.mh, config/rs6000/rs6000.mh (MMALLOC_LIB):
renamed to MMALLOC.
1993-06-24 20:53:06 +00:00
Jim Kingdon 4ae030b938 * partial-stab.h: Consolidate case statements for N_LSYM and N_FUN.
* dbxread.c: Change comment regarding acc.
1993-06-24 00:44:54 +00:00
K. Richard Pixley 97090015dd remove lines with only tabs 1993-06-23 23:54:57 +00:00
K. Richard Pixley f4cc789c22 -I$(BFD_DIR) rather than including from the library proper. Hmph. 1993-06-23 23:41:40 +00:00
K. Richard Pixley 7ae7b9191e Makefile rework 1993-06-23 22:59:35 +00:00
K. Richard Pixley baa3837246 remove redundant include of symtab.h 1993-06-23 22:17:35 +00:00
K. Richard Pixley be17ae1f0e do not keep alloca.c 1993-06-23 22:14:18 +00:00
K. Richard Pixley fbca751901 removed alloca.c which is now in libiberty 1993-06-23 22:13:19 +00:00
K. Richard Pixley 8860783950 new M_UNINSTALL macro 1993-06-23 22:09:27 +00:00
K. Richard Pixley c2df19bdb1 new M_UNINSTALL macro 1993-06-23 22:06:58 +00:00
Jim Kingdon dcb9e8698f * stabs.texinfo (Negative Type Numbers): Minor character cleanups. 1993-06-23 20:06:07 +00:00
Jim Kingdon 6ffbfcc2a5 * config/ns32k/{merlin.mh,xm-merlin.h}: Be consistent about name
of gdb-sh.
1993-06-23 19:44:05 +00:00
Jim Kingdon ec06a3cb25 * dbxread.c (copy_pending): Change name and function of begi argument
to endi, since that is what the caller needs.
1993-06-23 19:20:49 +00:00
Jim Kingdon 853a233b92 * Makefile.in (TAGFILES): Don't include YYFILES.
* Makefile.in (HFILES): Include monitor.h.

	* Makefile.in: Include text that used to be in alldeps.mak.
	Remove config/mips/{bigmips.mh,xm-bigmips} from it.
	* Makefile.in, configure.in: Remove all traces of alldeps.mak.
1993-06-23 15:54:34 +00:00
Jim Kingdon 29f3879c61 * main.c (main): Print help message on stdout not stderr
per standards.texi.
	New option --version per standards.texi.
	In help message, show long options with "--" not "-".
	Don't try to print help message or version until after we have
	called initialize_all_files.
1993-06-23 05:56:42 +00:00
Jim Kingdon 15d4eb2197 * solib.c (solib_add_common_symbols): Don't call lookup_minimal_symbol.
(solib_add): Call special_symbol_handling once, not once per library.
1993-06-22 23:35:35 +00:00
Jim Kingdon acf7d010ce * stabs.texinfo: Express disapproval of 'D' symbol descriptor
politely rather than rudely.
1993-06-22 21:37:32 +00:00
Jim Kingdon 59ba57dad6 * procfs.c (procfs_resume): Don't pass a SIGTSTP whose action
is SIG_DFL.

	* procfs.c (procfs_resume): Skip the unnecessary PRSVADDR on all
	systems, not just Solaris.
1993-06-22 19:48:52 +00:00
Jim Kingdon 9ddfb9eb20 * stabsread.c: Include <ctype.h>. 1993-06-22 08:20:18 +00:00
Jim Kingdon 3768398df8 * fork-child.c (fork_inferior): Quote exec_file so it can contain
funky characters.
1993-06-22 04:27:00 +00:00
Fred Fish 68eabdd300 * Makefile.in (INCLUDE_CFLAGS): Add BFD_INCLUDES for now, since
bfd.h is included by target.h, which most of gdb includes.
	* depend:  Hand remove BFD_INCLUDES from ${CC} lines, now that
	it's in INCLUDE_CFLAGS.
1993-06-22 00:05:40 +00:00
Jim Kingdon d628e5b2b6 various revisions to new files 1993-06-21 23:47:51 +00:00
Jim Kingdon 2c7ab4ca35 * config/i386/*aix*, i386aix-nat.c: New files.
* configure.in: Use them.
	* alldeps.mak: List them.
	* coffread.c (decode_base_type): Deal with anonymous enum type.
	* i387-tdep.c (print_387_status_word): Add comment re "top".
	* i386-tdep.c [I386_AIX_TARGET] (i386_extract_return_value): New func.
	* dbxread.c: Use SEEK_SET and SEEK_CUR, not L_*.  Define them if and
	only if not defined by a header file.
	* mipsread.c: Don't define L_SET or L_INCR.
1993-06-21 23:46:49 +00:00
Jim Kingdon ecee7d0c2d new file 1993-06-21 23:39:59 +00:00
Jim Kingdon c96d68c281 * config/i386/*aix*: New files.
* alldeps.mak: List them.
1993-06-21 23:14:07 +00:00
Fred Fish cfb702c1e0 * {gdb.t01, gdb.t02, gdb.t03, gdb.t04, gdb.t05, gdb.t06, gdb.t07,
gdb.t08, gdb.t09, gdb.t10, gdb.t11, gdb.t12, gdb.t13, gdb.t15,
	gdb.t16, gdb.t17, gdb.t20, gdb.t21, gdb.t22, gdb.t23, gdb.t30}/
	Makefile.in (distclean, realclean):  Remove gdbme.c from list of
	things to remove.
1993-06-21 22:27:19 +00:00
Fred Fish 200a347093 * Makefile.in (BFD_INCLUDES): Bfd.h is now back in bfd build dir.
* depend:  Hand updated to match.
1993-06-21 22:11:44 +00:00
Fred Fish 733d4e93a9 Bfd.h is now back in BFD_OBJ_DIR, update by hand to match pending Rich's
changes...
1993-06-21 20:18:10 +00:00
Jim Kingdon 550754345f expand on solib_add_common_symbols comment 1993-06-21 18:48:51 +00:00
Jim Kingdon 7edd8068e1 * snapshots.readme: Tell people to always report missing files. 1993-06-21 17:33:06 +00:00
Fred Fish c1aa3a2fbb Add all the mt-* files as things to keep. 1993-06-21 16:39:46 +00:00
Jim Kingdon 089dc22027 * stabsread.c (read_struct_fields): Don't call read_cpp_abbrev on $_.
(read_cpp_abbrev): Don't complain specially for $_.  Also return 0 if
	we don't recognize the abbrev.
1993-06-20 20:30:31 +00:00
Jim Kingdon 2a4e8cc37d * solib.c (solib_add_common_symbols): Add comment about performance. 1993-06-20 05:28:07 +00:00
David D. Zuhn 8eb5e28936 added stabs-in-elf menu entry, reformatted menus with C-c C-u a (texinfo mode command) 1993-06-19 22:18:24 +00:00
Fred Fish 3d26a081b1 * gdb.t24/demangle.exp (test_gnu_style_demangling): Add some new
test cases from bug reports.
1993-06-19 14:53:17 +00:00
Jim Kingdon 807e8368fa * stabs.texinfo: Document common blocks. 1993-06-19 00:45:34 +00:00
Jim Kingdon 3222c7d01c new files for riscos 1993-06-18 22:21:38 +00:00
Jim Kingdon 7f6175b4dc * config/mips/{{x,n}m-riscos.h,riscos.mh}: New files. 1993-06-18 22:20:49 +00:00
Jim Kingdon ee06f23011 * config/mips/{{x,n}m-riscos.h,riscos.mh}: New files.
* configure.in (mips-*-sysv*): Use riscos for host, bigmips for target.
1993-06-18 22:20:26 +00:00
Jim Kingdon 89e04499d1 * config/mips/{{x,n}m-news-mips.h,news-mips.mh}: New files.
* config/mips/{bigmips.mh,xm-bigmips.h}: Remove.
	* configure.in (mips-sony-*): Use news-mips for host.
1993-06-18 21:49:24 +00:00
Jim Kingdon b487ba2e77 * config/mips/{{x,n}m-news-mips.h,news-mips.mh}: New files.
* config/mips/{bigmips.mh,xm-bigmips.h}: Remove.
	* configure.in (mips-sony-*): Use news-mips for host.
1993-06-18 21:39:27 +00:00
Steve Chamberlain d4bbd6ace2 Make it work in subdirs. 1993-06-18 21:37:12 +00:00
David D. Zuhn 5ebaf24b77 single-quote $program_transform_name 1993-06-18 19:25:38 +00:00
Fred Fish 5e27ed65e2 Add note about endianess of the stabs-in-elf stabs binary data. 1993-06-18 19:24:44 +00:00
Fred Fish cc4fb84844 * stabs.texinfo: Add some basic info about stabs-in-elf.
(this may require attention from a tex/texinfo wizard..)
1993-06-18 19:15:45 +00:00
Jim Kingdon 6ae55c65c8 * stabs.texinfo (Top): Minor cleanup. 1993-06-18 19:01:43 +00:00
Fred Fish 5c0e7bd6ef * gdb.t06/break.exp: Add xfails for sparc-sun-solaris2.*.
* gdb.t12/scope.exp:  Add clear_xfails at appropriate places to
	  avoid spurious xfails.
	* gdb.t20/classes.exp:  Add xfails for longstanding C++ problems.
	* gdb.t21/cplusfuncs.exp:  Add xfails for sparc-sun-solaris2.*.
	* gdb.t22/virtfunc.exp:  Add xfails for longstanding C++ problems.
1993-06-18 17:43:51 +00:00
Jim Kingdon e64ec645a8 * buildsym.h: Doc fix for processing_acc_compilation. 1993-06-18 17:40:50 +00:00
Jim Kingdon 8715a9f36a * printcmd.c (print_formatted): Don't use tab in wrap_here arg. 1993-06-18 03:12:22 +00:00
Jim Kingdon c9d8fc9120 * config/m88k/xm-delta88.h: Comment out unused defines which conflict
with system headers.
	* printcmd.c (printf_command): Cast second arg to vprintf to PTR.
	Use VPRINTF macro if defined.
	* config/m88k/xm-delta88.h: Define VPRINTF.  Include <sys/siginfo.h>.
	Define TIOC{GETC,GLTC}_BROKEN.
	* m88k-nat.c: Uncomment include of <sys/ptrace.h>.
	* main.c: Rename initialize_{main,cmd_lists,history} to init_* to
	make things easier on munch (apparently this matters on
	the delta88 with svr3).
1993-06-18 02:33:01 +00:00
Jim Kingdon fc61e9eeec * Makefile.in (INTERNAL_CFLAGS): Include ../include as well as
${srcdir}/../include.

	* config/m88k/xm-delta88.h: Comment out unused defines which conflict
	with system headers.
	* printcmd.c (printf_command): Cast second arg to vprintf to PTR.
	Use VPRINTF macro if defined.
	* config/m88k/xm-delta88.h: Define VPRINTF.  Include <sys/siginfo.h>.
	Define TIOC{GETC,GLTC}_BROKEN.
	* m88k-nat.c: Uncomment include of <sys/ptrace.h>.
	* main.c: Rename initialize_{main,cmd_lists,history} to init_* to
	make things easier on munch (apparently this matters on
	the delta88 with svr3).
1993-06-18 02:32:27 +00:00
David D. Zuhn 981dfa40c7 remove parentdir support 1993-06-18 01:00:13 +00:00
David D. Zuhn c8fee4a53e canonicalize install.sh location 1993-06-18 00:35:08 +00:00
Jim Kingdon d57528d1ce hand-edited 1993-06-17 23:20:46 +00:00
Steve Chamberlain 4ce149f970 Alpha host support. 1993-06-17 22:23:40 +00:00
Steve Chamberlain 7ccb1e4401 * configure.in (alpha-*-osf*), config/alpha/alpha-osf.mh: New
host.
	* sh-tdep.c (frame_find_saved_regs): Use NUM_REGS rather than hard
	wired (and wrong) constant.
	* values.c (unpack_long): Add case to unpack when target object is
	sizeof(int).
	* config/sh/tm-sh.h (REGISTER_NAMES): Know about the news ones the
	simulator defines.
1993-06-17 22:16:07 +00:00
K. Richard Pixley 21cc14d850 start tracking user visible changes 1993-06-16 23:13:57 +00:00