Commit Graph

1876 Commits

Author SHA1 Message Date
K. Richard Pixley
e99163901e * xcoffread.c (process_xcoff_symbol, read_symbol_lineno): complain
expects a pointer to complaint rather than a complaint
	  structure.
1993-02-12 23:48:36 +00:00
Ian Lance Taylor
33742334a8 Checkpoint. Runs "hello, world", sets breakpoints, isn't too graceful
about program termination.

This file probably should not be part of gdb 4.8, although it wouldn't
do any actual harm.  Not yet added to .Sanitize.
1993-02-12 20:47:59 +00:00
Steve Chamberlain
256b4f378a * h8300-tdep.c, tm-h8300.h: turn off some experimental features 1993-02-12 16:07:36 +00:00
David D. Zuhn
8d0dca57e5 case fixes in node names 1993-02-12 04:48:34 +00:00
John Gilmore
6d0b80461b Fix thinko (NM_FILE => NAT_FILE). Found by Michael Ben-Gershon <mybg@CS.HUJI.AC.IL>. 1993-02-11 18:39:52 +00:00
John Gilmore
a387370de7 More debugging of rs/6000 file reading (on Suns, for easier debug).
* stabsread.c (dbx_lookup_type):  Handle negative type numbers.
Previously, would bogusly index off the bottom of type_vector.
(rs6000_builtin_type):  Accept type number as argument.
(read_type, case '-'):  Handle negatives like any other type number.

* symfile.c (deduce_language_from_filename):  Handle null name.
1993-02-11 11:16:35 +00:00
John Gilmore
015605c5ae * mips-tdep.c (isa_NAN): Fix byte order dependency.
Reported by Nobuyuki Hikichi <hikichi@sra.co.jp>,
fixed by sato@sm.sony.co.jp.
1993-02-11 09:52:25 +00:00
John Gilmore
e5eeaaf86c * xcoffread.c (parmsym): Don't use an initializer to set up
this struct symbol.  Set it up in initialize_xcoffread.
[This broke when Fred changed "struct symbol".]
	(read_xcoff_symtab, xcoff_symfile_read):  Surround code that only
	works on real rs/6000 target with #ifndef FAKING_RS6000.
1993-02-11 09:05:11 +00:00
John Gilmore
d3d6d0ffa2 Eliminate IBM6000_HOST, document IBM6000_TARGET. 1993-02-11 07:59:55 +00:00
John Gilmore
4434a92c5c * config/rs6000.mh (NATDEPFILES): xcoffread.o is native only. 1993-02-11 07:59:07 +00:00
John Gilmore
364c1151e7 Remove IBM6000_host 1993-02-11 07:58:42 +00:00
John Gilmore
dd46978997 * stabsread.c (rs6000_builtin_type): Move function from
xcoffread.c:builtin_type.
* xcoffread.c (builtin_type):  Move to stabsread.  Remove
IBM6000_HOST dependency.  Move misplaced comments.
(various):  Change printf's to complaints.
(patch_block_stabs, process_xcoff_symbol case C_DECL):  Add
objfile argument to read_type calls under #if 0.
(process_xcoff_symbol case C_RSYM):  Fix typo in #ifdef.
* xcoffexec.c (map_vmap):  Don't allocate an objfile for the exec_file.
* Makefile.in:  xcoffread.o is not built by default.
* config/rs6000.mh (NATDEPFILES): xcoffread.o is native only.
* doc/gdbint.texinfo:  Eliminate IBM6000_HOST, document
IBM6000_TARGET.
1993-02-11 07:57:35 +00:00
Stu Grossman
733a94e887 * findvar.c (read_var_value): If REG_STRUCT_HAS_ADDR, then set
VALUE_LVAL to be lval_memory so that we don't try to modify wild
	register numbers when user tries to modify elements in structs
	passed as arguments.
	* inflow.c (child_terminal_info):  Move banner outside of system
	specific #ifdefs.
	* tm-hppa.h (REG_STRUCT_HAS_ADDR):  Define this for HPPA, which
	passes struct/union arguments by address.
