Commit Graph

193 Commits

Author SHA1 Message Date
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
Jim Kingdon 33614d0fc6 * tm-i386v{,-g}.h: Remove N_SET_MAGIC define. 1991-04-22 04:45:26 +00:00
Jim Kingdon 2b325024a8 * i386-tdep.c: Remove unnecessary #includes. 1991-04-21 05:59:53 +00:00
Jim Kingdon b203fc1803 * coffread.c (find_linenos): Use LINESZ not sizeof (struct lineno).
* coffread.c (end_symtab): Initialize language, dirname, and
	fullname fields.
1991-04-21 05:17:05 +00:00
Jim Kingdon 98885d766e infrun.c (start_remote): Also call wait_for_inferior & normal_stop. 1991-04-20 03:59:44 +00:00
Jim Kingdon f2ebc25fc2 * findvar.c (read_register_gen): Add "target byte-order" comment.
Wed Apr 17 17:09:48 1991  Jim Kingdon  (kingdon at cygint.cygnus.com)

	* i386-tdep.c (i386_get_frame_setup): Use SWAP_TARGET_AND_HOST
	before returning locals or slocals.

	* i386-tdep.c (i386_follow_jump): Do not add data16 to pos in
	call to codestream_seek; add one to pos if (and only if)
	we are dealing with a jump with data16 == 1 (i.e. 0x66, 0xe9).

Mon Apr 15 12:04:32 1991  Jim Kingdon  (kingdon at cygint.cygnus.com)

	* valops.c (call_function_by_hand): Put dummy1 in target order
	before FIX_CALL_DUMMY.

	* tm-i386v.h (FIX_CALL_DUMMY): Don't depend on host byte order.

Sun Apr 14 11:55:19 1991  Jim Kingdon  (kingdon at cygint.cygnus.com)

	* valops.c (push_word): Add SWAP_TARGET_AND_HOST.

	* remote.c (remote_open): Send '+' before calling putpkt().

	* tm-i386v.h (REGISTER_VIRTUAL_TYPE): Return pointer to void,
	not int, for pc, fp, and sp.

	* remote.c (remote_open): Call start_remote after putpkt("?");
1991-04-20 03:57:50 +00:00
Jim Kingdon 961b4908e9 * mipsread.c (parse_symbol): Set startup_file_{start,end} if
entry_point is in current file.
1991-04-20 03:27:04 +00:00
Jim Kingdon 9d62cbd23a * stddef.h (size_t): Let either _SIZE_T or _SIZE_T_ guard it. 1991-04-20 03:25:09 +00:00
Jim Kingdon ff8aef1993 signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if.
param-no-tm.h: Define SYS_SIGLIST_MISSING from USG.
1991-04-20 01:02:34 +00:00
Jim Kingdon ab8f22a975 Fix comment (coff-encap -> dbx-in-coff). 1991-04-20 00:41:55 +00:00
Jim Kingdon 696d660be0 * tm-68k.h (NUM_REGS): Conditionalize on TARGET_SUN3 not sun.
tm-sun3.h: Define TARGET_SUN3.
1991-04-20 00:31:01 +00:00
Jim Kingdon f88e7af831 * utils.c: Use CPLUS_MARKER not '$'.
* cplus-dem.c: Use CPLUS_MARKER not '$'.  If CPLUS_MARKER isn't
	defined, define it to '$'.
1991-04-19 23:50:06 +00:00
Jim Kingdon 9ba8a5a46b * arm-opcode.h: New file (same contents as before; it had
just been left out of the distribution for a long time).
1991-04-19 23:37:10 +00:00
Jim Kingdon 98a5cd0393 Initial revision 1991-04-19 23:37:08 +00:00
Jim Kingdon de6060deb1 * tm-68k.h: Put declaration of ext_format_68881 outside the macros. 1991-04-19 22:04:24 +00:00
Jim Kingdon d566d62a5a * main.c: New HAVE_SIGSETMASK #ifdefs. 1991-04-19 21:49:27 +00:00
Jim Kingdon 8714ff355d * coffread.c (read_coff_symtab): Check for "LF%" with all the
other L*% things.

	* coffread.c (SDB_TYPE): New macro.
	various: Use it instead of checking against T_NULL.
1991-04-19 21:48:55 +00:00
Jim Kingdon c1ace5b596 * Makefile.dist (cplus-dem.o): Hack in an #include "param.h"
before we compile it.
	defs.h: Protect against multiple inclusion.
	param.h: Include defs.h.
