Commit graph

262 commits

Author SHA1 Message Date
John Gilmore
69f29a86f0 * sparc-xdep.c (deferred_stores): Repair minor damage by Rich.
Move deferred_stores to top of file, but don't separate its
        #define's from its variable.  Add commentary.
1991-05-19 12:49:37 +00:00
K. Richard Pixley
d39a9543a6 Config polish. 1991-05-19 08:44:48 +00:00
K. Richard Pixley
beff312ea7 configure changes and -opcode.h movement. 1991-05-19 07:27:02 +00:00
K. Richard Pixley
912e0732be Configure for gdb. 1991-05-19 00:16:46 +00:00
Roland Pesch
2ec11e91b5 *** empty log message *** 1991-05-17 23:19:08 +00:00
Roland Pesch
42e0255e85 Added readline/inc-readline.texinfo and readline/inc-history.texinfo
to the list of dependencies for the target "gdb.dvi".
1991-05-17 23:17:56 +00:00
Roland Pesch
2e4fd3d631 *** empty log message *** 1991-05-17 22:53:05 +00:00
Roland Pesch
e9d6f412f0 *** empty log message *** 1991-05-17 21:43:25 +00:00
Roland Pesch
99a99fd253 * doc/gdb.texinfo: finished using all RMS comments, save those for
appendices on readline and cmd history (which are in other source
	files)
1991-05-17 21:43:01 +00:00
John Gilmore
216f330fc1 Bothner 1991-05-17 19:49:37 +00:00
Roland Pesch
8e34c36073 *** empty log message *** 1991-05-17 01:14:04 +00:00
Roland Pesch
04ec2f3010 * doc/gdb.texinfo: (1) Updated w/ref to RMS comments through
chapter 9; (2) documented 'break' command's menu mode for
	overloaded names, in response to hgs problem report C++ p-31
1991-05-17 01:10:52 +00:00
Roland Pesch
0f98282646 *** empty log message *** 1991-05-16 04:09:54 +00:00
Roland Pesch
bfda3f2ee9 Divert specialized startup
instructions to "Targets" chapter for generic manuals, while
	leaving them up front for manuals specific to specialized
	environments; apply fixes from RMS comments through chapter 4.
1991-05-16 04:09:30 +00:00
Roland Pesch
55a64af6ea *** empty log message *** 1991-05-16 02:20:20 +00:00
Roland Pesch
a3bb247ef0 (1) new Appendix, Renamed Commands;
(2) new leading subsection, Contributors to GDB
1991-05-16 02:16:27 +00:00
Roland Pesch
d84e045fc7 *** empty log message *** 1991-05-16 00:46:44 +00:00
Roland Pesch
9c3ad54799 * gdb.texinfo: (1) better introductory example; (2) more
consistent use of @code, @samp, @file, @kbd throughout; small
	cleanups to first three nodes.
1991-05-16 00:46:09 +00:00
Roland Pesch
8dc805ad84 *** empty log message *** 1991-05-15 18:11:10 +00:00
Roland Pesch
92d3036028 Wed May 15 11:02:48 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
* pretex.m4: modify explanatory text slightly (and redefine
	"regexp") to keep GNU m4 from complaining.  (It still crashes
	later, but one step at a time...)
1991-05-15 18:10:40 +00:00
John Gilmore
a37c68f7a2 readline update 1991-05-15 17:36:32 +00:00
John Gilmore
68cf97936e Fix duplicated entry in ChangeLog. 1991-05-15 17:30:02 +00:00
Roland Pesch
72f6386b5f * Makefile.dist: put gdb.dvi stuff (updated to use M4 preprocessor
stuff for config manual) here where it counts; updated
	to use new subdir structure (gdb/doc/).

	* Makefile: generated from above via
		    config.gdb none
	before checkin
1991-05-14 23:34:41 +00:00
Roland Pesch
9c416cbdb8 (1) removed "gdb.info*" files (just introduced) from CVS;
(2) instead,
	* gdbint.texinfo: added instructions on generating gdb.info* files
	locally for release.
