Commit Graph

1034 Commits

Author SHA1 Message Date
Steve Chamberlain
fa4b55a1b1 Development checkpoint 1992-01-28 03:33:04 +00:00
John Gilmore
eae1a26123 * findvar.c (read_register, write_register): Handle machines
where REGISTER_TYPE is not the same size as "int".
1992-01-28 03:20:39 +00:00
John Gilmore
c55e616795 Handle debug symbols in dynamically loaded (relocated) code:
* dbxread.c (read_ofile_symtab):  Fix up N_CATCH better.  Pass
offset to process_one_symbol.
(process_one_symbol):  Take new offset parameter.  Add it into
appropriate symbol types to relocate symbols to loaded addresses.
Handle all possible symbol types, and complain() about types that
we don't expect to see.
* mipsread.c (psymtab_to_symtab_1):  Pass offset of zero to
process_one_symbol (FIXME, should pass real offset).

Misc bugfixes:

* breakpoint.c (resolve_sal_pc):  Split out code to resolve a
sal's PC value.
(set_breakpoint, break_command_1, until_break_command,
catch_command_1, breakpoint_re_set_one):  Use it.
(breakpoint_re_set_one):  Disable bkpts that don't re-set cleanly.
(breakpoint_re_set):  Mention breakpoint number in error messages.
* symtab.h (resolve_sal_pc):  Declare.
* infcmd.c (jump_command):  Use resolve_sal_pc.

* source.c (find_source_lines):  Avoid "Source file is more
recent than executable" when bfd_get_mtime gives 0.
(list_command):  Shorten "FILE, line N" to "FILE:N".