1993-02-11 02:38:19 +00:00
Ian Lance Taylor
18a85a791b Wed Feb 10 15:34:46 1993 Ian Lance Taylor (ian@cygnus.com)
* Based on patch from Martin Walker <maw@netcom.com>:
	* nm-i386sco4.h: New file.  Like nm-i386sco.h, but define
	ATTACH_DETACH, PTRACE_ATTACH and PTRACE_DETACH.
	* config/i386sco4.mh (NAT_FILE): Use nm-i386sco4.h.
1993-02-10 23:38:11 +00:00
John Gilmore
79533adf03 * remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com.

PR# gdb/2162
1993-02-10 04:09:05 +00:00
Roland Pesch
fe715d06b6 misc updates 1993-02-10 02:28:16 +00:00
Ian Lance Taylor
2368ffb6c3 Tue Feb 9 08:18:07 1993 Ian Lance Taylor (ian@cygnus.com)
* config/i386sco4.mh (MUNCH_DEFINE): Pass -p to nm to avoid bug in
	cc debugging output.
1993-02-09 16:22:35 +00:00
John Gilmore
2a021f21e9 * stabsread.c (define_symbol): Complain about unrecognized names
that begin with CPLUS_MARKER (often '$'), but don't die.  Fix
suggested by gb@cs.purdue.edu (Gerald Baumgartner).
(read_cpp_abbrev):  Don't use the class name as part of the
vtable pointer member name (_vptr$) in $vf abbrevs or unrecognized
abbrevs.  Inspired by Mike Tiemann.
(read_tilde_fields):  Comment.  Remove ancient dead code.
Remove erroneous but non-dead code.  Simplify.  Add complaints.
(in general):  Remove extraneous (parentheses) in return
statements.
1993-02-09 08:42:20 +00:00
John Gilmore
8845dd0aa2 Brief documentation for longjmp support, from an email msg by Stu. 1993-02-06 18:26:32 +00:00
John Gilmore
831c2e1d35 * stabs.texinfo: Fix description of floating point "range"
types (which really define basic types).  Reported by Jim Meehan,
<meehan@src.dec.com>.
1993-02-06 03:58:50 +00:00
John Gilmore
931bf12a09 * coffread.c (coff_lookup_type): Fix fencepost error reported
by Art Berggreen, <arg@opal.acc.com>.
1993-02-06 03:40:28 +00:00
John Gilmore
6e1c67d218 Remove COFF_NO_LONG_FILE_NAMES define, now gone. 1993-02-05 22:11:01 +00:00
John Gilmore
c653bc6d90 Fix long file name bug reported on SCO Open Desktop 2.0 by Ulf Lunde
<Ulf.Lunde@kvatro.no> and Dag H. Wanvik <Dag.H.Wanvik@kvatro.no>.

* coffread.c (getfilename):  Eliminate COFF_NO_LONG_FILE_NAMES
test, which is apparently left over from when we used native
include files and couldn't depend on the member names being there.
* tm-3b1.h, tm-altos.h, tm-i386v.h:  Don't set it.

ALso fix this in tm-i860.h which isn't ChangeLogged since it's sanitized out
for lack of paperwork.
1993-02-05 22:09:17 +00:00
Steve Chamberlain
e4ebb8e5e6 Some spit and polish 1993-02-05 18:07:09 +00:00
Ian Lance Taylor
8642d1388b Thu Feb 4 13:56:46 1993 Ian Lance Taylor (ian@cygnus.com)
* gdbint.texinfo: Slightly expand section on supporting a new
	object file format.
1993-02-04 21:58:05 +00:00
Ian Lance Taylor
5f7b214259 Reindented to GNU standard. No semantic changes. This checkin is to
give a base for the upcoming changes, to make clear what I actually
changed.
1993-02-04 19:37:37 +00:00
Steve Chamberlain
6d2f03fea5 Now builds in subdirs 1993-02-04 18:05:30 +00:00
Steve Chamberlain
f48c6d1a87 Path modification 1993-02-04 17:24:10 +00:00
John Gilmore
b076f02439 * Makefile.in (TARDIRS): Add sparclite demo dir.
(*.tab.c):  Change dependency on Makefile to depend on
Makefile.in, otherwise it always rebuilds after configuring.
Force output *.tab.c file into current directory even in "make"
versions that rewrite dependent file names used in command lines.

