Commit graph

1224 commits

Author SHA1 Message Date
Stu Grossman
6f7709b765 Default dir_so_symnum to -10 to avoid even the slightest possibility of
screwage.  This is a continuation of the redundant SO record fixup for the
Lucid C++ compiler.
1992-06-26 03:55:28 +00:00
Stu Grossman
c31921729f Fixup PRSVADDR problem as per Johns suggestions. 1992-06-26 03:49:00 +00:00
Stu Grossman
bf18ac8007 * dbxread.c (dbx_symfile_init): Move more code under hp9000s800
conditional.
* hppabsd-core.c:  Don't include "param.h", include <sys/param.h>
instead.
* remote.c (remote_wait):  Cast signal to void * to avoid warning
from busted HP compiler.
1992-06-25 23:02:57 +00:00
Roland Pesch
d98a0a4462 Catch up Cygnus-logo version of GDB refcard with last few changes to
FSF version:
  - threecol.tex now embedded, not separate file
  - folding guides
  - "gdb --help" recommended rather than "gdb -help"
1992-06-25 22:58:28 +00:00
Stu Grossman
cf79373a10 * partial-stab.h (N_SO): Rearrange code a little so that all SO
stabs cause end_psymtab to be called.
1992-06-25 22:46:04 +00:00
Stu Grossman
50a11e4933 * buildsym.c (read_sun_builtin_type): Handle new FCS Sun CC
compiler feature of putting 'c' into basic type descriptors for
all forms of char.
1992-06-25 22:35:09 +00:00
Stu Grossman
99fd9e3ee6 * procfs.c (child_resume): Work around Solaris (on Sparc) lossage
where there is no place for nPC in prrun struct.
1992-06-25 22:22:40 +00:00
Fred Fish
50e0dc4198 * mipsread.c: Pass NULL name pointer to init_type, not 0.
* gdbtypes.c (init_type):  Use copy of typename on type_obstack.
	* dwarfread.c (enum_type):  Save enum names on type_obstack.
	* dwarfread.c (struct_type):  Save member name on type_obstack.
	* symtab.c (_initialize_symtab):  Fix misspelling.
	* regex.c (store_jump, insert_jump):  Return void.
1992-06-25 19:10:49 +00:00
John Gilmore
debd34438d * defs.h (PARAMS): Move to ../include/ansidecl.h.
(alloca):  Declare return type on SPARC, since Sun doesn't.
(*_BYTE_ORDER):  Improve comment:  *must* be defined.
1992-06-25 11:50:31 +00:00
John Gilmore
5140562f37 * tm-hppa.h: New file, architectural definition of HP PA.
* tm-hppabsd.h, tm-hppahpux.h:  Shrink to deltas from tm-hppa.h.

* am29k-pinsn.c, am29k-tdep.c, copying.awk, copying.c,
hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, remote-udi.c,
ser-go32.c, xcoffsolib.c:  Remove <stdio.h> which is already in
"defs.h".

* hppa-coredep.c, hppa-pinsn.c, hppabsd-core.c, hppabsd-tdep.c,
hppabsd-xdep.c, hppahpux-tdep.c, hppahpux-xdep.c, xcoffsolib.c,
xcoffsolib.h, xm-go32.h, xm-hppabsd.h, xm-hppahpux.h:  Copyrights.
1992-06-25 11:15:47 +00:00
John Gilmore
4d38b5a85a * printcmd.c (output_command): Thinko.
(x_command):  Only set remembered size/format if cmd succeeds.
1992-06-25 10:58:53 +00:00
Roland Pesch
84c2fcadfc Fix typo (place where GDB name was not given as _GDBN__). 1992-06-24 20:55:36 +00:00
Roland Pesch
6f3ec223dc Added doc for command-line completion, incl new FNF support for quoted strings
w/C++ overloaded fns.
1992-06-24 20:45:53 +00:00
John Gilmore
fef9f55c2b * dbxread.c (read_ofile_symtab): Remove N_CATCH special case,
since it is no longer used and burns time for every symbol read.
(process_one_symbol):  Treat N_CATCH like default (complain).
1992-06-24 19:58:57 +00:00
Stu Grossman
369172bbb3 * partial-stab.h (case N_TEXT): Fix fencepost error when
detecting start of new symbol info after reading symtab for a
module with a zero length TEXT segment.
(Note that this fixes the BNR problem with printing vxWorksVersion.  That ought
to make Ken happy).
1992-06-24 07:31:55 +00:00
Fred Fish
b4cc55b533 * valprint.c (val_print_fields): Call fprint_symbol to get
automatic C++ demangling for mangled field names.
1992-06-24 06:24:51 +00:00
Fred Fish
f54e9fd84f * cadillac.c (kernel_dispatch): Make return type void.
* cadillac.c (iosig):  Signal handlers take one int arg.
1992-06-24 05:52:01 +00:00
Fred Fish
e676a15f0b * Makefile.in (VERSION): Bump to 4.5.6.
* coffread.c (coff_end_symtab):  Cast 2nd arg of complain() to
	correct type.
	* defs.h (NORETURN):  Define away for Lucid compiler.
	* remote.c (remote_timer, remote_interrupt):  Signal handlers
	take one int arg.
	* ser-termios.c (serial_write, serial_close):  Return whatever
	value the write/close call returns, rather than falling off end.
	* inferior.h (PTRACE_ARG3_TYPE):  Third arg to ptrace is int on
	more systems than it is "char *".  Define PTRACE_ARG3_TYPE to
	default to int.
	* infptrace.c, hppabsd-xdep.c, hppahpux-xdep.c, i386-xdep.c,
	inferior.h (call_ptrace):  Use PTRACE_ARG3_TYPE to declare type
	of third arg.
	* a68v-xdep.c, arm-xdep.c, convex-xdep.c, hp300ux-xdep.c, infrun.c,
	m88k-xdep.c, mach386-xdep.c, mips-xdep.c, os68k-xdep.c, pyr-tdep.c,
	pyr-xdep.c, rs6000-xdep.c, sparc-xdep.c, sun3-xdep.c, sun386-xdep.c,
	symm-xdep.c, ultra3-xdep.c:  Use PTRACE_ARG3_TYPE to cast ptrace
	argument 3.
	* sparc-xdep.c, a68v-xdep.c (fetch_inferior_registers,
	store_inferior_registers): Supply missing fourth argument to
	ptrace().
