Commit graph

1095 commits

Author SHA1 Message Date
Jim Kingdon
058eb7667b * xcoffread.c: Nuke NO_DEFINE_SYMBOL code. There is no going back.
* stabsread.c (define_symbol): 'R' is synonym for 'P', not 'r'.
	xcoffread.c (process_xcoff_symbol, case C_RPSYM):
	Don't muck with SYMBOL_CLASS.
1993-04-19 17:39:24 +00:00
Stu Grossman
04c6a64fdd * munch: Don't use head command. It doesn't exist everywhere. 1993-04-17 00:39:55 +00:00
Fred Fish
fbf22c8b31 Remove chill sanitize lines that are no longer needed. 1993-04-16 22:21:33 +00:00
Fred Fish
9c22565940 * inflow.c (new_tty): Remove spurious 'o' character at end
of #endif line.
1993-04-16 22:15:26 +00:00
Peter Schauer
e157305cd9 * mips-tdep.c (mips_skip_prologue): Always skip the typical prologue
instructions and nothing more.
	* mipsread.c (add_line): Add comment why we have to combine line number
	entries for the same line number.
1993-04-16 19:29:14 +00:00
Jim Kingdon
0b28c26082 * symtab.{c,h}: Doc fixes (remove symseg references, last relevant
in gdb 2.8!).
1993-04-16 17:36:49 +00:00
Fred Fish
dd052d9a4b * depend, alldeps.mak: Update, now that gcc -MM bug is fixed. 1993-04-16 04:19:09 +00:00
Jim Kingdon
9fa59efdd9 * source.c (select_source_symtab): Clean up comment. Also, if
we have a current_source_symtab, and s is NULL, return without
	doing anything.
	xcoffread.c (xcoff_symfile_read): Don't call select_source_symtab.
	breakpoint.c (breakpoint_re_set): Don't call select_source_symtab.
1993-04-15 20:11:01 +00:00
John Gilmore
6f49b01e47 * dbxread.c (unknown_symchar_complaint): Add new complaint.
* stabsread.h:  Declare it.
* partial-stab.h:  Use it.
1993-04-15 09:43:33 +00:00
John Gilmore
65ce5df44f * dbxread.c (unknown_symchar_complaint): Add new complaint.
* stabsread.c:  Declare it.
* partial-stab.h:  Use it.

* utils.c (malloc_botch):  Don't forward-declare if NO_MMALLOC.
1993-04-15 09:41:59 +00:00
Jim Kingdon
df2a1bd7d9 * stack.c (print_frame_info): Print specially if dummy frame. 1993-04-15 03:36:02 +00:00
Jim Kingdon
fa99ebe19f * breakpoint.c: Add comments regarding within_scope future direction. 1993-04-15 01:45:35 +00:00
Jim Kingdon
ee7e82fedb Version 4.8.3 1993-04-15 01:13:52 +00:00
Jim Kingdon
486b440e04 * xcoffread.c (record_include_{begin,end}): Change fatal to complain. 1993-04-15 00:14:37 +00:00
Peter Schauer
39cb3d0488 * stabsread.c (read_member_functions): Initialize domain for stubbed
member functions to avoid gdb core dumps when printing pointers
	to member functions.
	* cp-valprint.c (cp_print_class_method): Check for stubbed member
	functions.
1993-04-14 19:53:11 +00:00
Jim Kingdon
e2ff731bf7 * expprint.c (print_subexp): If opcode not found in op_print_tab,
stop with an error().
	eval.c (evaluate_subexp): Change error message.
1993-04-13 19:18:37 +00:00
Jim Kingdon
ccd87bf2b4 * objfiles.c (build_objfile_section_table): Cast return value
from obstack_finish.
1993-04-13 15:31:29 +00:00
Jim Kingdon
f36492275c * config/rs6000/tm-rs6000.h, rs6000-tdep.c: Move FRAME_CHAIN
to rs6000_frame_chain and deal with it if we're in a signal handler.
	(FRAME_SAVED_PC): Use rs6000_frame_chain.
1993-04-13 06:15:14 +00:00
Jim Kingdon
0a819c0429 * breakpoint.c (within_scope): New function.
(enable_breakpoint, watchpoint_check): Use it.
1993-04-12 21:22:46 +00:00
Jim Kingdon
affc968624 source.c (openp): Handle "exec-file ./ls" correctly. 1993-04-12 18:21:25 +00:00
Jim Kingdon
0a62ff3608 (breakpoint_1): use wrap_here before "at" 1993-04-12 17:56:35 +00:00
Per Bothner
5a7c9cceb7 * ch-exp.y: Clean up lexing of identifiers and
reserved words.  (E.g. don't recognize FALSEXXX as the
	keyword FALSE followed by the identifier XXX.)
	Also, convert identifiers to lower case.
