Commit Graph

1196 Commits

Author SHA1 Message Date
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
Stu Grossman
65c36045d3 * xm-rs6000.h: Remove #include of inferior.h. Fixes many
compilation errors.
1992-06-17 23:44:37 +00:00
Stu Grossman
423e96646b * breakpoint.c (enable_command, disable_command): Without args,
should only affect normal breakpoints and watchpoints.
1992-06-17 21:53:28 +00:00
Stu Grossman
2304d9a5f1 * m68k-pinsn.c (print_insn_arg): Make register be const. 1992-06-17 20:24:32 +00:00
Stu Grossman
427d778c2c * xcoffexec.c: Remove ' from comment.
* xm-sun3os4.h:  Define MALLOC_INCOMPATIBLE to avoid conflicts
with decls of malloc in c-exp.tab.c (as produced by yacc).
There's got to be a better way to do this...
1992-06-17 20:15:03 +00:00
Fred Fish
323227fefa * partial-stab.h: Convert single rindex use to strrchr.
* mipsread.c, dbxread.c:  Remove troublesome inclusion of non-
	standard <strings.h> file, now that the only single use of
	rindex in the gdb source files is gone.
1992-06-17 18:14:22 +00:00
Fred Fish
fa0bcaa3a5 * mipsread.c: Undo ill effects from including <strings.h>,
which #defines index to be strchr.  Unfortunately, index is
	a member of a symbol table structure that can't be changed.
	* mipsread.c:  tm-mips.h includes coff/symconst.h and coff/sym.h,
	remove redundant #include's.
1992-06-17 05:23:00 +00:00
Stu Grossman
b50a958c14 Add demangle.h to HFILES. 1992-06-16 23:15:05 +00:00
Stu Grossman
33cf356ae1 Unscrew this file... (Been up too long I think...) 1992-06-16 23:14:01 +00:00
Stu Grossman
fa33785d13 Keep sun4sol2.m{th}. 1992-06-16 22:47:40 +00:00
Stu Grossman
5c0445593a Keep tm-sun4sol2.h and xm-sun4sol2.h. 1992-06-16 22:46:45 +00:00
Stu Grossman
933e7c9c8d More 29k crap to remove! 1992-06-16 22:39:37 +00:00
Stu Grossman
93c6c6c190 One mo time... 1992-06-16 22:37:12 +00:00
Stu Grossman
d941d8c341 Fixup install.all target so that install-texinfo can be removed properly by GDB
packaging procedures.
1992-06-16 22:36:08 +00:00
Stu Grossman
09fc8ec35a Remove 29k/UDI stuff for now. For the time being, the original Makefile is
called Makefile.in-29k-UDI.
1992-06-16 21:58:53 +00:00
Stu Grossman
b98f3e2098 Save Makefile with 29k stuff for later. 1992-06-16 21:56:24 +00:00
Stu Grossman
09fd6b7778 Remove 29k/UDI for now. 1992-06-16 21:45:01 +00:00
Stu Grossman
b303297ad8 * mipsread.c: #include <strings.h> for rindex(). 1992-06-16 21:17:43 +00:00
Fred Fish
d1140eb5e3 * xcoffexec.c (map_vmap): Turn comment into a real C comment. 1992-06-16 16:03:54 +00:00
Stu Grossman
c72af08913 * dbxread.c (process_one_symbol), partial-stab.h: Ignore
extraneous SO stabs from busted C++ compilers.
1992-06-16 01:43:35 +00:00
Fred Fish
4c07f28d77 * Makefile.in (VERSION): Bump to 4.5.5.
* symtab.c (decode_line_1):  Until C++ support stabilizes, when
	C++ lookups fail, print possibly helpful hint about completion.
	* cplus-dem.c (demangle_signature):  Fix ARM style demangling
	for static data members.
	* dbxread.c (dbx_psymtab_to_symtab_1):  Fix prototype.
	* config/ncr3000.mh (INSTALL):  Don't use /usr/ucb/install,
	it's broken on ncr3000's.