1991-05-14 22:34:12 +00:00
Roland Pesch
2c85a5a97b * gdb.info*: added to distribution. These are ordinary info
files, formatted from gdb.texinfo (via gdb-all.texinfo, see
	Makefile)---but due to use of texinfo 2, can't count on makeinfo
	to generate these, so we distribute them already formatted.

	* gdb.texinfo: included full Info node and menu crud (as generated
	by C-u M-x texinfo-master-menu using the texinfo-2 elisp code).

	* Makefile: updated "gdb.dvi" target to use M4 preprocessor;
	put in comments-for-future gdb.info target (one day makeinfo will
	work again).
1991-05-14 22:07:52 +00:00
Roland Pesch
022cb4c5e1 *** empty log message *** 1991-05-14 22:01:19 +00:00
Roland Pesch
14719f8df6 *** empty log message *** 1991-05-14 20:55:08 +00:00
K. Richard Pixley
c422030318 see devo/configure 1.11 1991-05-14 14:14:40 +00:00
John Gilmore
852f8c2121 Update "make saber_gdb" a bit. 1991-05-13 23:44:37 +00:00
John Gilmore
e072c73824 * mipsread.c: Rather than keeping count of how many symtabs
and psymtabs we have, for sorting purposes, count them when
        we need to sort.  This fixes bug in rereading of symbol tables.
1991-05-13 21:59:43 +00:00
Roland Pesch
616da99975 *** empty log message *** 1991-05-10 22:46:08 +00:00
Roland Pesch
98088880f3 (1) Updated to reflect renamed commands;
(2) Reorganized, bringing more common commands forward, merging
    "print" and "x" into one section;
(3) New sections: "Essential Commands", "GDB Scripts";
(4) Material on convenience vars and value history added to "Expressions";
(5) Uses PostScript fonts by default, also includes (commented out) alternative
    Computer Modern font definitions that format similarly.