1991-04-19 17:28:32 +00:00
Jim Kingdon c93a350722 * i386-pinsn.c (OP_E): Change %d to 0x%x for consistency. 1991-04-19 07:06:13 +00:00
Jim Kingdon 15a4241049 *** empty log message *** 1991-04-19 04:42:29 +00:00
Jim Kingdon 31ef19fc7f *** empty log message *** 1991-04-19 03:22:12 +00:00
Jim Kingdon b6a3c755c7 Initial revision 1991-04-19 03:22:06 +00:00
John Gilmore 3ead667539 One more time 1991-04-19 02:01:49 +00:00
Jim Kingdon 9136fe4948 *** empty log message *** 1991-04-19 01:58:50 +00:00
John Gilmore 3ba6a043d4 * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New
defines for the blocks of a blockvector that contain global and
        file-static symbols and the first of the smaller scope contours.
        * symtab.c (lookup_symbol, find_pc_symtab, find_pc_line,
        decode_line_1, make_symbol_completion_list):  Use the above.

        * symtab.c (list_symbols):  Process the first symbol of the
        static psymbols list.
        (types_info):  Restore this function from its untimely #if 0.
        It's not perfect, but it is better than nothing.
        (_initialize_symtab):  Restore "info types".
1991-04-19 01:55:07 +00:00
John Gilmore dcf5473aff * symfile.h (free_named_symtabs): Rename from free_named_symtab. 1991-04-19 01:52:40 +00:00
Jim Kingdon a7d50b0adf *** empty log message *** 1991-04-19 01:45:22 +00:00
Jim Kingdon e74d7b43a8 * symfile.c: Rename add_syms_command to add_symbol_file_command.
(_initialize_symfile, add_syms_addr_command):
	Rename add-syms to add-symbol-file.
1991-04-19 01:38:55 +00:00
Jim Kingdon d1343a2a72 * source.c: Rename directories_info to show_directories.
(_initialize_values): Rename "info directories" to "show directories".
1991-04-19 01:38:14 +00:00
Jim Kingdon f2fc6e7a5c * target.h: Add to_doc and target_preopen.
target.c: Add target_preopen and target_command.
	Remove target_info.
	(add_target): Call add_cmd and mess with targetlist->doc.
	core.c, exec.c, remote-eb.c, remote-nindy.c, remote-vx.c,
	remote-vx.68.c, inftarg.c, remote.c: Add doc field to target struct.
	Call target_preopen from open routine.
1991-04-19 01:36:57 +00:00
Jim Kingdon 70dcc196e1 * inftarg.c (child_open), remote-vx{,.68}.c (vx_proc_open):
New function to give correct error message.
1991-04-19 01:34:30 +00:00
Jim Kingdon f266e5641b *** empty log message *** 1991-04-19 01:32:08 +00:00
John Gilmore 543e29f11a Update for Jim Kingdon to merge his stuff in. 1991-04-19 01:22:24 +00:00
John Gilmore fc47a10d9b * target.c (dummy_target): Permit add_syms_addr_command. 1991-04-19 01:21:29 +00:00
John Gilmore 3f83182d58 * dbxread.c (end_symtab, end_psymtab): Change comments.
(initialize_dbxread):  Call dbx_new_init() in case the first
        command is add-symbols.
1991-04-19 01:19:15 +00:00
John Gilmore 5c43db6b38 * symtab.c (free_symtab): Declare as exported void fn now. 1991-04-19 01:17:26 +00:00
John Gilmore 029981e273 * symfile.c (clear_symtab_users_once, cashier_psymtab,
free_named_symtabs):  Move these routines from symmisc.c.
        * symmisc.c (same):  same.
1991-04-19 01:10:52 +00:00
John Gilmore 9d19971230 * symfile.c (clear_symtab_users_once, cashier_psymtab,
free_named_symtabs):  Move these routines from symmisc.c.
1991-04-19 01:09:45 +00:00
K. Richard Pixley 0df06ca031 Now handles multiple hosts and targets. 1991-04-15 23:46:50 +00:00
Roland Pesch 6df47a7407 Minor adjustments for clean info-formatting. 1991-04-15 20:30:47 +00:00
John Gilmore 0ef6f0192d Permit symbols to be superseded when new symbol files have
been read in, particularly for VxWorks.

        * symfile.c (symbol_file_add):  Use filtered printing and wrap it.
        If we have wiped out any old symbol tables, clean up at end of
        symbol reading.
        (symbol_file_command):  Don't reference symfile_fns if it's zero.
1991-04-13 22:37:48 +00:00
John Gilmore d219db0133 * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New
defines for the blocks of a blockvector that contain global and
        file-static symbols and the first of the smaller scope contours.
	* mipsread.c:  Use them.

        * coffread.c (end_psymtab):  Free named symtabs and psymtabs for
        a file, once a new symtab has been read for it.
        * mipsread.c:  FIXME.  We need to do the same for MIPS, but it
        looks harder to determine the top-level block before it's been
        queued to the psymtab list.