* putenv.c (putenv):  Avoid unportably casting pointers to unsigneds.
1992-01-28 02:57:37 +00:00
John Gilmore
f005e85b88 Remove obsolete START_INFERIOR_HOOK. 1992-01-28 02:49:12 +00:00
Stu Grossman
0bd83fd723 Oops, checked in version with the wrong stuff enabled. Turn it off... 1992-01-28 02:38:11 +00:00
Stu Grossman
d93b79d97d Rename remote-hds.c to remote-hms.c. 1992-01-28 02:30:27 +00:00
Stu Grossman
3c03b5de58 * dbxread.c (process_one_symbol): Make a first cut at handling
symbol tables generated by Suns acc.
1992-01-28 02:24:08 +00:00
Stu Grossman
1aa560b2ea * symtab.c (find_pc_line): Fix stepping into and out of #included
files.
1992-01-27 23:52:11 +00:00
John Gilmore
5a4e721505 * buildsym.c (read_struct_type): Circumvent sun3 sunos "--" compiler bug.
* c-exp.y (yylex):  `this' and `template' are only tokens in C++.
* target.c (target_xfer_memory):  Return errno in preference to EIO.
1992-01-27 22:10:05 +00:00
John Gilmore
3818ed33a9 * xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
xm-np1.h, xm-pn.h, xm-pyr.h, xm-rtbsd.h, xm-symmetry.h, xm-umax.h:
Remove MISSING_VPRINTF declaration, and superfluous "kgdb" defines.
1992-01-27 21:45:35 +00:00
Stu Grossman
71f49876db * Makefile.in (OPCODES): Remove OPCODES defs and refs. There is
no longer any need to copy ../include/opcode/* into gdb.
1992-01-27 21:04:55 +00:00
John Gilmore
ee799e2a92 Add ChangeLog-9091 1992-01-27 20:32:50 +00:00
John Gilmore
fd8db897af Split ChangeLog out at Jan 1, 1992. 1992-01-27 20:32:19 +00:00
Fred Fish
2213b721f0 Update with numerous changes received from current maintainer (Peggy
Fieland).  Should not effect release at all.
1992-01-27 16:23:11 +00:00
Michael Tiemann
7c4f3f4a2f Delete a superfluous space. 1992-01-27 08:51:16 +00:00
Per Bothner
24b2fbdc54 Print C++ constructor methods without bogus "return type." 1992-01-27 03:08:01 +00:00
Fred Fish
cdb90e99e7 The unused parameter "target" should be a pointer to a structure, not the
entire structure.
1992-01-25 23:59:53 +00:00
Steve Chamberlain
92abd4a713 Namechange, h8300-hds ->h8300-hms 1992-01-24 23:26:40 +00:00
Steve Chamberlain
974fb9e41c Initial revision 1992-01-24 23:26:01 +00:00
Steve Chamberlain
e58493346d Changed refs to section->size to bfd_get_section_size_before_reloc 1992-01-24 23:13:14 +00:00
Fred Fish
1b07e406ad Convert the couple of references to the local (now removed) version
of ansidecl.h to use the ../include version.
1992-01-24 09:32:03 +00:00
Fred Fish
f66f459f43 Misc small fixes for problems uncovered by prototyping. 1992-01-24 06:52:43 +00:00
Fred Fish
fc1f864632 The i386_frame_num_args() function takes a pointer to a struct, not
the entire struct itself.
1992-01-24 06:42:04 +00:00
Fred Fish
1b7a420ef5 Correctly cast some arguments to modify_field and {read/write}_register_bytes. 1992-01-24 06:38:17 +00:00
Fred Fish
99140c31fe The list_in_scope pointer needs to be initialized to point to a
valid scope.  Use the file scope as the initial scope.
1992-01-24 06:32:43 +00:00
Fred Fish
75798a7eba *** empty log message *** 1992-01-24 06:27:38 +00:00
Fred Fish
9a1ae235a8 Document ansidecl.h going away, in favor of the copy in ../include. 1992-01-24 06:26:18 +00:00
Roland Pesch
5b0fdf7b48 Two trivial 1991->1992 updates. (One in GDB copyright banner, assuming 4.4
will announce 1992 as copyright year).
1992-01-24 03:49:46 +00:00
Steve Chamberlain
400943fbac One step closer. 1992-01-24 02:37:13 +00:00
Steve Chamberlain
8174b2afcf Name change (It's hitacho micro systems, not hitachi data systems) 1992-01-24 02:35:15 +00:00
Michael Tiemann
0eb0a82097 Fix demangling of destructors, and fix a minor indentation problem. 1992-01-20 16:55:45 +00:00
Stu Grossman
313085cbc9 * Makefile.in (HFILES): Add partial-stab.h. 1992-01-19 01:19:41 +00:00
Fred Fish
be9a236222 Add several new files for stratus (i860* and *-stratus.h). Also add
macro USER_CFLAGS to Makefile.  Add stratus config frags to configure.in.
1992-01-19 00:52:06 +00:00
Fred Fish
3a07685179 Check in new config files for stratus. 1992-01-19 00:44:42 +00:00
Fred Fish
57486b9241 Initial revision 1992-01-19 00:44:40 +00:00
Stu Grossman
dcfc4f45a8 Add psrc.sed 1992-01-18 00:44:04 +00:00
Steve Chamberlain
7c5622817d New stuff 1992-01-16 23:57:59 +00:00
Steve Chamberlain
0a8ed75112 Added new h8 files 1992-01-16 23:56:37 +00:00
Steve Chamberlain
0a8f9d3195 Stubs to get things going 1992-01-16 23:52:05 +00:00
Steve Chamberlain
ce7730d674 Added h8300 target 1992-01-16 23:50:15 +00:00
Fred Fish
cdce29eefc Pass address of structure to complain() rather than the entire structure. 1992-01-16 08:57:31 +00:00
Roland Pesch
f672bb7f9e Updated "Installing" appendix, for current state of configure.
(Awaiting review).
1992-01-16 03:20:58 +00:00
Roland Pesch
2b1378d8da Two more FSF mods. 1992-01-15 23:19:54 +00:00
Roland Pesch
228d9e5479 refcard.tex: single file now includes what were formerly three files, to suit
FSF preferences (format definitions, nee threecol.tex, and
             default font defs, nee rc-cm.tex, now both directly in this file).

lpsrc.sed, psrc.sed: alternate font defs, now sed scripts to modify refcard.tex

Makefile.in: use sed -f psrc.sed to produce refcard.ps target; new
             target lrefcard.ps for sites using long PS font names

Removed old auxiliary TeX files, no longer necessary with this scheme.
1992-01-15 23:09:45 +00:00
Roland Pesch
63ae8ea1ec Reactivate paragraph on preformatted PostScript refcard (now referring
to GhostScript as well as to PostScript); I've verified GhostScript can
display it.
1992-01-15 19:59:53 +00:00
Roland Pesch
5ac0315a07 Cygnus-Logoized version of GDB refcard, for use as marketing collateral.
NOT PART OF STANDARD GDB RELEASE; DO NOT ADD THISE FILES TO .Sanitize!
1992-01-15 19:48:55 +00:00
Roland Pesch
d54bd32dcf (1) Improvements from B Chassell.
(2) minor format improvements for marginalia.
1992-01-15 19:46:01 +00:00
Roland Pesch
e08d73b1b1 Discreet folding guides, and commented-out alternatives. 1992-01-15 19:36:16 +00:00
Fred Fish
7f4352410f Only compile in solib_add_common_symbols for non-SVR4 (SunOS) shared libs. 1992-01-15 18:01:42 +00:00
Fred Fish
a5bd5ba617 Changes to fix bug with static variables within function scopes. 1992-01-15 06:42:32 +00:00
Stu Grossman
8c3d2a53db Reference: gdb-pend/636
* inflow.c:  remove #include <sys/dir.h>.  Not necessary, and
doesn't exist on some systems.
1992-01-15 01:11:30 +00:00
Stu Grossman
5e746644b6 Reference: gdb-pend/646
* infrun.c (wait_for_inferior!!!!):  Prevent gdb from hanging when
nexting over recursive function calls.
1992-01-15 00:52:19 +00:00
Stu Grossman
d261ece7ea Reference: gdb-pend/657
* target.c (target_read_string):  Create this routine to read null
terminated strings from the target.  It deals with running off the
end of memory elegantly as well.  solib.c (find_solib):  Use
target_read_string() to avoid problems with running off the end of
memory.
1992-01-15 00:40:30 +00:00
Stu Grossman
7e97eb2826 gdb-pend/620
* inflow.c (child_terminal_info):  #ifdef TIOCPGRP around lines
that reference pgrp_inferior.
1992-01-14 20:31:40 +00:00
Per Bothner
0cf9329b64 * tm-mips.h: Removed BLOCK_ADDRESS_ABSOLUTE, now that
mips-tfile has been hacked to act more "traditionally."
	* dbxread.c:  Fixed typo in comment.
1992-01-13 23:00:42 +00:00
Per Bothner
488d2691c7 * mips-tdep.c (mips_skip_prologue): Add some number of
'sw' instructions before 'addiu' adjusts the stack.
1992-01-12 21:10:42 +00:00
Fred Fish
4d315a071a Many changes to convert over to generic symbol table reading code in
buildsym.c   (second cvs ci attempt)
1992-01-11 01:41:23 +00:00
Stu Grossman
59d97f7fd7 buildsym.c (cleanup_undefined_types): Add support for enums.
This fixes the 'GDB internal error.  cleanup_undefined_types with
bad type' problem.
1992-01-07 21:16:25 +00:00
John Gilmore
ae28e3993d Get past DEC shell bug. 1992-01-06 14:21:29 +00:00
Roland Pesch
1041a57000 Makefile.in: resuscitate "all" target as "all-doc".
gdb.texinfo, gdbinv-s.m4.in: finish merging w/Chassell edits.
none.m4: minor auxiliary facility (_FSF__) for above.
1992-01-06 07:31:10 +00:00
John Gilmore
1a4d253ce7 Rename bitfields to avoid conflict with macro names in new opcode/sparc.h. 1992-01-02 23:09:53 +00:00
Fred Fish
1d4c28c5fa Makefile.in: Change tm-svr4.h to tm-sysv4.h. Change xm-svr4.h
to xm-sysv4.h.  Split OPCODE_DIR into OPCODE_DIR1 and OPCODE_DIR2
to reflect actual locations of opcode files, so TAGS target will
be buildable.

i386-tdep.c:  Change an erroneous 'm68k' reference to 'i386'.

i386-tdep.c (supply_fpregset, fill_fpregset):  Remove m68k code.

m68k-tdep.c (supply_fpregset, fill_fpregset):  Fix array
dereferencing to access the correct elements.

valops.c (value_addr):  Declare return type of external func value_copy().

xcoffread.c:  Undefine next_symbol_text before redefining it.
1992-01-01 12:32:19 +00:00
Per Bothner
8e9a3f3b18 Mainly stuff to improve handling of TYPE_CODE_REF (C++ reference)
values. (See ChangeLog.)
1991-12-30 19:22:29 +00:00
Per Bothner
a3723a4352 Missed some stuff last time.
Also, recognize constructors specially in gdb_mangle_name().
1991-12-28 19:37:55 +00:00
Fred Fish
a39ad5ce42 Many small changes to procfs.c to add base support for a new "info proc"
command that prints /proc specific information, changes to solib.c to
allow more flexible handling of finding the dynamic linker structures,
changes to utils.c and defs.h to add a new null_cleanup() function to
serve as an anchor point for cleanup chains with no obvious "first
cleanup".
1991-12-28 06:27:24 +00:00
Per Bothner
aab77d5f23 More changes, mostly cleanups from the last set.
Made some more progress in removing duplicate assembly opcode files.
More improvements to how mipsread and to a lesser extent dbxread work.
See the ChangeLog for details.
1991-12-27 21:11:37 +00:00
Fred Fish
b440b1e9e4 Various changes to clean up ADD_PSYMBOL_TO_LIST and ADD_PSYMBOL_ADDR_TO_LIST
usages.
1991-12-27 03:55:12 +00:00
John Gilmore
e39636f7e7 Roll VERSION to 4.3.2. 1991-12-24 19:39:16 +00:00
Per Bothner
7e258d18e0 Oodles of changes. The most important is adding support for stabs
encapsulated in mips ecoff.  See ChangeLog for the gory details.
1991-12-23 23:16:58 +00:00
Fred Fish
3e60a6b1d3 * config/mh-amix, config/mh-i386v4: Change to find alloca by
compiling and linking alloca.c, even when it is not strictly
  required.  Also arrange to link with -ltermlib rather than -ltermcap.
1991-12-23 03:44:49 +00:00
Fred Fish
431df2ebac * solib.c (locate_base): Fix uninitialized variable that was
causing return of random value to callee.

	* config/mh-amix, config/mh-i386v4:  Change to find alloca by
	compiling and linking alloca.c, even when it is not strictly
	required.  Also arrange to link with -ltermlib rather than
	-ltermcap.

	* Makefile.in:  Move TERMCAP definition to prior to inclusion
	of host makefile fragments so it can be overridden.
1991-12-23 03:43:48 +00:00
John Gilmore
6b5b330b26 * xcoffread.c (read_symbol_lineno): Logic error in incrementing
symbol table entry number.  (From Metin Ozisik.)
1991-12-21 00:36:59 +00:00
Fred Fish
b6d0f9b13f Keep the renamed svr4 files. 1991-12-20 22:36:58 +00:00
Fred Fish
70b74b930c Document change to config/mh-i386v4. 1991-12-20 19:52:35 +00:00
Fred Fish
ca9b13c75c Set XM_CLIBS to "-lc /usr/ucblib/libucb.a" so native compilers can find
alloca, but only if it is not found in the std C library.  Also forces
libc to be search before libucb.a, which contains much broken stuff we
*don't* want.
1991-12-20 19:48:13 +00:00
Fred Fish
ee1ad69ccd * configure.in, tm-amix.h, tm-i386v4.h, xm-amix.h, xm-i386v4.h:
Change svr4 references to sysv4.

* source.c:  Move declaration of external function index to
front of file so it is in scope for all references.

* utils.c (error, fatal):  Make definitions consistent with
defs.h declarations (declared as "volatile void").
1991-12-20 19:44:16 +00:00
Fred Fish
0837376f8c Renamed from xm-svr4.h xm-sysv4.h 1991-12-20 19:09:49 +00:00
Fred Fish
9d8728716d Renamed from tm-svr4.h to tm-sysv4.h 1991-12-20 19:08:12 +00:00
John Gilmore
859eb781d8 Bugfix rfe and stbrx instrucionts. 1991-12-20 18:56:37 +00:00
Stu Grossman
e182722827 * command.h, defs.h, eval.h, expression.h, remote-sa.sparc.c,
sparc-tdep.c, symtab.h, target.h, value.h, vx-share/ptrace.h,
vx-share/xdr_ptrace.h, vx-share/xdr_rdb.h:  ANSIfy enums.
CVS:
1991-12-19 01:16:03 +00:00
Stu Grossman
0a5d35ed30 * command.h, defs.h, eval.h, expression.h, remote-sa.sparc.c,
sparc-tdep.c, symtab.h, target.h, value.h, vx-share/ptrace.h,
vx-share/xdr_ptrace.h, vx-share/xdr_rdb.h:  ANSIfy enums.
1991-12-19 01:14:31 +00:00
Fred Fish
db1eca19a5 Add solib.o to TDEPFILES for these SVR4 systems. 1991-12-16 21:05:22 +00:00
Fred Fish
c7e53c85dc Document changes to config/tm-amix and config/tm-i386v4. 1991-12-16 21:04:40 +00:00
Fred Fish
6fa6e49649 Print the names of files from which symbols are being loaded if verbose
is set.
1991-12-16 21:01:34 +00:00
Fred Fish
f8b76e70b7 Numerous small changes and a complete reorganization of solib.c, to support
SVR4 shared libraries in a manner very close to the original SunOS support.
See the ChangeLog for details.
1991-12-16 20:57:28 +00:00
John Gilmore
76b2c3c8cb * infrun.c, remote-eb.c, remote-nindy.c, remote-vx.c: Remove
unused START_INFERIOR_HOOK.

* remote-eb.c:  Change timeout to 24 seconds (*10 fits in byte)
to account for slow loading from floppies.
(eb_create_inferior):  New fn, from eb_start and
nindy_create_inferior.
(eb_close):  Only use log_file if nonzero.
(eb_xfer_memory):  If not writing, then read!
(eb_read_inferior_memory, eb_write_inferior_memory):  Return length.
(eb_kill):  A new no-op.
(eb_mourn_inferior):  Remove breakpoints, then generically weep.
1991-12-14 04:18:45 +00:00
Fred Fish
619fd1455b Fix miscellaneous comparisons of integer with NULL that elicit compiler
warnings about comparisons of integer with pointer when NULL is defined
as ((void *) 0) rather than just a bare 0.
1991-12-14 00:13:05 +00:00
Roland Pesch
a9b4626ad9 More improvements in handling make from remote objdirs:
- remove inappropriate use of unsubdir (worked only accidentally)
 - make gdbVN.m4 generation work from remote objdir too;
 - fix bug in handling of readline appendices for roff translations
 - let GDB internals have the right val of TEXINPUTS for remote format, too
1991-12-13 21:26:18 +00:00
Roland Pesch
3f7458a40d Fix bug: gdbVN.m4 had stopped picking up version number. Now grabs it
again.  Verified for both Sun make and GNU make.
1991-12-13 19:46:42 +00:00
John Gilmore
ddf21240ab Improve how we ask for bug reports. 1991-12-13 17:48:06 +00:00
K. Richard Pixley
c466cfab84 infodir belongs in datadir 1991-12-11 04:15:50 +00:00
Roland Pesch
5f92dab820 Massage new readline appendix so texi2roff can understand markup
(text uses new @ftable command which texi2roff-2 doesn't grok)
for gdb.mm, gdb.me, gdb.ms targets
1991-12-10 02:42:26 +00:00
Roland Pesch
3e5afc2c5e Better support for building documentation targets in separate objdir
and srcdir (won't attempt to write in srcdir/doc).
1991-12-10 02:23:51 +00:00
Roland Pesch
088d39a498 rdl-apps.texi is no longer used, with the new improved doc Makefile.in. 1991-12-10 02:13:54 +00:00
Roland Pesch
cacf5942c4 Improve support for building in separate objdir (verified all individual
targets with each of GNU make and Sun make).
1991-12-10 01:21:48 +00:00
Michael Tiemann
7fb4dfc05d Integrated quick fixes to C++ handling of static member functions and
stub methods.  These changes are not complete in that a better
implementation will be more maintainable, but they make it possible to
debug groff with GDB.
1991-12-09 05:20:14 +00:00
Fred Fish
dda14b63ff Fix a problem on i386 systems where buffered code stream access was failing
to take into account the minimum size granularity of the code section.  For
now, the buffering is simply disabled until it can be done right.
There is still a similar problem in the i386 disassembly code for locations
within 20 bytes of the end of the code segment.
1991-12-08 02:24:21 +00:00
Fred Fish
e59622b438 Use macros to hide some of the ugly casting required in the previously
applied fix for pointers with the high bit set.
1991-12-08 02:17:29 +00:00
K. Richard Pixley
f7fde1e046 add a couple missing ${srcdir}s 1991-12-08 00:58:43 +00:00
John Gilmore
70fb2c9247 Set version to 4.3.1 so we won't mistake experimental for standard. 1991-12-08 00:51:08 +00:00
John Gilmore
66baba93a6 Merge gdb-4.3 and Rich's Makefile.in's. 1991-12-08 00:47:12 +00:00
John Gilmore
1bd0574a03 GDB-4.3 release! Roll VERSION and fixup minor gdb.tar.Z botch. 1991-12-08 00:41:23 +00:00
John Gilmore
5ea7c728db Merge Rich's overlapped changes with the gdb-4.3 version. 1991-12-08 00:38:56 +00:00
John Gilmore
4882e5dc98 Desupport i386sco, and mention the new readline. 1991-12-07 22:41:16 +00:00
John Gilmore
fbda4193fd Update for 4.3. 1991-12-07 15:52:36 +00:00
John Gilmore
1d0709e2a5 * gmalloc.c: Fix bug that causes malloc & free to
fail on systems where pointers have the high bit set (0x800efcf0
for example).  The problem is that the difference between two
pointers is a signed integer, so the computation

	(char *) 0x800efcf0 - (char *) 0

yields a negative value.  The sign of the result of the modulus
operator is machine dependent for negative operands, thus it is
possible for it to end up negative.  From Fred Fish.
1991-12-07 12:16:13 +00:00
K. Richard Pixley
93e17940c1 If you're going to nroff the man page, at least do it from the right place. 1991-12-07 08:54:17 +00:00
K. Richard Pixley
bc02876616 Sat Dec 7 00:00:15 1991 K. Richard Pixley (rich at rtl.cygnus.com)
* Makefile.in: install using INSTALL_PROGRAM and INSTALL_DATA.
	  added clean-info.  added some standards.text support and made it
	  look like our other Makefiles.

	* configure.in: mark this directory target dependent.  configure
	  now runs entirely in objdir so make existence tests and
	  references against ${srcdir}.

Thu Dec  5 22:46:13 1991  K. Richard Pixley  (rich at rtl.cygnus.com)

	* Makefile.in: idestdir and ddestdir go away.  Added copyrights
	  and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
	  and mandir now keyed off datadir by default.
1991-12-07 08:03:27 +00:00
K. Richard Pixley
570e17331e Fri Dec 6 23:57:34 1991 K. Richard Pixley (rich at rtl.cygnus.com)
* Makefile.in: remove spaces following hyphens, bsd make can't
	  cope.  install using INSTALL_DATA.  added clean-info.  added
	  standards.text support.

Thu Dec  5 22:46:12 1991  K. Richard Pixley  (rich at rtl.cygnus.com)

	* Makefile.in: idestdir and ddestdir go away.  Added copyrights
	  and shift gpl to v2.  Added ChangeLog if it didn't exist. docdir
	  and mandir now keyed off datadir by default.
1991-12-07 07:58:50 +00:00
Roland Pesch
29a2b7448c About 40% of changes sugg. by Bob Chassell 1991-12-07 04:19:03 +00:00
Roland Pesch
1c270bfdbf *** empty log message *** 1991-12-06 22:00:58 +00:00
Fred Fish
84ce6717b0 More fixes for opaque and anonymous enumerations, structures, and unions.
Now passes all current gdb test suite tests.
1991-12-06 19:51:01 +00:00
Fred Fish
5edf98d7a2 Fixes to improve opaque struct/union handling. Still fails to find the
complete definition for files outside the one containing the complete
definition, if that file has not yet been read in.  (Working on it...)
1991-12-06 16:37:20 +00:00
John Gilmore
7b2a87cab2 * symtab.c (decode_line_1): If SKIP_PROLOGUE leaves us in
mid-line, be more careful about possibly advancing to the next line.
1991-12-06 09:22:33 +00:00
Michael Tiemann
1cca172985 Fix off-by-one error in cplus name demangling. 1991-12-06 03:01:12 +00:00
Fred Fish
715cafcbde Several changes to fix misc problems with enums, structs, and unions,
including building symbol table entries for enumeration members.
1991-12-06 02:22:10 +00:00
John Gilmore
a0a6174ae3 * symtab.c (check_stub_method): Must allocate two extra argument
slots (one for `this', one for arglist terminator).
1991-12-06 01:32:34 +00:00
Fred Fish
817b8c46f8 Supply missing '"' character. 1991-12-05 19:34:08 +00:00
Fred Fish
c8d9eb8e43 Supply missing parenthesis (~line 1269). 1991-12-05 18:53:46 +00:00
John Gilmore
299ee4e6c7 Fencepost error in reporting regs we can't find in core file. 1991-12-05 12:20:18 +00:00
John Gilmore
2a5ec41d88 Fix things pointed up by Fred Fish's test suite; see ChangeLog. 1991-12-05 11:56:20 +00:00
Fred Fish
98618bf78a Arrange for enumeration members to be manipulated in source code order,
since they are stored in the Dwarf info in reverse order.
1991-12-05 05:09:20 +00:00
John Gilmore
3c7cc3b70e * main.c (input_from_terminal_p): Check whether GDB has a terminal at all.
(initialize_main):  Revise doc for `set editing'.
1991-12-05 02:26:45 +00:00
Fred Fish
8b5b6fae67 Handle structures and unions which contain DIE's other than just member
DIE's.
1991-12-04 23:40:07 +00:00
John Gilmore
6470e9c375 * symfile.c (reread_symbols): Avoid kludging mtime_set, now that BFD is fixed. 1991-12-04 09:59:52 +00:00
John Gilmore
34a160569a Improve installation doc slightly, by Mark Sirota's request. 1991-12-04 08:59:57 +00:00
John Gilmore
4369a1406f * Makefile.in: VERSION 4.2.96.
* main.c (initialize_main):  Revise command descriptions.
* command.c (show_user):  `info user' -> `show user'.
* symtab.c (_initialize_symtab):  Typo in `info types' desc.

* coffread.c (coff_symfile_read):  Avoid select_source_symtab,
since it is not needed and can cause errors when examining ".o"s.
(read_coff_symtab, decode_base_type):  Use complain, not printf.
Print symbol name, not its number.
Remove "#if defined(clipper) #define BELIEVE_PCC_PROMOTION", which
someday should go in a clipper target config file.

* symfile.c (compact_misc_function_vector):  Handle empty vector.
(complain, clear_complaints, syms_from_objfile):  Fix complaint
formatting.
* xcoffexec.c:  Change syms_from_objfile caller.
1991-12-04 08:36:17 +00:00
John Gilmore
7a6093e880 * coffread.c (coff_symfile_read): Avoid select_source_symtab,
since it is not needed and can cause errors when examining ".o"
files.

* symfile.c (compact_misc_function_vector):  Handle empty vector.
1991-12-04 03:24:36 +00:00
John Gilmore
2e00f40a38 Make it compile for cross-debugging. 1991-12-04 01:26:05 +00:00
Per Bothner
ce623b5fd1 Two small mips-specific fixes (see ChangeLog). 1991-12-02 19:08:31 +00:00
Steve Chamberlain
f5f0679af0 Changes due to include file renaming:
* xcoffread.c:	internalcoff.h	->coff/internal.c,
	  		coff-rs6000.h	->coff/rs6000.h
	* mipsread.c:	coff-mips.h	->coff/mips.h
	* elfread.c:    elf-common.h	->elf/common.h
			elf-external.h	->elf/external.h,
			elf-internal.h	->elf/internal.h
	* dwarfread.c	dwarf.h		->elf/dwarf.h
	* dbxread.c:	aout64.h	->aout/aout64.h
			stab.gnu.h	->aout/stab_gnu.h

	* coffread.c:   internalcoff.h	->coff/internal.h
	* buildsym.c:   stab.gnu.h	->aout/stab_gnu.h
	* depend        Updated to take the above into account.
1991-12-01 06:47:23 +00:00
Fred Fish
8978401fd1 Add new files mh-i386v4 and mt-i386v4 to .Sanitize, check in the new
files.
1991-11-30 04:49:48 +00:00
Fred Fish
9336ad7aea Initial revision 1991-11-30 04:49:47 +00:00
Fred Fish
8c6e9f05f2 Add tm-i386v4.h and xm-i386v4.h to Sanitize, add i386/SVR4 to configuration
file, recognize names beginning with '.' as compiler generated "fake" tags
for anonymous structures, unions and enums.  Add target dependent functions
for SVR4 /proc register interface (i386-tdep.c).
1991-11-30 04:46:50 +00:00
Fred Fish
3053b9f218 Change simple call to printf of error message to a call to error(). Output
was not getting flushed and was not being newline terminated.
1991-11-30 01:02:03 +00:00
Roland Pesch
4b195f9a30 *** empty log message *** 1991-11-30 00:06:36 +00:00
Roland Pesch
a6d0b6d30f (1) At Bob Chassell's request, remove leading comments that used to
survive M4 filtering but still tell people the original source was
M4'd;

(2) Also for B.C., include one more emphasis font in @colophon at end;

(3) Thanks to J Gilmore, strengthen wording about unsupported
combinations of host-manufacturer-OS in config Appendix.
1991-11-30 00:01:01 +00:00
John Gilmore
67c29f758d Make structs work on DECstation (sigh) 1991-11-28 00:51:48 +00:00
John Gilmore
52bd2c221f Fix syntax errors. 1991-11-27 23:32:47 +00:00
Michael Tiemann
a33336a38e readline/sysdep.h no longer exists, so main.o does not depend on it. 1991-11-27 12:22:35 +00:00
John Gilmore
f1d77e9053 Improve G++ debugging support. 1991-11-27 09:43:59 +00:00
Stu Grossman
605fe2b1b0 Add -lbsd to XM_CLIBS so that we get the right version of setpgrp. 1991-11-25 20:33:19 +00:00
John Gilmore
7130224967 * m2-exp.y (MAX, MIN): Rename to MAX_FUNC, MIN_FUNC to avoid
conflicts with system header files.
1991-11-23 05:26:22 +00:00
John Gilmore
378d8e737c Add some error checking around ioctl's for terminal switching. 1991-11-23 05:22:34 +00:00
John Gilmore
b68da3b817 No need to offset args from frame pointer. 1991-11-23 01:15:11 +00:00
John Gilmore
2dd074f421 VERSION 4.2.95 1991-11-22 22:50:28 +00:00
John Gilmore
2b61280ae6 Further cleanup for release. 1991-11-22 22:49:08 +00:00
John Gilmore
2fd5584884 Add warning and compiler override. 1991-11-22 22:48:20 +00:00
John Gilmore
3ae444f844 SCO lint. 1991-11-22 20:44:50 +00:00
John Gilmore
1a5a8f2a3e CLeanups to compile, mostly on BSD (okeeffe) and sco (kithrup). 1991-11-22 19:30:03 +00:00
John Gilmore
8013e17047 Lint 1991-11-22 16:28:05 +00:00
John Gilmore
3cb0d72dbf Roll new files into various lists. 1991-11-22 07:49:53 +00:00
John Gilmore
2e8521a929 Roll VERSION to 4.2.90. 1991-11-22 03:36:23 +00:00
Fred Fish
4cfd3c4990 Initialize the c++ specific portion of the type structure for union types
as well as struct types, since gdb attempts to reference that portion for
both types.  Was getting core dumps due to NULL pointer dereferencing.
1991-11-22 02:30:34 +00:00
John Gilmore
f7402c04fa * main.c: Use getcwd rather than getwd.
* standalone.c:  Fake getcwd rather than getwd.
* xm-*.h:  Remove fake values of MAXPATHLEN.
1991-11-22 01:29:29 +00:00
Stu Grossman
7b554a2875 hsuser.texinfo -> inc-hist.texi. 1991-11-22 00:36:55 +00:00
Stu Grossman
e9d98c95a5 Refer to new locations for readline doc. 1991-11-22 00:24:23 +00:00
John Gilmore
76b28d05a2 Add /* */ to #if 0'd thing to help ANSI. 1991-11-21 22:08:25 +00:00
John Gilmore
21f62bbd30 Remove more refs to removed files. 1991-11-21 21:15:57 +00:00
John Gilmore
3db0634cec * exec.c (exec_files_info): If `verbose' is set, show file offset as well. 1991-11-21 19:59:09 +00:00
John Gilmore
2eba358f6b Update for new files and changed include files. 1991-11-21 19:26:37 +00:00
John Gilmore
7d9884b927 * defs.h: Incorporate param.h. All users changed.
* param-no-tm.h:  Change users to define TM_FILE_OVERRIDE instead.
* param.h, param-no-tm.h:  Removed.
* Update copyrights in all changed files.
* dbxread.c, dwarfread.c, inflow.c, infrun.c, m2-exp.y, putenv.c,
solib.c, symtab.h, tm-umax.h, valprint.c:  Lint.
* tm-convex.h, tm-hp300hpux.h, tm-merlin.h, tm-sparc.h,
xm-merlin.h:  Avoid host include files in target descriptions.
* getpagesize.h:  Removed, libiberty copes now.
1991-11-21 18:42:05 +00:00
John Gilmore
d51bea8d2c Update checked-in copy for convenience. (FSF releases build their own.) 1991-11-21 14:57:44 +00:00
John Gilmore
49faf3b650 Remove rudimentary HP a.out support from GDB, move to ../include. 1991-11-21 04:02:27 +00:00
John Gilmore
44ff4c96a4 Cashier <a.out.gnu.h> 1991-11-21 03:59:14 +00:00
John Gilmore
f318d221a5 More *config stuff 1991-11-21 03:39:08 +00:00
John Gilmore
8cc1c08ffc tconfig and xconfig => config 1991-11-21 03:35:22 +00:00
John Gilmore
6cf7ab940a echo echo echo 1991-11-21 03:20:09 +00:00
John Gilmore
efde72f216 xconfig, tconfig ==> config 1991-11-21 03:19:37 +00:00
John Gilmore
2becda63fb Add rs/6000, merge xconfig and tconfig into config. 1991-11-21 03:12:25 +00:00
John Gilmore
f187c3a41a tconfig&xconfig => config 1991-11-21 03:08:51 +00:00
John Gilmore
3978d0599b Makefile fragments for various hosts and targets now come from
gdb/config/mh-* and gdb/config/mt-*.  This is for consistency with
other config setups.
1991-11-21 03:04:36 +00:00
John Gilmore
3d29576b5a For configure-able doc dir. 1991-11-21 02:44:53 +00:00
John Gilmore
6373dbe3d7 Clean up rs6000 opcode stuff. 1991-11-21 02:37:15 +00:00
Fred Fish
768be6e12b Recognize obsolete form of AT_element_list attribute still used by AT&T
compilers on one platform, and possibly more.
1991-11-20 13:07:12 +00:00
K. Richard Pixley
332523bfd3 add staging stuff 1991-11-20 03:49:05 +00:00
Fred Fish
0db97eedc1 Ignore names invented by helpful compilers for anonymous structs, unions,
and enums.
1991-11-20 00:20:43 +00:00
Fred Fish
d018c8a6e1 Add defines so that parsers produced by SVR4 versions of yacc can coexist
in the same executable without collision (c-exp.y, m2-exp.y).  Add forward
delaration of function returning pointer to shut up compiler warnings about
conversion of int to pointer (symtab.h).
1991-11-19 15:59:55 +00:00
John Gilmore
b9fd133061 Remove tdesc stuff and prettify. 1991-11-19 06:15:22 +00:00
Fred Fish
5129100c03 More inclusion of defs.h to before param.h, ala other source files.
This is required to supply some typedefs used in files included via
param.h.
1991-11-19 05:22:32 +00:00
Fred Fish
b6666a5d67 Add generic m68k function prologue skipping support and expand the
skipping to include movem and fmovem.
1991-11-19 01:54:52 +00:00
John Gilmore
5e2569e653 Remove tdesc stuff. 1991-11-19 00:50:06 +00:00
John Gilmore
db715c48de Rename tm-88k.h to tm-m88k.h 1991-11-19 00:47:14 +00:00
John Gilmore
1c86f18f53 Remove tdescs. 1991-11-19 00:45:03 +00:00
John Gilmore
e140f1dab1 Remove tdesc stuff. Remove FRAME_CHAIN_COMBINE from all tm-*.h files,
since it was always defined exactly the same in all of them.
1991-11-18 23:52:12 +00:00
Fred Fish
1a18a1856b Supply missing third arg to instance of call to do_type(). 1991-11-18 18:18:30 +00:00
Fred Fish
2d6186f4fa Changes to match new DWARF draft 5 version of include/dwarf.h. 1991-11-18 08:07:43 +00:00
Michael Tiemann
572acbbedc Make changes needed to handle code which uses ANSI-mangled names (and
new G++ 1.95 dbxout output).
1991-11-18 00:32:34 +00:00
Sean Eric Fagan
d671e293c3 Fixed a syntax error. 1991-11-16 07:24:23 +00:00
Stu Grossman
cd71911ed3 * mipsread.c (parse_partial_symbols): patch to keep DEC C
compiler from making gdb bomb out.  Thanks to Ed Santiago!
1991-11-16 02:00:50 +00:00
David Henkel-Wallace
5805020985 ansi name abuse changes 1991-11-15 23:23:11 +00:00
David Henkel-Wallace
4c53d9ca84 ansi name abuse changes 1991-11-15 23:16:29 +00:00
Fred Fish
5a5a3b0fb3 Add compact_misc_function_vector() to compact out duplicate entries in
the misc function vector.  See comments in the source for why this is
necessary.
1991-11-15 03:41:42 +00:00
Fred Fish
a7446af61b Changes to build misc function vector entries from canonical bfd symbol
table entries.
1991-11-15 03:36:45 +00:00
Roland Pesch
92b7379396 Two kinds of changes:
(1) repair refs to readline includes to use new shorter filenames
(2) provision for texi2roff conversion of doc via Makefile
    (new targets: gdb.mm, gdb.me, gdb.ms).
1991-11-15 00:58:33 +00:00
John Gilmore
653d6c56a1 Handle moves ahead of the stack pointer slide, for struct returning fns. 1991-11-14 22:15:41 +00:00
Steve Chamberlain
faa0da67ef Added delta88 1991-11-14 22:01:47 +00:00
John Gilmore
430923f3fa * m88k-tdep.c (examine_prologue): Deal with OR instructions
that shuffle parameters into other regs.
* symtab.c (decode_line_1):  Fix bug introduced in Per's change
of Nov 12th.
1991-11-14 21:20:12 +00:00
K. Richard Pixley
919de9a1af Rename them so that we can symlink them so that m4 can see them. 1991-11-14 09:26:26 +00:00
K. Richard Pixley
e92ee46965 added all-info and install-info targets 1991-11-14 08:54:39 +00:00
Steve Chamberlain
b98412e372 Uses <foo>.n as a temp file rather than <foo>.new so it doesn't go
over sysV's limit.
1991-11-14 03:58:08 +00:00
Steve Chamberlain
29e103320f Added M_INSTALL magic 1991-11-14 03:57:30 +00:00
Steve Chamberlain
a219b090a4 * Makefile.in, xconfig/delta88 made it install a sysV manual page;
gdb.z into the right place.
1991-11-14 03:57:05 +00:00
John Gilmore
57e69bb3c0 Handle alloca with fake routine. 1991-11-14 01:13:35 +00:00
John Gilmore
0724ed4f1f Post-tdesc working version, but with tdesc's not gone yet. 1991-11-14 01:12:24 +00:00
John Gilmore
ea3c08395c Motorola 88000 port without tears, I mean without tdescs.
ChangeLog has the details.  This is preliminary for quick release,
cleanups remain to be done.
1991-11-14 01:01:28 +00:00
John Gilmore
edbf28ce4c Add rudiments on frames. 1991-11-14 00:57:48 +00:00
K. Richard Pixley
50d2bb5b4c now handle doc subdir, too 1991-11-14 00:28:11 +00:00
K. Richard Pixley
b7becc8fc3 added info dir menu hooks 1991-11-14 00:26:43 +00:00
K. Richard Pixley
dc341d8b47 build and install info 1991-11-14 00:25:19 +00:00
Roland Pesch
37daba7b9f Minor rephrasing; probably an overfull-box correction for smallbook
formatting, not checked in earlier.
1991-11-14 00:08:39 +00:00
K. Richard Pixley
1eb988b989 joins the rest of the world 1991-11-13 20:35:19 +00:00
Sean Eric Fagan
127850e739 Ported to SCO's 3.2v2 system. 1991-11-13 04:13:38 +00:00
John Gilmore
cd56d31436 Forgot opcode files. 1991-11-13 04:00:22 +00:00
John Gilmore
19230be6ac xcoffread.c, tdesc-lib, and misc fixes. 1991-11-13 03:32:29 +00:00
Per Bothner
0e2a896cf5 Fixes related to handling of C++ methods (handle destructors
and parameters that are functions).
1991-11-12 22:20:02 +00:00
Steve Chamberlain
5f12485297 Added tdesc-lib 1991-11-12 21:50:02 +00:00
Fred Fish
58ae87f612 Remove internal gdb definition of fixed arg count concat() function and
convert to use of variable arg count concat() in libiberty.
1991-11-12 17:50:14 +00:00
Steve Chamberlain
ecb1b520de First cut 1991-11-12 17:34:33 +00:00
Steve Chamberlain
5d2d9ca629 Initial revision 1991-11-12 17:29:57 +00:00
John Gilmore
74f6fb084c * Makefile.in: Add xcoffread.c, xcoffexec.c.
* xcoffread.c:  New file for handling AIX mangled-coff files.
* xconfig/rs6000, tconfig/rs6000:  New files.
* buildsym.c:  Add hooks for xcoffread.c.
1991-11-12 15:54:27 +00:00
John Gilmore
41abdfbd2d * rs6000-pinsn.c, rs6000-tdep.c, rs6000-xdep.c, tm-rs6000.h,
xm-rs6000.h:  New files.
* xcoffexec.c:  New file for handling AIX shared libraries.
1991-11-12 15:50:47 +00:00
John Gilmore
37b637f3b7 Initial revision 1991-11-12 15:27:52 +00:00
John Gilmore
e38e0312fe New file. 1991-11-12 15:24:56 +00:00
Fred Fish
285b1325d9 Remove coredep.o from XDEPFILES. The fetch_core_registers() function is
now found in procfs.c for hosts with /proc support.
1991-11-12 03:26:13 +00:00
Fred Fish
fb18285098 Minor rewording of message containing name of program that generated a
core file (core.c), permanently remove the register_addr() stub (elfread.c),
move a misplaced #endif (procfs.c), and add fetch_core_registers func for
core file support (procfs.c).
1991-11-12 03:23:32 +00:00
Steve Chamberlain
35350222a8 Added MINUS_G flag, now debugging can be turned off 1991-11-11 19:23:24 +00:00
Fred Fish
b662efeddc Remove leftover call to do_cleanups() which resulted from a previous change.
Was being called with a random pointer.
1991-11-09 21:57:55 +00:00
Fred Fish
8aca810c2a Re-enable compilation of register_addr() stub whenever it is not supplied
by coredep.c, since it is referenced by fetch_core_registers().  This is
still a temporary kludge.
1991-11-09 21:43:47 +00:00
John Gilmore
19405dda98 Remove Rs/6000 changes (patch_block_stabs) so it will link without. 1991-11-09 11:16:47 +00:00
John Gilmore
1d82d3dcad More changes for objfiles. 1991-11-09 11:01:08 +00:00
John Gilmore
a048c8f537 Add tracking of object files (that contain symbols) to gdb.
This includes a "struct objfile" that owns symtabs and psymtabs
that were read in from that binary file.  See ChangeLog.
1991-11-09 10:50:07 +00:00
John Gilmore
c466820795 Lint and some rs/6000 port. 1991-11-09 07:45:36 +00:00
Roland Pesch
203eea5d62 Format improvements, mostly for @smallbook (including reformatted table
of config options).
1991-11-08 20:57:43 +00:00
Steve Chamberlain
c4a6d8f12a Remove spurious echo 1991-11-08 05:59:52 +00:00
Steve Chamberlain
b715d5b4aa * Makefile.in: link with libiberty after libreadline, since
readline might want something in libiberty.
1991-11-08 02:58:01 +00:00
Steve Chamberlain
b92c774e39 * m88k-xdep.c: Fixed the register offsets in the ptrace_user
struct for BCS 88k machines.
	* xm-m88k.h: don't define USIZE if already defined.
	* configure.in: Added delta88 target.
1991-11-08 02:28:35 +00:00
Steve Chamberlain
12f2fd9f1f Fixed S?IP_OFFSETs for the Motorola Delta 88. 1991-11-08 02:22:46 +00:00
Steve Chamberlain
8c7ae4a273 Added delta88 cases 1991-11-08 02:20:29 +00:00
Steve Chamberlain
de94d3dadc #ifndef USIZE
around #define USIZE
1991-11-08 02:18:49 +00:00
Steve Chamberlain
557f4de774 Include coff-m88k.h rather than m88kbcs.h 1991-11-08 02:17:43 +00:00
John Gilmore
1bf068b8a0 Fix decoding of mtacc, dmac, fmac. These files should really get merged
with the ones in BFD and the assembler, but c'est la vie.
1991-11-08 01:50:51 +00:00
K. Richard Pixley
02f25e46a6 fixed for objdir/subdirs 1991-11-08 00:54:27 +00:00
John Gilmore
fbcb509562 * tm-*.h: Remove READ_DBX_FORMAT, COFF_FORMAT, and
READ_MIPS_FORMAT, which have been unused since BFD.  Still
remaining is COFF_NO_LONG_FILE_NAMES.
* tm-sun3.h, tm-altos.h:  Remove detritus accidentally left from
function calling code moved to m68k-tdep.c.
1991-11-07 13:14:59 +00:00
John Gilmore
e64fbb3aa7 * coffread.c: Eliminate c_nsyms in favor of c_naux.
Complain if no auxents on .bf and .ef FCN symbols, and assume
lots of line numbers.
(init_linenos, enter_linenos):  Use a sentinel at the end of the
read-in linenos, to make for a fast, safe loop-end test.
1991-11-07 01:27:46 +00:00
Steve Chamberlain
f9da0d6713 Added gdb.1 1991-11-06 09:24:57 +00:00
Steve Chamberlain
0aaa124f3e * Makefile.in: put a - infront of the mv y.tab.c c-exp.tab.c and
mv y.tab.c m2-exp.tab.c, so that if bison is used, and the files
	are created in place, so the mv fails, then the make continues.
1991-11-06 06:49:20 +00:00
Roland Pesch
c1d43aa230 Correction in intro text re corefile arg (may also be procID); second time
around didn't ack two possibilities.
1991-11-06 01:22:44 +00:00
Per Bothner
545af6ce07 Add C++ as a separate language.
Also, fix a C++ problem when looking for methods in super-classes.
(There was confusion between base and derived types.)
1991-11-06 01:08:21 +00:00
Roland Pesch
4906534f1f Record (as comments) three FIXMEs. 1991-11-06 00:36:08 +00:00