1993-04-10 08:35:32 +00:00
Stu Grossman
1724c671da * remote-mips.c, remote-monitor.c, remote-st2000.c: Convert to
new serial interface.
1993-04-09 22:55:00 +00:00
Stu Grossman
4febd10272 * remote.c (remote_open): Use SERIAL_OPEN instead of serial_open.
(putpkt, getpkt):  Use new return codes for SERIAL_READCHAR.
	* ser-go32.c:  Return -1 on most failures, 0 on most successes,
	and use new return codes for go32_readchar().
	* ser-unix.c:  Ditto.  Also, move error handling up to caller for
	SERIAL_SETBAUDRATE().
	* serial.c (serial_open):  Internal call, not SERIAL_OPEN to get
	to specific routine.
	(serial_close):  New routine to wrap around device close routine.
	serial.h:  Clean & document return values more clearly.
1993-04-09 22:14:04 +00:00
Jim Kingdon
944c1c2f31 * rs6000-pinsn.c (print_operand): Deal with no operand instructions.
* rs6000-pinsn.c (print_operand, case LI): Print condition register
	operand in decimal rather than wrong textual versions.
1993-04-09 20:54:02 +00:00
Jim Kingdon
21486670ae * printcmd.c (_initialize_printcmd): Clean up docstring for "x"
(mention 't', remove false thing about 'g' only good with 'f').
1993-04-09 18:06:45 +00:00
Jim Kingdon
ddc6e6f785 * breakpoint.h: move "struct breakpoint" and friends to top of
file so that bpstat_find_breakpoint prototype works.
1993-04-09 17:51:40 +00:00
Jim Kingdon
a80c7bf67c * solib.c (struct so_list): Add bfd field.
(solib_map_sections): Leave bfd open and scratch_pathname allocated.
	Put the bfd in bfd field of the so_list.
	(clear_solib): Free bfd name and close_bfd on the bfd.
1993-04-09 17:43:59 +00:00
Per Bothner
47f366bc62 * valarith.c (value_subscript): Add COERCE_REF.
* ch-exp.y (operand_5):  We can generalize the 2nd operand
	of a string repetition ot 'literal' without ambiguity.
1993-04-09 07:52:50 +00:00
Jim Kingdon
cabd4da684 * breakpoint.h (struct bpstat): Remove momentary field.
Remove bpstat_momentary_breakpoint.  This was always kludgy
	and is no longer used.

	* breakpoint.h: Add enum bpstat_what.
	breakpoint.h (struct bpstat), breakpoint.c (bpstat_stop_status):
	stop and print fields of bpstat now per-breakpoint, not just
	one for the whole chain.
	breakpoint.{c,h} (bpstat_what): New function.
	breakpoint.h: Remove bpstat_stop and bpstat_should_print.
	infrun.c: Replace switch (stop_bpstat->breakpoint_at->type)
	with call to bpstat_what.
	README: Remove watchpoint/breakpoint bug from known bugs.

	* breakpoint.h: Prototype bpstat_find_breakpoint.
1993-04-09 03:17:45 +00:00
Fred Fish
dfbfbd9632 * symtab.c (find_methods, gdb_mangle_name): Note that functions
are g++ specific.
	* symtab.h (VTBL_FNADDR_OFFSET, OPNAME_PREFIX_P, VTBL_PREFIX_P,
	DESTRUCTOR_PREFIX_P):  Note that macros are g++ specific.
1993-04-08 23:05:16 +00:00
Peter Schauer
ca6a826d84 * symtab.h (DESTRUCTOR_PREFIX_P): New macro to check if physname
is a C++ destructor.
        * symtab.c (gdb_mangle_name): Use it.
        * symtab.c (find_methods): Do not add destructors to choice list
        for constructors.
        * symtab.c (decode_line_1): Make breakpoints on destructors work
        for gcc-2.x again.
1993-04-08 17:37:24 +00:00
Stu Grossman
b83bf6b370 * ser-go32.c: Make it use serial port name.
* go32-xdep.c:  Put in def for strlwr, needed by dir.o in go32 libc.
1993-04-08 04:12:56 +00:00
Stu Grossman
40b56283bc * infcmd.c (read_pc): Make sure that we read PC_REGNUM when not
in a system call!
1993-04-08 01:45:35 +00:00
Stu Grossman
41faa7759d * configure.in: Only configure sparclite subdir when target_cpu
is sparclite.
1993-04-07 22:53:49 +00:00
Jim Kingdon
ef5b809c7c * xcoffread.c (struct coff_symbol): Change c_sclass to unsigned char.
Remove FIXME comment regarding this.
1993-04-07 22:45:34 +00:00
Per Bothner
8a177da658 * ch-exp.y: Remove ambiguities. Fix or add support for
UNOP_IND, UNOP_CAST, UNOP_ADDR, STRUCOP_STRUCT, OP_TYPE.
	* ch-typeprint.c (chill_print_type):  Move support
	for TYPE_CODE_ARRAY and TYPE_CODE_STRING from here ...
	* ch-typeprint.c (chill_type_print_base): ... here.
	* ch-typeprint.c (chill_type_print_base):  Improve
	support for PTR, REF, and FUNC types.
	* ch-valprint.c:  Prefer H'%x format to 0x%s.
	* ch-valprint.c (chill_val_print):  Add support for printing
	TYPE_CODE_REF (return for LOC parameters and variables).
	Use c_val_print to print random types (including ENUM).
	* ch-valprint,c (chill_print_value_fields):  Make
	output look more like Chill tuples.
	* stabsread.c (read_struct_type):  Factor common code.