1991-04-13 22:31:54 +00:00
John Gilmore a6e2b4241e * coffread.c (end_psymtab): Free named symtabs and psymtabs for
a file, once a new symtab has been read for it.
        * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):  New
        defines for the blocks of a blockvector that contain global and
        file-static symbols and the first of the smaller scope contours.
        * symtab.c (lookup_symbol, find_pc_symtab, find_pc_line,
        decode_line_1, make_symbol_completion_list):  Use the above.
        * coffread.c (end_symtab, patch_opaque_types):  Ditto.
1991-04-13 22:29:36 +00:00
John Gilmore 92a29b47d7 * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New
defines for the blocks of a blockvector that contain global and
        file-static symbols and the first of the smaller scope contours.
1991-04-13 22:21:23 +00:00
John Gilmore f96238813e Permit symbols to be superseded when new symbol files have
been read in, particularly for VxWorks.

        * dbxread.c (read_dbx_symtab): Allow N_SOL to cleanly take us back
        to the main file, as well as to include files.  Also, put global
        functions into the global psymtab, to make "i fun" work.
        (end_psymtab):  Free named symtabs and psymtabs for a file, once a
        new psymtab for it has been read.
1991-04-13 21:51:28 +00:00
John Gilmore bd313dad25 Initial revision 1991-04-11 11:23:14 +00:00
K. Richard Pixley 5d98a5cd94 Initial revision 1991-04-11 03:07:16 +00:00
John Gilmore 447b99fa65 * exec.c (exec_ops): Add_syms_addr is valid in our tvec.
(set_section_command):  New command ("section xxx yyy" -- should
	be renamed to "set section xxx yyy" FIXME) which sets the
	base address of a section of the exec file, overriding the
	virtual address that BFD reports.
1991-04-09 07:04:22 +00:00
John Gilmore 66eeea27cc *** empty log message *** 1991-04-06 02:11:43 +00:00
John Gilmore be2c3f354c *** empty log message *** 1991-04-06 01:18:22 +00:00
John Gilmore 64e5222463 *** empty log message *** 1991-04-06 01:14:30 +00:00
Roland Pesch b48914e1e0 Repair missing xrefs. 1991-04-06 00:46:23 +00:00
Roland Pesch efd784ca05 Added John Gilmore's advice on subdirs to installation appendix. 1991-04-06 00:13:19 +00:00
Roland Pesch 52d9ccbbae RENAMES: "demangle" and "asm-demangle" now "set print" subcmds. 1991-04-06 00:00:46 +00:00
Roland Pesch 413130bd46 ADDED:
show copying
show warranty
1991-04-05 23:54:17 +00:00
Roland Pesch 41d786f7a5 Changes agreed w/gnu, summarized in mail of Tue Apr 2 15:52:44 1991
RENAMES:
 add-syms -> add-symbol-file
 info->show convenience
 info->show directories
 info editing->show commands
 info->help targets
 info->show values
 info->show version
 set subcommands:
  addressprint->print address
  arrayprint->print array
  prettyprint->print pretty
  screen-height->height
  screen-width->width
  unionprint->print union
  vtblprint->print vtbl
DELETED: info history (syn "show values" remains)
ADDED: help target BLAH
1991-04-05 23:35:32 +00:00
Roland Pesch c989dc8e6f General editing pass. Highlights:
Update stuff on option flags, full text, mention -help;
Better localization of target-specific stuff;
introduce 'path' command and discussion of exec path as opp src path;
document which commands don't repeat w RTN;
update and improve several examples, eg deleting (...)
Throughout: attempts to clarify etc.
1991-04-05 22:48:39 +00:00
John Gilmore 847fd51966 *** empty log message *** 1991-04-05 09:11:18 +00:00
John Gilmore 3f2e006b77 *** empty log message *** 1991-04-05 09:02:10 +00:00
John Gilmore 07d021a6ae Initial revision 1991-04-05 09:01:15 +00:00
Roland Pesch 8922ff76e3 (1) fix macro invocation of _GDBN__ that didn't expand due to adjacent 's';
(2) attempt better text for when register relativization makes no diff.
1991-04-04 00:33:18 +00:00
Roland Pesch 08665207c0 Corrections due to RMS.
(and improvements).
1991-04-03 23:49:07 +00:00
Roland Pesch d008dd076c Added VxWorks subsection to chapter on getting in/out 1991-04-02 01:07:13 +00:00
Roland Pesch 01b25dab88 (1) further restructuring;
(2) fix two bugs reported by Per Bothner;
    (in markup for makeinfo)
(3) eliminate info structural information that can be generated
    by texinfo-master-menu.
1991-04-01 23:52:17 +00:00
Roland Pesch fe3f5fc828 Restructured manual; introduced introductory sample session. 1991-03-30 02:13:24 +00:00
Roland Pesch 1695733e8a Corrections to:
(1) back of title page---show title next to rev number;
(2) DOSish examples for 29K
1991-03-28 21:26:03 +00:00
K. Richard Pixley dd3b648e8b Johns release 1991-03-28 16:28:29 +00:00