1991-05-07 19:38:33 +00:00
John Gilmore
5594d534a2 Saber C (lint) cleanups, and a few bug fixes. See ChangeLog. 1991-05-04 23:15:02 +00:00
John Gilmore
6281dfd59d Roll version to 3.95. 1991-05-04 18:10:57 +00:00
John Gilmore
77ac93922c See ChangeLog. 1991-05-04 05:07:07 +00:00
John Gilmore
591cd7a6f4 Jim Kingdon's port to m88k on his last day at Cygnus. 1991-05-04 04:41:34 +00:00
John Gilmore
74dcea7b24 Jim Kingdon's port of gdb to m88k on his last day. 1991-05-04 04:40:57 +00:00
Roland Pesch
1722479547 *** empty log message *** 1991-05-03 20:19:18 +00:00
John Gilmore
86bbb439c8 There should be a Makefile in the cvs main directory, configured
for "./config.gdb none", so that things like "make tags" and "make tar"
will work.
1991-05-03 19:57:13 +00:00
Jim Kingdon
8e7457b2aa *** empty log message *** 1991-05-03 06:06:53 +00:00
Jim Kingdon
7b54d319af * mtrace.c: Don't typedef things like size_t, just #define them. 1991-05-03 06:04:13 +00:00
Jim Kingdon
2cb3be2c94 * cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*. 1991-05-03 06:03:54 +00:00
Jim Kingdon
63a463b149 * signame.c: Cast const char* to char* when assigning to sys_siglist. 1991-05-03 06:02:52 +00:00
Jim Kingdon
8aa13b8777 Make it run on wingnut (88k, DGUX). Complete list of changes in the ChangeLog. 1991-05-03 06:02:03 +00:00
John Gilmore
8ffd75c8a9 Mips bringup and general cleanup
* cplus-dem.c:  Move CPLUS_MARKER define to after defs.h.
        * infptrace.c (PT_WRITE_D, PT_READ_D):  Use correct values.
        (This still doesn't seem to make MIPS bkpts work.)
        * mipsread.c:  Remove dup "Reading symbol data..." msg.
        (symbol_file_command, add_file_command):  Remove, obsol.
        * printcmd.c (ptype_command):  Say "an enum" rather than "a enum".
        Wrap output appropriately.
        * stack.c (locals_info, catch_info, args_info):  Check
        selected_frame rather than target_has_stack or coredumping.
        * valprint.c (type_print_varspec_suffix):  Wrap "ptype" output of
        enums appropriately.
1991-05-03 01:07:12 +00:00
Jim Kingdon
2bff8e38bc *** empty log message *** 1991-05-03 00:50:18 +00:00
Jim Kingdon
511a6d0ad6 *** empty log message *** 1991-05-02 06:46:25 +00:00
Jim Kingdon
65c9348236 *** empty log message *** 1991-05-02 04:38:14 +00:00
Jim Kingdon
8c8212900e * xm-sun386.h: Don't define SET_STACK_LIMIT_HUGE. 1991-05-02 04:37:28 +00:00
Jim Kingdon
2d0c090e48 * blockframe.c, breakpoint.c, core.c, command.c, findvar.c,
eval.c, expprint.c, infcmd.c, infrun.c, main.c, printcmd.c,
	remote.c, source.c, stack.c, dbxread.c, coffread.c, symfile.h,
	symfile.c, utils.c, valarith.c, values.c, valops.c, tm-68k.h,
	target.c, inftarg.c, ieee-float.c, environ.c, defs.h,
	command.h, inferior.h, gdbcore.h, symtab.h, expression.h,
	symtab.c, cplus-dem.c, value.h, expread.y, valprint.c,
	copying.awk, solib.c, inflow.c, symmisc.c
	: Lint.  Use read_memory not read_memory_integer on CORE_ADDR's.
	Use {value_as,unpack}_pointer (added to values.c)
	not {value_as,unpack}_long on CORE_ADDR's.
	Use longest_to_int (added to defs.h) instead of cast to int.
	Remove from_tty arg to mod_path.
	Put symfile_bfd in {coff,dbx}read.c not symfile.h.
	Use OP_NULL instead of 0 where dummy enum exp_opcode needed.
1991-05-02 04:36:15 +00:00
Jim Kingdon
e1ce8aa5ed The list of changes is too long to fit in the cvs log (since it truncates!).
Look at the ChangeLog for Apr 30 and May 1.
1991-05-02 04:28:42 +00:00
Jim Kingdon
04a0511c0a * signame.c: Include defs.h and param.h. 1991-05-02 04:17:41 +00:00
John Gilmore
639893384d Merge devo/bfd with GDB's bfd.
Get getopt and obstack from -liberty rather than compiling them here.
* coffread.c: turn a printf into a complain(), and try to deal more
gracefully with botched-looking lineno pointers.
* dbxread.c:  Use bfd_get_symcount rather than bfd_get_symcount_upper_bound.
Don't coredump on files with zero symbols in them (a BFD bug showed this one).
* environ.c:  Pass GNUTARGET into the parent (gdb) as well as the child.
1991-05-02 03:39:15 +00:00
Michael Tiemann
aec4cb918e Tue Apr 30 13:13:33 1991 Michael Tiemann (tiemann at cygint.cygnus.com)
* valprint.c (type_print_base): If the type being printed is a
	struct containing undefined types, print "<undefine type>"
	as the type instead of crashing.
	* values.c (value_headof): Get the vtable pointer taking
	TYPE_VPTR_BASETYPE into account.
	* symtab.c, symtab.h, dbxread.c: Fix various whitespace splotches.
1991-04-30 20:19:02 +00:00
Jim Kingdon
98c1b9e79b *** empty log message *** 1991-04-30 19:51:50 +00:00
Jim Kingdon
39d2bcca7d * sun3-xdep.c, tm-sun3.h, tm-68k.h: Change TARGET_SUN3 to
GDB_TARGET_IS_SUN3.
1991-04-30 19:50:49 +00:00
Jim Kingdon
a416228b53 * Makefile.dist: Add comment about tm-sun3os4.h: tm-sun3.h, etc. 1991-04-30 19:50:07 +00:00
Jim Kingdon
f0ca24b901 * sun386-xdep.c [!GDB_TARGET_IS_SUN386]: Just provide empty
functions which don't do anything.
1991-04-30 19:49:40 +00:00
Jim Kingdon
94ac73c174 * Move BROKEN_LARGE_ALLOCA from tm-sun386.h to xm-sun386.h. 1991-04-30 19:49:22 +00:00
Jim Kingdon
79043f9ee8 * infrun.c: Don't include sys/user.h and friends (wrong for
cross-debugging and not necessary anymore (see IN_SIGTRAMP in
	xm-vax.h)).
	[SET_STACK_LIMIT_HUGE]: Include <sys/{resource,time}.h>.
	xm-tahoe.h: Don't define _DIRENT_.

	* xm-tahoe.h: Remove USE_OLD_TTY (not needed now that terminal.h
	includes sgtty.h before sys/ioctl.h).
