Commit graph

1638 commits

Author SHA1 Message Date
Fred Fish
e58de8a230 * Makefile.in (SFILES_MAINDIR): Add ch-exp.y.
* Makefile.in (YYFILES):  Add ch-exp.tab.c.
	* Makefile.in (YYOBJ):  Add ch-exp.tab.o.
	* Makefile.in (saber_gdb):  Add unload of ch-exp.y and load
	of ch-exp.tab.c.
	* Makefile.in (distclean):  Add target ch-exp.tab.c.
	* Makefile.in (realclean):  Add rm of ch-exp.tab.c.
	* Makefile.in (c-exp.tab.c, m2-exp.tab.c):  Add dependency on
	Makefile since it contains sed patterns used in generation.
	Add sed pattern to also delete #include of any malloc.h.
	* Makefile.in (ch-exp.tab.o, ch-exp.tab.c):  New targets.
	* ch-exp.y:  New expression parser, for GNU-Chill.
	* c-exp.y, expr.c, expression.h, language.c, m2-exp.y,
	parser-defs.h, valarith.c, valops.c, value.h:  Remap macros and
	function names to conform to K&R terminology with respect to
	logical and bitwise operators:
	UNOP_ZEROP => UNOP_LOGICAL_NOT
	UNOP_LOGNOT => UNOP_COMPLEMENT
	BINOP_LOGAND => BINOP_BITWISE_AND
	BINOP_LOGXOR => BINOP_BITWISE_XOR
	BINOP_LOGIOR => BINOP_BITWISE_IOR
	BINOP_AND => BINOP_LOGICAL_AND
	BINOP_OR => BINOP_LOGICAL_OR
	PREC_OR => PREC_LOGICAL_OR
	PREC_AND => PREC_LOGICAL_AND
	PREC_LOGIOR => PREC_BITWISE_IOR
	PREC_LOGXOR => PREC_BITWISE_XOR
	PREC_LOGAND => PREC_BITWISE_AND
	value_zerop() => value_logical_not()
	value_lognot() => value_complement()
	* c-exp.y (c_op_print_tab):  Add explicit empty terminator.
	* m2-exp.y (m2_op_print_tab):  Add explicit empty terminator.
	* defs.h (enum language):  Add language_chill.
	* dwarfread.c (set_cu_language):  Add LANG_CHILL case and make
	LANG_MODULA2 a recognized language.
	* eval.c (evaluate_subexp):  Add OP_BOOL case.
	* expprint.c (print_subexp):  Add OP_BOOL case.
	* gdbtypes.h (enum_typecode):  Note TYPE_CODE_BOOL used for
	Chill as well as Modula-2.
	* gdbtypes.y (builtin_type_chill_bool, builtin_type_chill_long,
	builtin_type_chill_ulong, builtin_type_chill_real):  Add.
	* i387-tdep.c (sys/dir.h):  Remove, appears to be unnecessary
	and is nonexistant in some SVR4 based systems.
	* language.c (DEFAULT_ALLOCSIZE):  Change from 3 => 4.
	* language.c (set_language_command):  Add chill.
	* language.c (binop_result_type, integral_type, character_type,
	boolean_type, structured_type, value_true, binop_type_check):
	Add language_chill cases.
	* language.h (_LANG_chill):  Define.
	* m2-exp.y (number_sign, modblock):  Make static, #ifdef out
	unused modblock.
	* m2-exp.y (ANDAND):  Rename to LOGICAL_AND.
	* source.c (source_info):  Fix minor nits, print "1 line" rather
	than "1 lines", and "language is <lang>".
	* symfile.c (deduce_language_from_filename):  Recognize the
	filename extensions ".chill", ".c186", and ".c286" for Chill.
	* valarith.c (value_binop):  Handle TYPE_CODE_BOOL as well
	as TYPE_CODE_INT and TYPE_CODE_FLOAT.
	* valprint.c (val_print):  Print TYPE_CODE_BOOL type values as
	"TRUE" or "FALSE".
	* valprint.c (typedef_print):  Add case for language_chill.
	* values.c (value_from_longest):  Handle TYPE_CODE_BOOL.