1992-06-15 19:25:13 +00:00
Fred Fish
1c92ca6f3b * dwarfread.c (decode_modified_type): Change type of first arg.
Change 'modifier' to char from unsigned char.  Cast single use
that needs to be unsigned char.
* symtab.h (SYMBOL_BASEREG_VALID):  Explain disabling.
* utils.c (strdup_demangled):  Add function.
* defs.h (strdup_demangled):  Add prototype.
* stack.c (return_command):  Demangle C++ function names for query.
* infcmd.c (jump_command):  Demangle C++ function names for query.
* cplus-dem.c (consume_count):  New function and prototype.
* cplus-dem.c (demangle_class, gnu_special, demangle_func_type,
do_type):  Replace conversion code with consume_count().
* cplus-dem.c (gnu_special):  Fix demangled of static members.
* source.c (list_command):  Print demangled function names
when appropriate.  Fix supplied by Peter Schauer.
1992-06-15 14:26:57 +00:00
John Gilmore
2778e91584 * buildsym.c (define_symbol): Nameless types are now on several
platforms; generalize them and un-ifdef them to make Solaris 2
work.
1992-06-15 08:47:56 +00:00
John Gilmore
d69bba12b8 * infcmd.c: Fix typo (reported by Rob Savoye).
* xm-sun4sol2.h (gregset_t):  Thinko in register set definition.
* symtab.h:  Disable SYMBOL_BASEREG_VALID until it works.
* dbxread.c (dbx_psymtab_to_symtab_1):  Renamed from
psymtab_to_symtab_1.  Use current psymtab's sym_offset and symbol_size,
rather than the one for the first file in the dependency chain.
1992-06-15 08:42:09 +00:00
John Gilmore
bcbf95597c * dbxread.c (end_psymtab): Only reset texthigh if it's not already
set.  Don't reset our own texthigh, or dependency-only pst's, in
scanning all the rest of the psymtabs.
(process_one_symbol):  Fix comments around N_OBJ, N_OPT, N_UNDF.

* buildsym.h (N_UNDF):  Improve comments.
(N_LSYM, etc):  Skip types without names (":T(0,3)=sfoob...").
1992-06-14 18:10:10 +00:00
Fred Fish
252f6c65f2 * symtab.h (struct symbol): Add aux_value union for preserving
an additional per-symbol value.
* symtab.h (SYMBOL_BASEREG, SYMBOL_BASEREG_VALID):  Add defines.
* frame.h (FRAME_GET_BASEREG_VALUE):  Provide default definition.
* findvar.c (read_var_value):  Use SYMBOL_BASEREG if valid.
* printcmd.c (address_info):  Use SYMBOL_BASEREG if valid.
* symmisc.c (print_symbol):  Use SYMBOL_BASEREG if valid.
1992-06-13 18:20:44 +00:00
Michael Tiemann
a6b46ad4de Make `clear_symtab_users_once' non-static so objfiles can be linked. 1992-06-13 16:20:04 +00:00
John Gilmore
346168a2c6 * elfread.c (record_minimal_symbol_and_info): Kludged to put
extra info in the minimal symbol.
(elf_symtab_read):  The extra info is the size of an ELF object,
which was kludged to us in the `udata' field of the BFD symbol.
Gag me with a crowbar...
(elf_symfile_read):  Keep track of both the absolute load address,
and the offset between load addr and symbols.  Handle STABS as
well as DWARF sections, passing the absolute load address to
elfstab_build_psymtabs.

* objfiles.c (free_objfile):  Eliminate storage leaks.  Contributed
by <Peter.Schauer@regent.e-technik.tu-muenchen.dbp.de>.
* symfile.c (symfile_bfd_open):  Comment where name is freed.
* symmisc.c (extend_psymbol_list):  Comment where list is freed.
1992-06-13 07:24:30 +00:00
John Gilmore
9342ecb944 * dbxread.c: Add symbol_size to struct dbx_symfile_info.
Add symbol_size and file offsets to struct symloc.
Add static symbol_table_offset, string_table_offset,
file_string_table_offset, next_file_string_table_offset,
last_function_name.
(add_old_header_file):  Convert error() to complain()t.
(dbx_symfile_read):  Get symbol size via the objfile.
Also get symbol_table_offset.
(dbx_symfile_init):  Record symbol size and count via the objfile.
(dbx_next_symbol_text):  Always add file_string_table_offset when
accessing string table.
(read_dbx_symtab):  Initialize file_string_table_offset to 0.
(SET_NAMESTRING):  Use the offset.
(end_psymtab):  Large kludge to determine addresses where source
files start and end (for the psymtab header).
(psymtab_to_symtab_1):  Set file_string_table_offset before reading.
Get this, symbol size, and symbol offset, from psymtab.
(read_ofile_symtab):  Don't back up one symbol for Solaris2.
Patch up last_source_start_addr if zero in N_SO.
(process_one_symbol):  Add variable function_start_offset.
( "", N_FUN, N_LBRAC, N_RBRAC, N_SLINE):  Add ifdef for
BLOCK_ADDRESS_FUNCTION_RELATIVE.
( "", N_OBJ, N_OPT):  Ignore.
(elfstab_build_psymtabs):  New function to read stabs out of
an ELF file.

* Makefile.in:  Accept $(BISON) even though we really want $(YACC).
(gdb):  use GLOBAL_CFLAGS when linking, too.
* partial-stab.h (N_UNDF):  Deal with Sol2 relative stringtab offsets.
(N_OBJ, N_OPT):  Ignore.
('f', 'F'):  Save last function name.

* symfile.h:  Prototype elfstab_build_psymtabs.
* symfile.c:  Add almost-OK debug versions of add_psymbol_*to_list.

* xm-sysv4.h:  Add <limits.h> to avoid conflicting defns in defs.h.
1992-06-13 06:39:27 +00:00