1991-04-29 20:54:42 +00:00
Jim Kingdon
192040b131 {x,t}m-tahoe.h, tahoe-pinsn.c, tahoe-opcode.h: New files. 1991-04-29 05:28:47 +00:00
Jim Kingdon
cb173f45df Initial revision 1991-04-29 05:28:45 +00:00
Jim Kingdon
122ad9abf2 * param-no-tm.h: Make BITS_BIG_ENDIAN defined to 0/1, not defined
or not defined.  Don't define it based on TARGET_BYTE_ORDER if
	it's already defined (in the tm.h file).
	mips-opcode.h (BIT_FIELDS_*),
	values.c (modify_field, unpack_field_as_long):
	Use #if BITS_BIG_ENDIAN not #ifdef BITS_BIG_ENDIAN.
1991-04-29 05:27:04 +00:00
Jim Kingdon
5d98a45f63 * tm-sparc.h: Add comments about gcc version 2 and structure passing. 1991-04-26 23:09:53 +00:00
Jim Kingdon
689f801a79 *** empty log message *** 1991-04-26 23:09:52 +00:00
Jim Kingdon
b011df5246 * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type.
Return void not int. (also declarations in symfile.h and value.h).
1991-04-26 23:07:03 +00:00
Jim Kingdon
d166df9b4e defs.h (TARGET_LONG_LONG_BIT): New macro. 1991-04-26 23:05:38 +00:00
Jim Kingdon
ea9cdf62c6 * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_long
regardless of LONG_LONG.
	symtab.c, symtab.h (allocate_stub_method): New function.
1991-04-26 23:05:17 +00:00
Jim Kingdon
b99f250bf9 * values.c, value.h: New functions value_{headof,from_vtable_info}.
* value.h: Remove redundant declaration of value_static_field.
1991-04-26 23:04:32 +00:00
Jim Kingdon
71b16efa43 * values.c (check_stub_method): Do lookup_method_type and stuff
rather than smash_to_method_type.
	* values.c (check_stub_method): Deal with operator names.
	* values.c: Move declaration of cplus_demangle to top of file.
	* values.c (baseclass_addr): If can't read memory, set *ERRP
	rather than calling error().
	* values.c (value_static_field): Recursively check all baseclasses.
	Return NULL if not found.
	* values.c, value.h: New functions value_{headof,from_vtable_info}.
	values.c (value_virtual_fn_field):
	Don't bother to do anything with
	return value from fill_in_vptr_fieldno.CVS: Modified Files:
1991-04-26 23:04:10 +00:00
Jim Kingdon
0dce377401 * valprint.c (val_print): Print out first element of vtbl
specially.
	* valprint.c: Move print controls to top and add objectprint.
	Add command "set print object on/off".
	* valprint.c (value_print, is_vtbl_member): Put things in local
	variables rather than continually doing VALUE_TYPE (val), etc.