1992-11-15 17:28:02 +00:00
Stu Grossman
c1878f8788 * infcmd.c (step_over_calls): Improve comments.
* symtab.c (find_pc_psymtab):  Clean up a bit.
* (find_pc_symtab):  Fix comments, clean up code.
* (find_pc_line):  General cleanups, efficiency improvements.
Also, don't return garbage when some line info exists, but there
was no good match.
1992-11-14 04:33:21 +00:00
Mark Eichin
238f5383d0 put exec.o back; it deals with exec files, not fork/exec, and thus is still
relevant for remote targets.
1992-11-13 18:26:21 +00:00
Steve Chamberlain
1242152e13 z8k target 1992-11-13 17:42:24 +00:00
Mark Eichin
e633652f76 add i[34]86-*-go32, sparclite-*-* 1992-11-12 15:06:07 +00:00
Stu Grossman
b6113cc408 * Makefile.in: Remove dependancies for 29k-share/dfe/yank.o and
29k-share/dfe/mini2udi.o.
* config/a29k-udi.mt:  Remove yank.o and mini2udi.o.
* alldeps.mak, depend:  Update to deal with removal of
aforementioned files.
* remote-udi.c:  Major cleanups.  Clean up udi_open and drop
requirement for useless 'program' argument.  Clean up
udi_create_inferior, and udi_load to call common download()
routine.  Create download routine to load remote hosts directly
(with the help of BFD) so that we don't need yank.c and
mini2udi.c.
Fix udi_detach to call UDIDisconnect with
the right arguments.  Clean up udi_resume, don't assign tip_error
twice.  Clean up udi_wait, straighten out status codes.  Make
udi_kill really work.
1992-11-12 01:15:06 +00:00
John Gilmore
58108d01c2 Add how to declare the result of make_cleanup. 1992-11-10 07:57:43 +00:00
Steve Chamberlain
2e6edad13c * c-exp.y: separated host/target idea of integer type size,
removed redundant parse rules. (YYSTYPE): added typed_val, removed
	UINT and CHAR rules. (parse_number): work out the targetwise type
	of a number based upon it's size and qualifiers. (yylex): chars
	are now treated the same way as ints.

	* source.c (indentify_source_line): don't core dump if wanted
	line is larger than number of lines in source. (can happen when
	coff gets confused about #included source).
1992-11-06 18:37:20 +00:00
John Gilmore
59c84bd8d5 Fix problems noticed by Allan Steel, <allan@maths.su.oz.au>,
when debugging a program with 100 shared libraries.

* solib.c (solib_map_sections):  Always close the BFD we open.
Free all malloc'd storage we allocate, too, including error cases.
(struct so_list):  Remove unused so_bfd member.
(clear_solib):  Don't bother closing so_bfd.

* symfile.c (symfile_bfd_open):  Mark newly opened BFD as
cacheable.  `So many symbol files, so little file descriptors.'
1992-11-06 11:05:08 +00:00
John Gilmore
8a96d79b70 * m68k-stub.c: Remove ansidecl.h and the few uses of it.
Stubs should stand alone as much as possible.

* source.c (show_directories):  Avoid printf_filtered length prob
pointed out by Jonathan Stone.

* i960-pinsn.c (MEM_MAX, MEM_SIZ):  Set upper limit properly to
avoid accesses beyond end of table.  Fix by Lee W. Cooprider,
<Lee_Cooprider@vos.stratus.com>.
1992-11-06 09:21:13 +00:00
Fred Fish
402dca80e7 * {ser-bsd.c, ser-termios.c} (serial_close): Pass address of
struct, not struct itself.
	* serial.h (serial_restore):  Fix prototype, takes pointer not
	struct.
1992-11-06 01:35:57 +00:00
Stu Grossman
2352d20bd7 * Makefile.in (depend): Add nm.h to the list of things to fixup.
* depend:  Redo, to fixup nm.h problems with *-tab.c files.
1992-11-06 01:13:34 +00:00
Stu Grossman
4e084cde32 Add 29k-UDI stuff back in... 1992-11-06 00:20:50 +00:00
Stu Grossman
e7ae70e927 Re-install UDI comments. 1992-11-05 23:40:02 +00:00
Stu Grossman
6881fb6d20 Add 29k-UDI stuff back in... 1992-11-05 23:33:51 +00:00
John Gilmore
042bf84cf7 * i386-stub.c: Remove ansidecl.h and the few uses of it.
Stubs should stand alone as much as possible.
1992-11-05 08:40:38 +00:00
John Gilmore
61f55ca303 * README: Add remote-es1800.c and remote-st2000.c to table.
* go32-nat.c:  Remove, there is no native go32 support.
* go32-xdep.c:  Remove unused fork, fvork, wait, execlp, kill_inferior.
* infcmd.c (run_command):  Avoid long calls to printf_filtered.
Bug fix courtesy of Alexander Klaiber.
1992-11-05 08:26:15 +00:00
Stu Grossman
1549918a3f * inflow.c (pass_signal, set_sigint_trap, clear_sigint_trap): Add
new routines to deal with sending SIGINTs to attached processes
when the user interrupts the controlling GDB.
* inftarg.c (child_wait), procfs.c (procfs_wait):  Add calls to
the aforementioned routines when waiting for the attached process.
1992-11-05 03:54:01 +00:00
Stu Grossman
740b7efa43 * elfread.c, mipsread.c: Include <string.h>.
* i386-stub.c:  Include "ansidecl.h" to deal with prototypes.
* serial.h:  Add prototype for serial_restore().
1992-11-04 23:31:52 +00:00
Ian Lance Taylor
a521e93a8e Wed Nov 4 11:13:25 1992 Ian Lance Taylor (ian@cygnus.com)
* minsyms.c (lookup_minimal_symbol_by_pc): subtract 1, not 2, from
	minimal_symbol_count, because the NULL symbol is not included in
	the count.  This prevented this function from finding the last
	symbol in the table.
1992-11-04 19:45:42 +00:00
Ian Lance Taylor
b1fbbed48e Tue Nov 3 11:29:17 1992 Ian Lance Taylor (ian@cygnus.com)
* dbxread.c (process_one_symbol): if not defined
	(BLOCK_ADDRESS_FUNCTION_RELATIVE), set function_start_offset at
	the start of the function, not just after N_FUN.
1992-11-03 19:52:43 +00:00
Roland Pesch
b32ae57bb3 Avoid character '+' in nodenames, gives formatters indigestion. 1992-11-03 00:58:46 +00:00
Jim Wilson
cf57ff2af2 Changes to work with new config.sub file from merge with FSF. 1992-11-03 00:18:02 +00:00
Fred Fish
e35843d476 * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Add sed patterns to
remap all malloc's to xmalloc's and all realloc's to xrealloc's.
	* c-exp.y, m2-exp.y:  Add comment about how malloc/realloc are
	  remapped to xmalloc/xrealloc, use only malloc/realloc in grammer
	  file.  Remove preprocessor defines that previously did remapping.
1992-10-31 00:35:08 +00:00
K. Richard Pixley
b1de302a44 hp300 native support 1992-10-28 07:08:52 +00:00
K. Richard Pixley
7aae0974c2 vax native support 1992-10-28 05:31:14 +00:00
K. Richard Pixley
124a6fc037 add new nm files to HFILES 1992-10-28 03:05:29 +00:00
K. Richard Pixley
5c9bbfe62c apollo native support 1992-10-28 02:58:11 +00:00
K. Richard Pixley
851fffcf4e include nm.h in defs.h 1992-10-28 02:32:59 +00:00
John Gilmore
83bfcbaedb Fix typo, reported by Karl Berry. 1992-10-26 19:10:23 +00:00
Stu Grossman
bccaecc63b * Makefile.in (VERSION): 4.7.1 post release! 1992-10-23 13:17:47 +00:00
Stu Grossman
451df68019 * config/hppahpux.mh (NATDEPFILES): Add hppah-nat.o. 1992-10-23 11:50:37 +00:00
John Gilmore
a37d76c9b3 Update the dates in the manual. 1992-10-23 10:54:39 +00:00
John Gilmore
f312afc75c These two files are copyrighted by Sun Microsystems.
Wind River stole them from the Sun Unix distributions.

We can't distribute them in an FSF GDB release.
We should even rewrite them for our own releases, though that is not
as urgent.

Until these two files are rewritten, VxWorks support in GDB will not compile.
The i960 support can be gained by just rewriting the ptrace.h file.
Only small amounts of the reg.h file need to be rebuilt -- compile
remote-vx.c to see what is needed.

	John
1992-10-23 10:51:07 +00:00
John Gilmore
c00d8242d4 More news... 1992-10-23 10:38:16 +00:00
Stu Grossman
17eff8c1d5 Add copyrights, change to FSF. 1992-10-23 10:15:18 +00:00
Stu Grossman
6446b7a4b2 Remove refs to UDI for now. 1992-10-23 08:50:19 +00:00
Stu Grossman
5f5be54ce8 Update NEWS, remove refs to UDI and Energize/Cadillac from ChangeLog. 1992-10-23 08:49:17 +00:00
John Gilmore
c50c519792 * Makefile.in (VERSION): gdb-4.7 release.
* README:  Update for gdb-4.7.
1992-10-23 07:53:03 +00:00
John Gilmore
3214c51c62 Add opcodes dir to GDB distribution description. 1992-10-23 07:44:56 +00:00
Stu Grossman
ee22c7f05e * sparc-tdep.c: include nm.h (for now) so that we get USE_PROC_FS
when necessary.
1992-10-23 03:54:11 +00:00
Stu Grossman
70971ec689 Oops! 1992-10-22 19:32:06 +00:00
Stu Grossman
db5b1f90ef * alldeps.mak, depend: Update. 1992-10-22 18:25:32 +00:00
John Gilmore
d9beb4fde4 * config/rs6000.mh (NATDEPFILES): Add corelow.o. 1992-10-22 11:24:25 +00:00
John Gilmore
fef84cc41a * partial-stab.h ('f', 'F'): Don't reference pst->textlow if pst
is null.
* tm-sun4sol2.h (PROLOGUE_FIRSTLINE_OVERLAP):  Remove -- it
causes problems in setting breakpoint in the right place in
functions with `float' args which are passed as doubles.
* xm-vaxbsd.h (MEM_FNS_DECLARED):  Avoid erroneous redecl's.
* config/rs6000.mh (NATDEPFILES):  Add corelow.o.
1992-10-22 11:23:54 +00:00
Stu Grossman
76ba9b5be5 First cut at news for 4.7. Just an outline, and an indicator of where we
stopped in ChangeLog.
1992-10-22 08:12:16 +00:00
Stu Grossman
e536c99960 Add nm-i386sco.h. 1992-10-22 08:11:21 +00:00
Stu Grossman
603900c746 * Makefile.in (HFILES): Add nm-i386sco.h.
* dwarfread.c:  include <sys/types.h> for SCO.
* infptrace.c:  Don't include ptrace.h under SCO.
* config/i386sco.mh:  Use -D_POSIX_SOURCE instead of -posix for
gcc.
* config/i386v.mt:  Add exec.o to TDEPFILES.
1992-10-22 08:07:12 +00:00
Stu Grossman
3496b74562 * i386v-nat.c: Remove space from front of #endif.
* irix4-nat.c:  Remove externs of registers[], include inferior.h
	instead.
	* mips-nat.c:  Explicitly initialize zerobuf to 0!
	* mips-tdep.c (init_extra_frame_info):  Undo John's last change.
	Always setup fci->frame, even if it's non-zero.  Too many places
	depend upon this behavior (and I have to get a release out the
	door)!
	* mipsread.c (parse_partial_symbols, psymtab_to_symtab_1):  Set
	processing_gcc_compilation if we find the embedded stabs marker.
	This fixes several bugs with finding the location of short or char
	function parameters passed on the stack.
1992-10-22 02:26:04 +00:00
K. Richard Pixley
99ef5653ef sun4sol2 native stuff 1992-10-22 02:00:07 +00:00