* TODO:  Remove some things we did.
* am29k-opcode.h, convx-opcode:  Remove; now in ../include/opcode.
* os68k-xdep.c:  Remove; useless file (os68k is a target only).
* convex-pinsn.c:  Use ../include/opcode/convex.h.  Add CONST.
* symtab.h:  Eliminate unnamed unions and structs.
1993-02-04 10:30:19 +00:00
John Gilmore
7a694ae8c5 * Makefile.in (refcard.ps, lrefcard.ps): Remove psref.tex
intermediate file.
1993-02-04 09:50:19 +00:00
John Gilmore
24b88ae801 Makeinfo now works again; remove kludge. 1993-02-04 06:00:41 +00:00
Steve Chamberlain
1f21d3dc1a Polishing z8k simulator support 1993-02-04 00:17:25 +00:00
John Gilmore
ad89bdfdac * Makefile.in (VERSION): Roll to 4.7.5.
(gdb.info):  Ignore error from makeinfo (FIXME), since makeinfo
isn't quite up to date to handle gdb.texi.
1993-02-03 22:49:32 +00:00
John Gilmore
0f03541a57 Remove "Done in" pwd line. 1993-02-03 08:52:34 +00:00
John Gilmore
591f5cb710 Remove "Done in" printout 1993-02-03 08:49:32 +00:00
John Gilmore
ca5a72cd13 * breakpoint.c (breakpoint_re_set_one): Handle watchpoints when
re-evaluating symbol pointers.

Add attribution to a few older ChangeLog entries.
1993-02-03 04:49:05 +00:00
Fred Fish
9da75ad32e * c-exp.y (lcurly, rcurly): New nonterminals.
* c-exp.y (exp):  Use lcurly and rcurly for arrays and UNOP_MEMVAL
	constructs.
	* parse.c (free_funcalls):  Moved prototype from parser-defs.h,
	made function static.
	* parse.c (struct funcall):  Moved struct def from parser-defs.h.
	* parse.c (funcall_chain):  Moved from parser-defs.h, made static.
	* parse.c (start_arglist):
	* parser-defs.h (free_funcalls):  Moved prototype to parse.c.
	* parser-defs.h (struct funcall):  Moved struct def to parse.c.
	* parser-defs.h (funcall_chain):  Moved to parse.c.
	* printcmd.c (print_frame_nameless_args): Fix prototype.
	* tm-mips.h (setup_arbitrary_frame):  Fix prototype.
	* tm-sparc.h (setup_arbitrary_frame):  Fix prototype.
	* valops.c (typecmp):  Moved prototype from values.h.
	* value.h (typecmp):  Moved prototype to valops.c, made static.
	**** start-sanitize-chill ****
	* ch-exp.y (yylex):  Change way control sequences are disabled.
	**** end-sanitize-chill ****
1993-02-03 00:28:54 +00:00
John Gilmore
58bcc08c60 * tm-mips.h, tm-sparc.h: Fix thinko in SETUP_ARBITRARY_FRAME.
* remote-nindy.c:  Cleanup.
1993-02-03 00:13:10 +00:00
Ian Lance Taylor
fee754c921 Tue Feb 2 15:30:33 1993 Ian Lance Taylor (ian@cygnus.com)
* mipsread.c (upgrade_type): Build array types correctly, using
	create_range_type and create_array_type.
1993-02-02 23:32:18 +00:00
Roland Pesch
93928b60e5 Stylistic Cleanups to Headings and Cross References to Avoid Undue
Numbers of Capital Letters (Save in Chapter Headings), Despite the
Germanic Heritage of the English Language.
1993-02-02 22:59:46 +00:00
Roland Pesch
9aa964da87 More minor stylistic cleanup: avoid plurals on things that aren't English. 1993-02-02 21:44:11 +00:00
Roland Pesch
93918348e5 Minor stylistic cleanup; eliminated more contractions, eliminated
possessives on things (like name of GDB) that are not English, and
incidentals spotted while pursuing these.
1993-02-02 21:38:40 +00:00
Roland Pesch
eb7faec1c3 * gdb.texinfo: fix capitalization in pointers to node "Output Formats" 1993-02-02 20:20:15 +00:00
John Gilmore
1b6a208786 * infrun.c (wait_for_inferior): When rolling back the PC after
a breakpoint, call write_pc so that NPC gets rolled back as well
(for the 29K).
1993-02-02 08:43:40 +00:00
John Gilmore
d122f25767 * blockframe.c (inside_entry_file, inside_main_func,
inside_entry_func):  PC of zero is always "bottom of stack".

