Commit Graph

159 Commits

Author SHA1 Message Date
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
Jim Kingdon
b3fdaf3d36 * symfile.c (symbol_file_add): Add comment.
solib.c (solib_add): Don't malloc name passed to symbol_file_add.
1991-04-22 20:09:26 +00:00
Jim Kingdon
777bef06cd Check for NULL selected_frame in various places. 1991-04-22 20:08:53 +00:00
Jim Kingdon
fcb887ffcd * breakpoint.c (bpstat_print): Try all elements on the bpstat
chain before giving up with an internal error.

Sun Apr 21 21:43:10 1991  Jim Kingdon  (kingdon at cygint.cygnus.com)

	* value.h, values.c (value_{,free_to_}mark): New functions.
	breakpoint.c (bpstat_stop_status): Use them.
1991-04-22 07:08:07 +00:00