Commit Graph

4416 Commits

Author SHA1 Message Date
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
John Gilmore
44954de0f6 Replace all 5 BFD_FAILURE's with false's. 1991-04-26 16:32:55 +00:00
John Gilmore
ec08b07730 Remove BFD_SUCCESS and BFD_FAILURE, replace with a comment about return
values of functions.
1991-04-26 16:32:20 +00:00
John Gilmore
d6e467b4c5 Use the new merged include directory. 1991-04-25 04:25:00 +00:00
John Gilmore
d6a554ae83 Minor changes to accomodate merging of three include file directories. 1991-04-25 04:22:55 +00:00
John Gilmore
bad3df6720 Merge intel-deliver and amd-deliver "include" directories, and the
GDB include directory, all into a single include directory.

There are minor corresponding changes in a few files in bfd and gdb.
1991-04-25 04:20:18 +00:00
John Gilmore
a07cc61341 Initial revision 1991-04-25 04:20:11 +00:00
John Gilmore
a6ac0c5998 Fix minor pointer type problems that "cc" complains about. 1991-04-25 04:06:21 +00:00
Steve Chamberlain
65c552e308 Added the sizeof_headers keyword. 1991-04-24 20:53:36 +00:00
Steve Chamberlain
453063fec9 Added some depdenencies and fixed etags 1991-04-24 20:52:21 +00:00
Steve Chamberlain
4cddd1c904 Changed the shape of the howto type yet again.
Now m88kbcs support can self host.
1991-04-24 20:51:27 +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
K. Richard Pixley
fc4214d1b2 Three staging checkpoint. 1991-04-24 19:06:14 +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
K. Richard Pixley
6a3958b22d Three staging checkpoint. 1991-04-24 16:52:32 +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
Steve Chamberlain
39a2ce33d7 *** empty log message *** 1991-04-23 22:44:20 +00:00
Jim Kingdon
19b7c2a49e * printcmd.c (print_scalar_formatted): Add 't' for binary. 1991-04-23 17:27:49 +00:00
Steve Chamberlain
9872a49c27 *** empty log message *** 1991-04-23 16:02:09 +00:00
Steve Chamberlain
a37cc0c05c *** empty log message *** 1991-04-23 15:59:24 +00:00
Steve Chamberlain
1327fb2956 Initial revision 1991-04-23 15:59:23 +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