* printcmd.c (print_frame_args, print_frame_nameless_args):
Let print_frame_nameless_args decide whether there are any,
laying groundwork for possibly later printing 29K args for
functions where we have tag words but no symbols.
1993-02-02 08:38:00 +00:00
John Gilmore
7dc15bb750 * printcmd.c (print_frame_args, print_frame_nameless_args):
Let print_frame_nameless_args decide whether there are any,
laying groundwork for possibly later printing 29K args for
functions where we have tag words but no symbols.
1993-02-02 08:21:50 +00:00
Stu Grossman
2477c7c25f Remove Makefile.in-29k-UDI. It's no longer needed now that the 29K stuff has
been put back in to Makefile.in.
1993-02-02 04:52:30 +00:00
Roland Pesch
2b21d8aac9 Fixes for doc targets. 1993-02-02 02:14:39 +00:00
John Gilmore
07c2fa3e53 * stack.c (parse_frame_specification): Parse as many arguments
as there are (up to MAXARGS).  Pass all of them in argc, argv
format to SETUP_ARBITRARY_FRAME.  Put the burden of checking how
many there were, onto SETUP_ARBITRARY_FRAME.
* tm-mips.h, tm-sparc.h:  Corresponding changes.
* mips-tdep.c, sparc-tdep.c:  Ditto.
1993-02-02 02:08:19 +00:00
John Gilmore
6edd74aef3 * hp300ux-nat.c: Update copyrights.
* mipsread.c (parse_partial_symbols):  Complain about block
indexes that go backwards.  Fix from Peter Schauer.
* symfile.c (syms_from_objfile, symbol_file_add):  Allow a
symbol-file that has no linkage symbols to be read.
* tm-rs6000.h, xm-rs6000.h: (SIGWINCH_HANDLER and friends):  Move
from tm- file to xm-file, since they're host dependent.
* valarith.c (value_binop):  Typo.
1993-02-02 01:53:17 +00:00
John Gilmore
118a1e4d1e Lint 1993-02-02 01:20:41 +00:00
Stu Grossman
797bc12b32 * sparclite/aload.c: Add copyleft.
* sparclite/crt0.s:  Add comment at beginning.
1993-02-02 00:19:26 +00:00
Stu Grossman
e255e422d6 Remove soc2udip.c udi2mtip.c. These files no longer exist. 1993-02-02 00:03:14 +00:00
Stu Grossman
ba59e8c74b Add README. 1993-02-02 00:02:18 +00:00
Roland Pesch
e55d2728b7 * gdbinv-s.texi: z8000 simulator target name is just "sim" 1993-02-01 23:49:11 +00:00
Roland Pesch
f1e215bbcb Mon Feb 1 15:35:47 1993 Roland H. Pesch (pesch@fowanton.cygnus.com)
* gdbinv-s.texi:  Mention that Z8000 simulator can simulate Z8001
	as well as Z8002.
1993-02-01 23:39:42 +00:00
Steve Chamberlain
4d18e78392 Don't delete z8ksim.mt 1993-02-01 23:00:46 +00:00
Steve Chamberlain
2431d063fa *** empty log message *** 1993-02-01 23:00:11 +00:00
Steve Chamberlain
a332e59322 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002.
* parse.c (std_regs): Only declare if NO_STD_REGS is defined.
1993-02-01 22:53:24 +00:00
Michael Tiemann
7cb0f87089 * values.c (value_headof): Fix typo in which VTBL and ARG were
being confused for one another.
1993-02-01 01:16:35 +00:00
Michael Tiemann
a163ddeca1 * valops.c (typecmp): Now static. 1993-02-01 01:12:37 +00:00
Michael Tiemann
edf67bd181 * gdbtypes.c (fill_in_vptr_fieldno): Don't ignore the first
baseclass--we don't always inherit its virtual function table
	pointer.