1991-04-26 23:02:38 +00:00
Jim Kingdon
d3bab255c7 * valops.c (typecmp): If t2 == 0, return 1.
* valops.c (value_struct_elt_for_address): Call check_stub_method.
	* valops.c (value_struct_elt): Remove found, arg1_as_ptr.
	* valops.c (search_struct_method): Give error if j > 0 && args == 0.
	* valops.c (search_struct_field): New argument looking_for_baseclass.
	Give error if value_static_field or value_primitive_field
	return NULL.
	valops.c (various): Call search_struct_field with extra parameter.
1991-04-26 23:02:15 +00:00
Jim Kingdon
d96b54ea7a * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_long
regardless of LONG_LONG.
	symtab.c, symtab.h (allocate_stub_method): New function.
	* symtab.c (decode_line_1): Deal with operators specified as
	"operator" <optional whitespace> <symbols for operator>.
	(operator_chars): Help do it.
	* symtab.c (lookup_struct_elt_type): Call check_stub_type.
	Take additional argument noerr.
	Don't dump core if TYPE_FIELD_NAME is NULL.
	Check the baseclasses recursively.
1991-04-26 23:01:36 +00:00
Jim Kingdon
7cc4387940 * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type.
Return void not int. (also declarations in symfile.h and value.h).
	Deal with multiple inheritance.
1991-04-26 23:00:55 +00:00
Jim Kingdon
3577f9b469 * printcmd.c (x_command): Dereference references.
* printcmd.c (print_command_1): Add if (objectprint) code.
1991-04-26 23:00:32 +00:00
Jim Kingdon
5f00ca54af * eval.c (evaluate_subexp, case UNOP_LOGNOT): If following opcode
is OP_SCOPE, give an error.
	* eval.c (evaluate_subexp): Pass third arg to lookup_struct_elt_type.
	* eval.c (evaluate_subexp), values.c (value_virtual_fn_field):
	Don't bother to do anything with
	return value from fill_in_vptr_fieldno.
	* eval.c (evaluate_subexp): If value_static_field returns NULL,
	give an error.