1993-04-07 22:15:48 +00:00
Fred Fish
8cb3cab94f * sparclite/Makefile.in: Add dummy mostlyclean, clean,
distclean, and realclean targets.
1993-04-07 18:27:16 +00:00
Jim Kingdon
47045b3617 Change NULL->'\0' in comment (that wasn't a typo). 1993-04-07 17:46:19 +00:00
Jim Kingdon
f635bd474c use E_SYMNMLEN 1993-04-07 17:40:55 +00:00
K. Richard Pixley
73d0fc7820 Add section table to objfile struct. Use it for find_pc_section.
* objfiles.c (add_to_objfile_sections,
  build_objfile_section_table, find_pc_section): new functions.
  (allocate_objfile): build section table.
* objfiles.h (struct obj_section): new structure.
  (struct objfile): add section table.
  (find_pc_section): new prototype.
* solib.[ch] (find_pc_section_from_so_list): removed.
* sparc-tdep.c: include objfiles.h for find_pc_section.  include
  symfile.h for objfiles.h.
  (in_solib_trampoline): adjusted for new find_pc_section
  prototype.  Removed BAD_RICH_HACK ifdefs.
* symfile.c (syms_from_objfile): offset objfile sections.
  (find_pc_section): removed.  Also removed BAD_RICH_HACK ifdefs.
* symfile.h (find_pc_section): prototype removed.  Also fixed
  comment typo NUL -> NULL.
* target.[ch] (find_pc_section_from_targets): removed.
* config/sparc/tm-sun4sol2.h (BAD_RICHH_HACK): removed.
1993-04-07 07:04:26 +00:00
Stu Grossman
07861607f5 * ser-go32.c: Format. (go32_open): Use proper return value.
* configure.in:  Undo conditional configdirs hack for sparclite.
1993-04-07 04:43:48 +00:00
Jim Wilson
118ec55a7b Fix for PR 124: make 'rb' correctly handle case where we have multiple
functions with the same name in different files.
1993-04-07 00:09:11 +00:00
Jim Kingdon
9925b92861 * values.c (USE_STRUCT_RETURN): Only use gcc wierdness for gcc1. 1993-04-06 21:20:30 +00:00
Jim Kingdon
786757a9a4 * xcoffread.c (read_xcoff_symtab): Deal correctly with symbols of
exactly 8 characters.
1993-04-06 20:08:50 +00:00
Stu Grossman
0c101d4920 * configure.in: Sparclite uses sparc config dir. Also has it's
own tm- & .mt files now.  Also add sparclite to configdirs.
	* go32-xdep.c:  Dummy routines for sigsetmask & strlwr.
	* config/i386/go32.mh:  Nullify def of TERMCAP.
	* config/i386/xm-go32.h:  Get rid of redef of EIO.
	* config/sparc/{sparclite.mh tm-sparclite.h}:  New sparclite
	specific configs.  Very similar to sun4os4, but without solib.
	* sparclite/{Makefile.in configure.in}:  First cut at making this
	dir configgable.
1993-04-06 17:40:55 +00:00
Stu Grossman
5d2b030a03 * ser-go32.c: First cut at adapting to new serial interface. 1993-04-06 10:13:03 +00:00
Stu Grossman
4e772f4426 * Makefile.in (SFILES OBS): Add serial.[co] & ser-hardwire.[co].
These implement a new serial line interface for talking to remote
	targets.
	* configure.in:  Link ser-hardwire.c to ser-unix.c for all hosts,
	EXCEPT go32, which gets ser-go32.c.
	* remote.c:  Use new serial interface.  More remote-xxx's to be
	converted later.
	* ser-bsd.c, ser-termios.c:  Removed.
	* serial.c:  New.  Implements common operations for all serial
	types.
	* ser-unix.c:  New.  Unix specific serial operations for various
	flavors of Unix (Posix, SysV, BSD).
	* serial.h:  Generic serial interface defs.
	* config/i386/go32.mh, config/i386/i386bsd.h,
	config/m68k/apollo68b.mh, config/sparc/sun4os4.mh:  Remove
	ser-bsd.o from XDEPFILES.  All the magic is now handled in
	configure.in.
1993-04-06 05:50:54 +00:00
Stu Grossman
9acdb2dc82 * config/h8500/tm-h8500.h: Clean up brain damage found by GCC. 1993-04-06 03:52:31 +00:00
Jim Kingdon
1d7e34e1ef * xcoffread.c (xcoff_symfile_offsets): Use 0 not addr for offsets. 1993-04-03 01:19:16 +00:00