1993-02-01 01:11:17 +00:00
Michael Tiemann
271e50309b * eval.c (evaluate_subexp): In OP_FUNCALL case, adjust `this'
pointer correctly in case value_struct_elt moves it around.
1993-02-01 01:07:51 +00:00
Michael Tiemann
61c1724bfa Fix whitespace. 1993-01-31 13:15:12 +00:00
Michael Tiemann
d112a0c664 Sun Jan 31 04:32:48 1993 Michael Tiemann (tiemann@rtl.cygnus.com)
* gdbtypes.c (lookup_struct_elt_type): Pass NOERR instead of
	zero on recursive call.
1993-01-31 12:39:22 +00:00
John Gilmore
ec68a93f89 * hppah-nat.c: Eliminate <sys/user.h> and other unnecessary stuff,
to avoid "too much defining" error from native C compiler (!).
1993-01-31 06:43:36 +00:00
John Gilmore
3d9b9577e0 * Makefile.in (HFILES): Add typeprint.h.
* typeprint.[ch]:  Update copyrights.
1993-01-31 03:56:56 +00:00
John Gilmore
145887f06a Initial attempt to clean up to match new directory layout. 1993-01-31 01:34:07 +00:00
John Gilmore
259d1deac6 * Makefile.in: Update to match doc/ subdir changes. 1993-01-31 01:31:45 +00:00
John Gilmore
893e119127 A few files have been removed... 1993-01-31 00:57:04 +00:00
John Gilmore
c3012f8567 reg.h, xdr_regs.c, xdr_regs.h are gone now. 1993-01-29 07:38:05 +00:00
John Gilmore
00db1549f5 * doc/gdbint.texinfo (Host Conditionals): Remove
NAMES_HAVE_UNDERSCORE, SOME_NAMES_HAVE_DOT, document
MEM_FNS_DECLARED.
(Target Conditionals):  Remove all of the above.
1993-01-29 06:19:13 +00:00
John Gilmore
bdec39b376 Update for doc/ changes. 1993-01-29 06:17:28 +00:00
John Gilmore
92063c3e60 * config/hp300hpux.mh: No cross-host file needed, just native. 1993-01-29 05:53:31 +00:00
John Gilmore
71e60679bd Remove nonexistent GO32 "native" support. 1993-01-29 05:49:03 +00:00
John Gilmore
2a770cac0f M88K fixes reported by Carl Greco, <cgreco@Creighton.Edu>:
* tm-m88k.h (REGISTER_CONVERT_TO_RAW):  Fix typo.
* m88k-tdep.c (next_insn):  Lint, cleanup.
(store_parm_word):  Lint.
1993-01-29 05:28:45 +00:00
John Gilmore
926d780054 Typo 1993-01-29 03:11:55 +00:00
Fred Fish
2fcc38b81f * expression.h (BINOP_CONCAT): Document use for self concatenation
an integral number of times.
	* language.c (binop_type_check):  Extend BINOP_CONCAT for self
	concatenation case.
	* valarith.c (value_concat):  Rewrite to support self
	concatenation an integral number of times.
	**** start-sanitize-chill ****
	* Makefile.in (ch-exp.tab.c):  Change "expect" message.
	* ch-exp.y (FIXME's):  Make all FIXME tokens distinct, to
	eliminate hundreds of spurious shift/reduce and reduce/reduce
	conflicts that mask the 5 real ones.
	* ch-exp.y (STRING, CONSTANT, SC):  Remove unused tokens.
	* ch-exp.y (integer_literal_expression):  Remove production,
	no longer used.
	**** end-sanitize-chill ****
1993-01-28 05:47:42 +00:00
Roland Pesch
ed447b952e Fixes from (or inspired by) Bob Chassell editing pass for last
FSF printing of this manual.
1993-01-27 02:10:10 +00:00
Roland Pesch
18fae2a8db These changes abolish M4 preprocessing for the GDB manual.
Formatting these files now depends on the recently designed
Texinfo conditionals:  to format successfully, you must use very
recent versions (not yet distributed by FSF) of texinfo.tex and makeinfo.c.

The new Texinfo commands are @set, @clear, @ifset, @ifclear, and @value.
Recent texinfo-2 Beta distributions contained partial implementations.

texi2roff does not yet support these commands.

There are miscellaneous clean-ups to Makefile.in as well.
1993-01-23 00:30:28 +00:00
Fred Fish
fcbadaee94 * eval.c (evaluate_subexp): Fix OP_ARRAY, remove code that
implied that "no side effects" was nonfunctional.
	* eval.c (evaluate_subexp):  Add BINOP_CONCAT case to deal with
	character string and bitstring concatenation.
	* expprint.c (dump_expression):  Add case for BINOP_CONCAT.
	* expression.h (exp_opcode):  Add BINOP_CONCAT.
	* gdbtypes.h (type_code):  Add TYPE_CODE_BITSTRING.
	* language.c (string_type):  Add function to determine if a type
	is a string type.
	* language.c (binop_type_check):  Add case for BINOP_CONCAT.
	* valarith.c (value_concat):  New function to concatenate two
	values, such as character strings or bitstrings.
	* valops.c (value_string):  Remove error stub and implement
	function body.
	* value.h (value_concat):  Add prototype.
	**** start-sanitize-chill ****
	* ch-exp.y (operand_3):  Add actions for SLASH_SLASH (//).
	* ch-exp.y (yylex):  Recognize SLASH_SLASH.
	* ch-lang.c (chill_op_print_tab):  Add SLASH_SLASH (//) as
	BINOP_CONCAT.
	**** end-sanitize-chill ****
1993-01-21 18:13:55 +00:00
Fred Fish
ec16f7015b * c-exp.y (exp): Add production to support direct creation
of array constants using the obvious syntax.
	* c-valprint.c (c_val_print):  Set printed string length.
	* dwarfread.c (read_tag_string_type):  New prototype and
	function that handles TAG_string_type DIEs.
	* dwarfread.c (process_dies):  Add case for TAG_string_type
	that calls new read_tag_string_type function.
	* expprint.c (print_subexp):  Add support for OP_ARRAY.
	* gdbtypes.c (create_range_type, create_array_type):  Inherit
	objfile from the index type.
	**** start-sanitize-chill ****
	* ch-typeprint.c (chill_print_type):  Add case for
	TYPE_CODE_STRING.
	* ch-valprint.c (chill_val_print):  Fix case for
	TYPE_CODE_STRING.
	**** end-sanitize-chill ****
1993-01-19 23:00:19 +00:00
Stu Grossman
a96c344463 .Sanitize: Add 29k-share and sparclite. 1993-01-18 22:47:55 +00:00
Ian Lance Taylor
201c1243fe Mon Jan 18 11:58:45 1993 Ian Lance Taylor (ian@cygnus.com)
* mipsread.c (CODE_MASK, MIPS_IS_STAB, MIPS_MARK_STAB,
	MIPS_UNMARK_STAB, STABS_SYMBOLS): Removed; now in
	include/coff/mips.h.
1993-01-18 20:24:48 +00:00
Steve Chamberlain
62b66d6df1 checkpoint 1993-01-18 20:24:47 +00:00
Fred Fish
c4413e2c9b * c-exp.y (exp:STRING): Convert C strings into array-of-char
constants with an explicit null byte terminator.  OP_STRING is
	now used for real string types.
	* c-lang.c (builtin_type_*):  Move declarations to lang.c since
	they are used by all languages.
	* c-lang.c (_initialize_c_language):  Move initializations of
	builtin_type_* to lang.c.
	* c-typeprint.c (c_type_print_varspec_prefix,
	c_type_print_varspec_suffix):  TYPE_CODE_PASCAL_ARRAY renamed
	to TYPE_CODE_STRING.
	* c-valprint.c (c_val_print):  Change the way character arrays
	are printed as strings to be consistent with the way strings
	are printed when pointer-to-char types are dereferenced.
	Remove test of print_max before calling val_print_string, which
	now does it's own test.
	* eval.c (evaluate_subexp):  Add case for OP_ARRAY.
	* expprint.c (print_subexp, dump_expression):  Add case for OP_ARRAY.
	* expression.h (enum exp_opcode):  Add OP_ARRAY and document.
	* gdbtypes.c (builtin_type_*):  Add declarations moved from
	c-lang.c.
	* gdbtypes.c (create_string_type):  New function to create real
	string types.
	* gdbtypes.c (recursive_dump_type):  TYPE_CODE_PASCAL_ARRAY
	renamed to TYPE_CODE_STRING.
	* gdbtypes.c (_initialize_gdbtypes):  Add initializations of
	builtin_type_* types moved from c-lang.c.
	* gdbtypes.h (enum type_code):  TYPE_CODE_PASCAL_ARRAY renamed
	to TYPE_CODE_STRING.
	* gdbtypes.h (builtin_type_string):  Add extern declaration.
	* gdbtypes.h (create_string_type):  Add prototype.
	* m2-lang.c (m2_create_fundamental_type):  TYPE_CODE_PASCAL_ARRAY
	renamed to TYPE_CODE_STRING.
	* m88k-tdep.c (pushed_size):  TYPE_CODE_PASCAL_ARRAY renamed to
	TYPE_CODE_STRING.
	* mipsread.c (_initialize_mipsread):  TYPE_CODE_PASCAL_ARRAY
	renamed to TYPE_CODE_STRING.
	* parse.c (length_of_subexp, prefixify_subexp):  Add case for
	OP_ARRAY.
	* printcmd.c (print_formatted):  Recognize TYPE_CODE_STRING.
	* typeprint.c (print_type_scalar):  TYPE_CODE_PASCAL_ARRAY renamed
	to TYPE_CODE_STRING.
	* valops.c (allocate_space_in_inferior):  New function and
	prototype, using code ripped out of value_string.
	* valops.c (value_string):  Rewritten to use new function
	allocate_space_in_inferior, but temporarily disabled until some
	other support is in place.
	* valops.c (value_array):  New function to create array constants.
	* valprint.c (val_print_string):  Add comment to document use,
	complete rewrite to fix several small buglets.
	* value.h (value_array):  Add prototype.
	* value.h (val_print_string):  Change prototype to match rewrite.
	**** start-sanitize-chill ****
	* ch-valprint.c (chill_val_print):  Add case for TYPE_CODE_STRING.
	* ch-exp.y (match_character_literal):  Disable recognition of
	control sequence form of character literals and document why.
	**** end-sanitize-chill ****
1993-01-16 05:15:58 +00:00
Steve Chamberlain
2aedd91ee1 * remote-z8k.c, z8k-tdep.c: support for the Z8001 and Z8002. 1993-01-15 20:07:26 +00:00
Stu Grossman
92de157bde Add a29k-udi.mt. 1993-01-15 00:09:20 +00:00
Stu Grossman
e4dd52dd1a Add paread.c. 1993-01-15 00:08:23 +00:00
Stu Grossman
6d1e8f5444 Oops! Forgot to do this one... 1993-01-15 00:08:02 +00:00
Stu Grossman
fa9265e55d * hppa-pinsn.c (print_insn): Use read_memory_integer, instead of
read_memory to get byte order right.
	* hppah-tdep.c (find_unwind_info):  Don't read in unwind info
	anymore.  This is done in paread.c now.  We expect unwind info
	to hang off of objfiles, and search all of the objfiles when until
	we find a match.
	* (skip_trampoline_code):  Cast arg to target_read_memory.
	* objfiles.h (struct objfile):  Add new field obj_private to hold
	per object file private data (unwind info in this case).
	* paread.c (read_unwind_info):  New routine to read unwind info
	for the objfile.  This data is hung off of obj_private.
	* tm-hppa.h:  Define struct obj_unwind_info, to hold pointers to
	the unwind info for this objfile.  Also define OBJ_UNWIND_INFO to
	make this easier to access.
1993-01-15 00:06:50 +00:00
David D. Zuhn
d41187efbc use the SYMBOL_VALUE macro -- from Stu 1993-01-14 09:13:41 +00:00
Fred Fish
c7da3ed3cd * c-valprint.c (cp_print_class_member): Add extern decl.
* c-valprint.c (c_val_print):  Extract code for printing methods
	and move it to cp_print_class_method in cp-valprint.c.
	* c-valprint.c (c_val_print):  Extract code to print strings and
	move it to val_print_string in valprint.c.
	* cp-valprint.c (cp_print_class_method):  New function using
	code extracted from c_val_print.
	* valprint.c (val_print_string):  New function using code
	extracted from c_val_print.
	* value.h (val_print_string):  Add prototype.
	**** start-sanitize-chill ****
	* ch-exp.y (CHARACTER_STRING_LITERAL):  Set correct token type.
	* ch-exp.y (literal):  Add action for CHARACTER_STRING_LITERAL.
	* ch-exp.y (tempbuf, tempbufsize, tempbufindex, GROWBY_MIN_SIZE,
	CHECKBUF, growbuf_by_size):  New variables, macros, and support
	functions for implementing a dynamically expandable temp buffer.
	* ch-exp.y (match_string_literal):  New lexer function.
	* ch-exp.y (match_bitstring_literal):  Dynamic buffer code
	removed and replaced with new CHECKBUF macro.
	* ch-exp.y (yylex):  Call match_string_literal when appropriate.
	* ch-valprint.c (ch_val_print):  Add code for TYPE_CODE_PTR.
	**** end-sanitize-chill ****
1993-01-14 05:10:12 +00:00
Stu Grossman
78205fb620 * Makefile.in: Add info for paread.o.
* config/hppahpux.mh:  Add paread.o to NATDEPFILES.
1993-01-10 05:38:55 +00:00
Stu Grossman
0213d96f60 * blockframe.c (frameless_look_for_prologue): Correct the
comment.
	* gdbtypes.h, gdbtypes.c:  Use const in decl of
	cplus_struct_default, now that pa-gas assembler has been fixed.
	* hppah-nat.c:  Formatting.
	* hppah-tdep.c:  Remove lots of useless externs for variables we
	don't use.
	* (find_unwind_entry):  Speed up by using binary search, and a one
	entry cache.
	* (rp_saved):  New routine to see what unwind info says about RP
	being saved on the stack frame.
	* (frame_saved_pc):  Look for prologue to see if we need to
	examine the stack for the saved RP or not.
	* (init_extra_frame_info):  Check for prologue, instead of
	framesize to determine if we are frameless or not.
	* (frame_chain_valid):  Stop backtraces when we run into _start.
	* (push_dummy_frame):  Reformat to make more readable.
	* (find_dummy_frame_regs):  ditto.
	* (hp_pop_frame):  ditto.
	* (hp_restore_pc_queue):  small cleanup.
	* (hp_push_arguments):  ditto.
	* (pa_do_registers_info):  ditto.
	* (skip_prologue):  New routine created from SKIP_PROLOGUE macro.
	* tm-hppa.h:  Move contents of SKIP_PROLOGUE into hppah-tdep.c.
	* Define FRAME_CHAIN_VALID.
	* Turn on BELIEVE_PCC_PROMOTION so that we can access char args
	passed to functions.

	* paread.c (pa_symtab_read):  Use new bfd conventions for
	accessing linker symbol table.
	* (pa_symfile_init):  Access embedded STAB info via BFD section
	mechanism and related macros.
1993-01-10 04:23:06 +00:00
Stu Grossman
bfc55a5d7c * sparc-stub.c: Use a seperate stack for our traps.
* Handle recursive traps.
	* Remove all trap init code.  This needs to be done by the
	environment.
	* (set_mem_fault_trap):  Call exceptionHandler() to setup this
	trap.
	* (handle_exception):  See if we are at breakinst, if so, then
	advance PC sp that users can just step out of breakpoint().
	* (case 'G'):  Don't let GDB hack CWP.  Also, copy saved regs to
	new place if SP has changed.
	* (case 's'):  Get rid of this, we can't do it yet.
	* (case 't'):  New command to test any old random feature.
	* (case 'r'):  New command to reset the system.
	* (breakpoint):  Add label to breakpoint trap instruction so that
	handle_exception() can detect where we are and get past the
	breakpoint trivially.
1993-01-10 03:46:55 +00:00
David D. Zuhn
a05e2e57ab recognise all sparclite variants 1993-01-08 00:02:07 +00:00
Ian Lance Taylor
f92743aea5 Second try.
* mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
1993-01-07 21:39:37 +00:00
Ian Lance Taylor
b4a4ff7d51 Thu Jan 7 13:33:06 1993 Ian Lance Taylor (ian@cygnus.com)
* mips-pinsn.c: Actual work now done by opcodes/mips-dis.c.
1993-01-07 21:38:05 +00:00
Steve Chamberlain
a944e79a99 * symfile.c: If O_BINARY isn't defined, set it to 0, call openp for
binary files oring in the right bit.

	* main.c, source.c, state.c, symmisc.c: use macros defined in
	fopen-{bin|both} when fopening files.

	* remote-hms.c, remote-sim.c: lint
1993-01-06 18:22:01 +00:00