1992-06-24 04:49:48 +00:00
Roland Pesch
0fd24984ce Minor cleanup for better smallbook formatting w/default FSF style. 1992-06-24 01:17:24 +00:00
Roland Pesch
6a8cb0e75c (1) removed three-part table of config name components from Installing
appendix (too hard to maintain, esp w/recent versions of config.sub).
    Also corrected xref to this section accordingly.
(2) updated sample output from config.sub to match latest variation of
    that script
(3) minor editing to gnu contrib text on set/show remotedebug
1992-06-24 00:15:44 +00:00
Fred Fish
0c2aab7872 Fix patch fragment for ncr3000.mh to find the file in the config dir. 1992-06-23 20:33:39 +00:00
Fred Fish
710249ebc9 Add patch to Makefile.in to default the demangling style to ARM/Lucid instead
of gcc style.

Remove the mipsread.c patch fragment that added #include <strings.h>.  It
is unnecessary, and causes compile failures on NCR/SVR4.
1992-06-23 20:18:21 +00:00
Roland Pesch
03a77779da Minor edits to new GNU material on special commands for AMD29K register
stack limit.
1992-06-23 18:38:57 +00:00
Per Bothner
c19f73f1a2 Add tm-linux.h and xm-linux.h. 1992-06-23 06:26:00 +00:00
Per Bothner
71da9fdc59 Add linux.mh and linux.mt. 1992-06-23 06:24:22 +00:00
Stu Grossman
4edaf074ad Call setsid() when establishing new controlling terminal. 1992-06-23 06:21:14 +00:00
Stu Grossman
c472d8709f Fixup patch for .Sanitize to not remove cadillac.c. 1992-06-23 05:05:15 +00:00
Stu Grossman
53a75176da Oops, retract last patch... Belongs in cadillac-patches. 1992-06-23 05:03:32 +00:00
Stu Grossman
3c170cf7eb Fixup patch for ncr3000.h -> config/ncr3000.h 1992-06-23 05:00:37 +00:00
Stu Grossman
acd245b4a7 Add patch for .Sanitize file. 1992-06-23 04:51:32 +00:00
Stu Grossman
37e4214cbd Create new patch file to convert normal (mundane) GDB into SUPER-ENERGIZE GDB! 1992-06-23 04:43:33 +00:00
Stu Grossman
671603ffa8 * Centralize all Cadillac interface defs into defs.h.
* Use prototypes for all interface routines (fix bugs found as a result of
  doing so).
* Make full_filename more robust in the face of null dirname/filenames.
* Get pty at startup instead of at child creation time.  Put GDB descriptors
  0, 1 and 2 on it so that we can see the output of shell commands.
* Get rid of prompt(), use print_prompt() instead.  Fixes loads of stupid
  prompting problems.
1992-06-23 04:31:56 +00:00
Fred Fish
0efe20a642 * command.c (add_abbrev_prefix_cmd): Fix misspelling in comment.
* dwarfread.c (enum_type):  Fix misspelling in comment.
	* valprint.c (val_print_fields, cplus_val_print):  Minor
	adjustment to printing of C++ class structures to more closely
	match format for printing C structures, with and without setting
	pretty print.
1992-06-23 03:33:47 +00:00
Per Bothner
e37a6e9c8a * infrun.c (wait_for_inferior): Don't test for SIGEMT
(which is not a Posix signal) if it isn't defined.
	* tm-linux.h, xm-linux.h, config/linux.m[ht], configure.in:
	New port to Linux (a free Unix clone for 386 machines).