1991-04-26 22:59:54 +00:00
Jim Kingdon
62c4f98b2b dbxread.c (read_type): If we get "##", don't lookup_function_type
and start clobbering it; allocate_stub_method instead.
	* dbxread.c (read_struct_type): Put "op$" instead of "operator"
	in the symbol table.
	* dbxread.c (read_struct_type): Set fcontext to 0 for normal member
	function.
	* dbxread.c (read_struct_type): Initialize name to 0.
	* dbxread.c (read_ofile_symtab, N_CATCH): Add offset to bufp->n_value.
	* dbxread.c (dbx_create_type): Zero TYPE_VPTR_BASETYPE.
	(read_struct_type): Don't bother to set TYPE_VTPR_{BASETYPE,FIELDNO}
	if it's just going to be {0,1}.

	* dbxread.c (virtual_context): Use TYPE_BASECLASS starting at 0
	(yes, it's #if 0, but just in case...).
1991-04-26 22:59:00 +00:00
Jim Kingdon
55838914fd * cplus-dem.c (optable): Add "nw", "dl", "compound".
(cplus_mangle_opname): New function.
	(do_type): Add case 'Q'.
	* vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
	things "const".
1991-04-26 22:58:14 +00:00
Jim Kingdon
5cced18459 * expread.y (abs_decl): Accept '&' and '&' abs_decl.
expread.y (typebase): Add {unsigned,} long long {,int}.
	* expread.y (variable): Allow for destructor with foo::~name.
	* vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
	things "const".
1991-04-26 22:57:44 +00:00
Jim Kingdon
81919cc85b * vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
things "const".
1991-04-26 22:57:07 +00:00
Jim Kingdon
2d3b429559 gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.
* gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.
1991-04-26 22:56:08 +00:00
Jim Kingdon
1dcabdbc6a * xconfig/i386v{,32}{,-g}: Add XM_CFLAGS=-Dgetpagesize()=4096.
gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.
1991-04-26 22:55:42 +00:00
Jim Kingdon
a36f604047 This is the last one I gave to Telebit, minus all the print_msg's. 1991-04-24 19:33:31 +00:00
Jim Kingdon
a1002e9ab0 * WHATS.NEW: Remove mention of readline and more paging (in 3.5).
Try to keep command names up to date with renaming.
1991-04-24 19:30:10 +00:00
Jim Kingdon
be11d1119a * gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize. 1991-04-24 19:18:42 +00:00
Jim Kingdon
a71d17b1ac * infun.c (resume, resume_cleanups): New functions.
(wait_for_inferior, proceed, child_create_inferior): Use resume
	not target_resume.
1991-04-24 19:17:58 +00:00
Jim Kingdon
eb7ba50c7c * remote.c (getpkt): Don't set immediate_quit. 1991-04-24 17:14:10 +00:00
Jim Kingdon
2403f49b37 * blockframe.c, frame.h (reinit_frame_cache): New function.
solib.c (solib_add), symfile.c ({,add_}symbol_file_command):
	Use it.
1991-04-24 16:56:40 +00:00
Jim Kingdon
b039ac3a20 * symtab.c (lookup_symbol): Add 3 more of those loops through
the symtabs which we all know and love: (1) Look in the
	STATIC_BLOCK for mangled symbols right after we check the blocks,
	(2, 3) Look in the STATIC_BLOCK for all the symtabs and psymtabs
	at the end.
1991-04-24 02:23:40 +00:00
Jim Kingdon
e532974c43 values.c (value_virtual_fn_field): If there is no fcontext,
then do things the way GDB 3.x did.
	valops.c (search_struct_method): Add type to value_virtual_fn_field
	arguments.
1991-04-24 01:01:09 +00:00
Jim Kingdon
9107291db4 * main.c (cd_command): Call dont_repeat.
* dbxread.c (read_struct_type): If const/volatile character is
	missing, don't complain, just continue.

	* dbxread.c (read_struct_type): Only try to read the fcontext if
	it is there.  Also change "error_type " to "return error_type ".
	values.c (value_virtual_fn_field): If there is no fcontext,
	then do things the way GDB 3.x did.
	valops.c (search_struct_method): Add type to value_virtual_fn_field
	arguments.

	* dbxread.c (read_struct_type): Fix typo: *pp != '\0' -> **pp != '\0'.
1991-04-24 00:08:50 +00:00
Jim Kingdon
19b7c2a49e * printcmd.c (print_scalar_formatted): Add 't' for binary. 1991-04-23 17:27:49 +00:00
Jim Kingdon
269c301158 Use unpush_target not pop_target in core_open. 1991-04-23 02:19:43 +00:00
Jim Kingdon
9a822037b1 *** empty log message *** 1991-04-23 01:11:11 +00:00
Jim Kingdon
25a40b004d Restore Schauer's version of ADD_SOLIB in core_open(). 1991-04-23 00:43:20 +00:00
Jim Kingdon
d0237a54e5 * Shared libaray/corefile changes from Peter Schauer:
core.c (core_close): Call CLEAR_SOLIB.
	(core_open): Remove comment about "should deal with shared lib".
	(core_xfer_memory): If we can't xfer the usual way, try the
	shared libraries.
	solib.c (so_list): New fields so_bfd and so_sections{,_end}.
	(find_solib): Use solib_map_sections to get ld_text.
	(solib_map_sections, solib_xfer_memory): New functions.
	(clear_solib): Free so_sections and close so_bfd.
	tm-sunos.h: Add solib_xfer_memory, solib_add.
1991-04-23 00:05:24 +00:00
Jim Kingdon
192cbba944 * sparc-tdep.c (skip_prologue): Don't skip anything unless there
is a "save" instruction in there somewhere.
1991-04-22 21:40:42 +00:00
Jim Kingdon
8683547484 Initial revision 1991-04-22 20:36:28 +00:00
Jim Kingdon
5730a14e76 Fix the fix to the appearance of the ChangeLog 1991-04-22 20:12:14 +00:00
Jim Kingdon
0e000acdc9 Fix appearance of ChangeLog. 1991-04-22 20:11:42 +00:00