1992-06-23 00:25:11 +00:00
Per Bothner
defb51a722 New port to Linux (a free Unix clone for 386 machines). 1992-06-23 00:23:22 +00:00
John Gilmore
28df0c3e2d (find_source_lines): Handle large st_size fields. 1992-06-21 03:09:18 +00:00
John Gilmore
f70be3e45a COFF changes for dealing better with EPI 29K C compiler output.
* coffread.c (record_minimal_symbol):  Pass the minsym type to it.
Callers changed.
(coff_end_symtab):  Sort blocks if needed.  Complain if misordered.
(read_coff_symtab):  Move patch_opaque_types call from
coff_symfile_read.  Restrict it to symtabs from this objfile.
(process_coff_symbol: C_TPDEF):  Don't put ordinary foward
references on opaque type chain; just let coff_lookup_type handle 'em.
(decode_type):  Complain about tagndx values on
non-struct/union/enum types, which the EPI compiler tends to produce.

* symtab.c (list_symbols):  Make minimal symbol variable-finding work.

* tm-68k.h (FIX_CALL_DUMMY): Avoid alignment and byte order
dependency.

* elfread.c (elf_symfile_read):  Update bfd_elf_find_section
usage to match new prototype.  Include libbfd.h to get prototype.
1992-06-21 02:20:30 +00:00
John Gilmore
0cc37e2948 Typo. 1992-06-21 01:56:05 +00:00
John Gilmore
d8a68b2844 * gdb.texinfo: document set remotedebug' and set rstack_high_address'. 1992-06-20 23:32:18 +00:00
Fred Fish
b4fde6fa65 * infcmd.c (jump_command): Use cleanups to avoid memory leaks.
* stack.c (return_command):  Use cleanups to avoid memory leaks.
1992-06-20 23:30:33 +00:00
John Gilmore
e95bfbf19c * remote-adapt.c, remote-eb.c, remote-mm.c: Lint. Fix
INT_REGNUM to INTE_REGNUM.
* tm-29k.h (SDB_REG_TO_REGNUM):  Add for EPI 29K C compiler.
1992-06-20 03:42:14 +00:00
Stu Grossman
76b731f9ae HPPA BS 1992-06-20 01:00:46 +00:00
Stu Grossman
39140ed22b HPPA merge. 1992-06-19 22:48:09 +00:00
Stu Grossman
7da1e27dd4 * configure.in, dbxread.c, hppa-coredep.c, hppa-pinsn.c,
hppabsd-core.c, hppabsd-tdep.c, hppabsd-xdep.c, hppahpux-tdep.c,
hppahpux-xdep.c, munch, partial-stab.h, tm-hppabsd.h,
tm-hppahpux.h, xm-hppabsd.h, xm-hppahpux.h:  HPPA merge.
1992-06-19 22:43:49 +00:00
Stu Grossman
9aa448333d * Makefile.in (c-exp.tab.c, m2-exp.tab.c): Filter out bogus extern
declarations of malloc/realloc/free that are inserted by some
versions of yacc.
* m2-exp.y:  Prevent conflicts with TRUE and FALSE tokens by
#undeffing them.
* xm-rs6000.h:  Declare malloc/realloc/free appropriately.  Yet
another decl of strdup (this really ought to come from libiberty.h!).
1992-06-19 22:39:44 +00:00
John Gilmore
8f86a4e465 * remote.c (getpkt): Error if input exceeds buffer size.
(_initialize_remote):  `set remotedebug' enables packet trace.

* dbxread.c (process_one_symbol:N_FUN):  GCC now produces relative
N_SLINE's, etc, just like Sun cc on Solaris2.

* am29k-tdep.c (read_register_stack, write_register_stack):
Change RSTACK_HIGH_ADDR to rstack_high_address, a user-settable
variable.  Add `set' and `show' commands for it.
* doc/gdb.texinfo:  Document it.

* eval.c:  Avoid residue-by-zero when evaluating without side effects.
(Bug and fix found by Pierre Willard.)

* sparc-tdep.c:  Clean up slightly for Solaris2.
1992-06-19 21:09:54 +00:00
Fred Fish
4341615d92 * valprint.c (type_print_1): Plug memory leak. Print all
C++ syms as demangled, not just functions.
 	* buildsym.c (read_range_type):  When we find a signed char
 	type, do a lookup of signed char, not plain char.  Plain char's
 	still get looked up as plain char's elsewhere.
1992-06-19 02:43:22 +00:00
Stu Grossman
7634ebc804 * xm-rs6000.h: Fix decls for malloc, realloc, and free. 1992-06-18 00:10:11 +00:00
Stu Grossman
abde386585 * tm-rs6000.h: Remove #include of inferior.h. Fixes many
compilation errors.
1992-06-17 23:57:40 +00:00
Stu Grossman
826f73d0cf * xm-rs6000.h: Add decl for strdup(). 1992-06-17 23:56:30 +00:00