Commit Graph

1300 Commits

Author SHA1 Message Date
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
John Gilmore 609f87d4c9 Remove reg_names decl (now in defs.h). 1992-06-13 06:08:09 +00:00
John Gilmore 0dce456e8d Lint 1992-06-13 05:56:15 +00:00
John Gilmore 93297ea028 * buildsym.h: Add processing_acc_compilation flag.
* buildsym.c (read_sun_builtin_type, read_sun_floating_type):  New.
(define_symbol):  Skip arg types in function entries.  Resolve
overloaded 'P' which acc uses for prototypes of functions called
by this file.
(read_type: 'b', 'r'):  Handle Solaris2 builtin types.

* minsyms.c (prim_record_minimal_symbol_and_info):  Hack to
save size of ELF symbols.  FIXME.
* tm-sun4os5.h:  Rename to tm-sun4sol2.h.  Update defines for Sol2.
* xm-sun4os5.h:  Rename to xm-sun4sol2.h.  Hack more defines.

* config/sun4os5.m[ht]:  Rename to config/sun4sol2.m[ht]; new xm, tm.
1992-06-13 02:18:44 +00:00
John Gilmore bf2e5f6b82 * configure.in: Solaris config is sparc-sun-solaris2.
* config/sun4os5.m[ht]:  Rename to config/sun4sol2.m[ht].
1992-06-13 01:56:41 +00:00
Fred Fish 6b53bf346d * expprint.c (print_subexp): Add missing ']'.
* defs.h (reg_names):  Fix declaration to match that in infcmd.c
	* stack.c (reg_names):  Delete redundant (and inconsistent) decl.
	* WHATS.NEW:  Point out improved C++ function name handling.
	* gdbtypes.c (lookup_fundamental_type):  For now, use the same
	type names for both implicitly and explicitly signed integral
	types.  See comment in the source code.
1992-06-12 20:51:42 +00:00
John Gilmore 28de880c48 Two `long long' fixes from Robert R. Henry (rrh@dino.tera.com):
* defs.h (longest_to_int):  Avoid void arm of ?: in error case.
* expprint.c (print_subexp):  Fix printing of register names.
1992-06-11 19:34:56 +00:00
Stu Grossman d1dc824fa9 Latest and greatest, many bug fixes, value annotations, stack frame
annotations, etc...
1992-06-11 17:35:58 +00:00
John Gilmore 1304f099bc Small changes from Solaris port. The big stuff is not all working yet.
* inferior.h (register_valid):  Declare.
* remote-udi.c, rs6000-xdep.c, sparc-xdep.c, tm-rs6000.h:  Remove decl.
* objfiles.h (ALL_OBJFILE_{SYMTABS,PSYMTABS,MSYMBOLS}):  Add
macros for traversing the data structures in a single objfile.
* tm-m88k.h, tm-sparc.h (REGISTER_NAMES):  Remove extra semicolon.
* tm-i960.h (REGISTER_NAMES):  Cosmetic change.
* infcmd.c:  Lint.
1992-06-11 08:43:29 +00:00
Fred Fish 36ce1b6469 * c-exp.y, m2-exp.y: Move remapping defines for malloc and
realloc.  Add remapping defines for {yyss, yyssp, yyvs, yyvsp}.
	* config/{amix.mh, i386v4.mh, ncr3000.mh, stratus.mh,
	sun4os5.mh}:  Add definition for INSTALL using /usr/ucb/install.
1992-06-10 02:05:20 +00:00
Stu Grossman cc0d9de867 Oops, forgot depend! 1992-06-09 23:33:27 +00:00
Stu Grossman 55488e9ea6 * depend: rebuild to account for remote-st2000.c.
* remote-st2000.c:  Almost works now.
* tm-st2000.h:  Need to turn on HAVE_68881, else things won't compile.
1992-06-09 23:31:53 +00:00
Fred Fish d630b6150e * c-exp.y (yylex): Recognize single-quoted strings that specify
tokens with embedded whitespace, such as C++ demangled names.
	* defs.h (demangle_and_match, strcmp_iw, skip_quoted):  Prototypes.
	* main.c (gdb_completer_quote_characters):  Add global variable.
	* main.c (symbol_completion_function):  Total rewrite for C++
	demangled name handling.
	* main.c (skip_quoted):  New function.
	* main.c (main):  Set rl_completer_quote_characters.
	* symmisc.c (dump_symtab):  Print source language for symtab.
	* symtab.c (expensive_mangler):  Add prototype and function.
	* symtab.c (completion_list_add_symbol):  Total rewrite for new
	C++ demangled name handling.
	* symtab.c (lookup_symbol): Check for demangled C++ symbol first,
	other changes for demangled C++ symbol handling.
	* symtab.c (lookup_demangled_block_symbol):  Use demangle_and_match.
	* symtab.c (lookup_demangled_partial_symbol):  Use demangle_and_match.
	* symtab.c (decode_line_1):  Recognize C++ demangled names on input.
	* symtab.c (completion_list_add_symbol):  Total rewrite for new
	C++ demangled name handling.
	* symtab.c (expensive_mangler):  New function.
	* utils.c (strcmp_iw, demangle_and_match):  New functions.
	* xcoffread.c (aixcoff_symfile_read):  Fix prototype.
1992-06-09 06:09:33 +00:00
John Gilmore d9915ebc47 * Makefile.in: Roll VERSION to 4.5.4.
* Makefile.in, config/*.mh, config/*.mt:  Rename TM_CFLAGS
to MT_CFLAGS, XM_CFLAGS to MH_CFLAGS to match file names.
* config/sun4os5.mh:  Add MH_CFLAGS=-xs to save debug info.
1992-06-09 05:10:15 +00:00
John Gilmore 717b47f482 Typo 1992-06-09 02:38:11 +00:00
Stu Grossman e8a3827836 See gdb/Changelog for details. 1992-06-08 21:35:27 +00:00
Stu Grossman 0eafa897a9 * alldeps.mak: Rebuild to account for new files.
* config/st2000.mt:  Use tm-st2000.h, not tm-68k.h.
* tm-st2000.h:  New file.
1992-06-08 21:35:05 +00:00
Stu Grossman 88cc9a3621 * configure.in: Tandem debug monitor (st2000) support.
* remote-st2000.c, config/st2000.mt:  ditto.
1992-06-08 21:21:59 +00:00
Stu Grossman cb635d8719 See gdb/Changelog for details 1992-06-08 21:16:44 +00:00
John Gilmore 6f8db23aef * blockframe.c (inside_entry_file, inside_main_func,
inside_entry_func):  Return 0 if no symbols; avoid crashing.
1992-06-05 18:52:27 +00:00
John Gilmore 2795260c9e * xcoffread.c (read_xcoff_symtab): Set c_sclass from n_sclass
without masking, since it is signed and will later be compared
against signed quantities.  The right fix is probably to make
it all unsigned, but this is a small, safe fix for this release.
FIXME -- make the real change sometime soon.

(Imported from progressive.)
1992-06-04 05:23:08 +00:00
Roland Pesch 50a39795e2 Fix from net: when predigesting doc for texi2roff, search for "@c " at
the beginning of a line, rather than just "@C" at the beginning of a
line, to identify (and remove) comments.
1992-06-02 00:50:41 +00:00
Roland Pesch 45c53080cc Tracking changes from Lucid: option formerly known as either
"-cadillac" or "-energize" is called "-context" now.
1992-06-02 00:48:46 +00:00
Michael Tiemann fb44a8f557 Pass the correct number of parameters to `symbol_file_add'. 1992-06-01 23:19:09 +00:00
Michael Tiemann a748555bbb Define MALLOC_INCOMPATIBLE so we can compile files which include <malloc.h> 1992-06-01 23:17:21 +00:00
Michael Tiemann 4feb00bef1 Handle -m680[01234]0-wrs as specific vxworks68 targets. With -nfp,
this offers full control over the CPU parameters of vxworks systems we
are likely to encounter (not to mention other 68k embedded targets
that run a.out as their debugging format).
1992-05-31 13:45:08 +00:00
Michael Tiemann 48079d66da Fix lint found by GCC. 1992-05-30 05:19:54 +00:00
John Gilmore cb61478811 Lint 1992-05-27 16:29:03 +00:00
Steve Chamberlain b2f27f8e9c lint 1992-05-26 23:57:04 +00:00
Sean Eric Fagan 18f034a768 PTR vs. void*. Sorry. 1992-05-21 20:14:08 +00:00
Sean Eric Fagan e146177ed0 qsort returns a void*, according to the manual pages on two different systems. 1992-05-21 20:09:48 +00:00
John Gilmore 8970a55ee6 * coredep.c (fetch_core_registers): Remove premature warning,
which triggers on DECstation even though all regs are accessible.

* m68k-pinsn.c (print_insn_arg):  Use new macros to get
sign-extension of instruction fields even on unsigned-char hosts.
Bug found by Fred J Roeber, fjr@sgfb.ssd.ray.com.
1992-05-20 08:25:56 +00:00
John Gilmore 6ad6ef422c 88K changes inspired by Ted Lemon (uunet!lupine!mellon)
* tm-m88k.h, tm-umax.h:  Avoid sizeof() in REGISTER_xxx macros,
since they define the target, not the host.
* m88k-pinsn.c:  Fix typo.

Patches by Paul Eggert <eggert@twinsun.com>.
* valarith.c (value_zerop):  -0.0 is still zero.
* eval.c (evaluate_subexp):  Avoid NaN anomalies in float compares.
1992-05-20 06:03:50 +00:00
Roland Pesch 93ac5532df Removed RMS email address from inside cover page, at his request. 1992-05-19 21:22:10 +00:00
Stu Grossman 5027f10757 * alldeps.mak, depend: re-make to account for ser-*.c. 1992-05-18 20:55:52 +00:00
Fred Fish 6c316cfd66 * inflow.c (new_tty): Temporarily ignore SIGTTOU when
disconnecting from controlling terminal, to avoid gdb hanging
	on SVR4.  Fixes bug reported by Oliver Okrongli.
	* procfs.c (PROC_NAME_FMT):  Change format to match default used
	by system, as suggested by Oliver Okrongli.
	* tm-68k.h (FRAME_FIND_SAVED_REGS):  Apply missing parentheses
	bug fix from Brent Townshend (bst%tt@cam.ORG).
	* c-exp.y (nonempty_typelist):  Fix memory overrun bug reported
	by turlais@rechser.total.fr.
	* dwarfread.c (decode_subscr_data):  Fix bug in calculation of
	length of non-zero lowerbound arrays.  Bug fix from Peggy Fieland.
	* objfiles.h (unlink_objfile):  Add prototype.
	* objfiles.c (unlink_objfile):  Add function.
	* objfiles.c (free_objfile):  Call unlink_objfile.
	* objfiles.c (allocate_objfile):  Call unlink_objfile on newly
	remapped objfiles.  Bug reported by hahn@sunshine.labs.tek.com.
	Also, discard old possibly bogus sf struct.
	* symfile.c (symbol_file_add):  Call init_entry_point_info() and
	find_sym_fns() for remapped symbol files, in case of any changes
	since the last mapping.
1992-05-17 23:54:32 +00:00
Roland Pesch a89f94c23a Thu May 14 17:09:48 1992 Roland H. Pesch (pesch@fowanton.cygnus.com)
* gdb.texinfo: slight expansion of new text on reading info files
	* gdbinv-s.m4.in: correct and expand info on cross-debugging
	H8/300 from DOS.

	* ChangeLog: guess...
1992-05-15 00:20:43 +00:00
Steve Chamberlain 4025fb37c1 Changes to support GDB running on DOS using GO32 and H8 support
* defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
	allowing hosts with different text and binary file formats to
	work.
	* coffread.c (read_coff_symtab): changed calling convention and
	operation - now it opens its own file with FOPEN_RB rather than
	duping and fdopening the provided handle.
	* dbxread.c, cplus-dem.c: #include mangling.
	* exec.c: If O_BINARY isn't defined, set it to 0, call openp for
	binary files oring in the right bit.
	* utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
	* remote-hms.c: cleanup to use the new remote serial stuff
	* serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
	independent remote terminal I/O.
	* remote.c: if DONT_USE_REMOTE is defined, then don't use it.
	* source.c (openp): fix off by one problem removing / - can now
	open a source file in the root directory with DOS.
	* values.c (value_as_pointer): remove bogus address bits from
	long. (unpack_long): unpack into unsigned long/short if pointer.
sun4.mh: use the ser-termios stuff
go32.mh: use the ser-go32 stuff
1992-05-13 01:13:18 +00:00
Steve Chamberlain ae0ea72ee2 Changes to support GDB running on DOS using GO32 and H8 support
* defs.h: if xm.h doesn't define FOPEN_RB, include "fopen-same.h",
	allowing hosts with different text and binary file formats to
	work.
	* coffread.c (read_coff_symtab): changed calling convention and
	operation - now it opens its own file with FOPEN_RB rather than
	duping and fdopening the provided handle.
	* dbxread.c, cplus-dem.c: #include mangling.
	* exec.c: If O_BINARY isn't defined, set it to 0, call openp for
	binary files oring in the right bit.
	* utils.c, terminal.h, inflow.c: hackery because dos doesn't have terminals.
	* remote-hms.c: cleanup to use the new remote serial stuff
	* serial.h, ser-termios.c, ser-go32.c: newfiles to provide host
	independent remote terminal I/O.
	* remote.c: if DONT_USE_REMOTE is defined, then don't use it.
	* source.c (openp): fix off by one problem removing / - can now
	open a source file in the root directory with DOS.
	* values.c (value_as_pointer): remove bogus address bits from
	long. (unpack_long): unpack into unsigned long/short if pointer.
1992-05-13 01:12:18 +00:00
Stu Grossman bcf2e6ab49 * infrun.c (child_attach): Don't allow gdb to attach to itself.
It gets permanently stuck in many OSes.
* breakpoint.c, infcmd.c, infrun.c, utils.c:  Change many printfs
to printf_filtered.
* breakpoint.c: Improve	help text for info breakpoints.
1992-05-12 21:32:52 +00:00
Stu Grossman 84c8f62dc0 * infrun.c (child_attach): Don't allow gdb to attach to itself.
It gets permanently stuck in many OSes.
* breakpoint.c, infcmd.c, infrun.c:  Change many printfs to printf_filtered.
* breakpoint.c: Improve	help text for info breakpoints.
1992-05-12 21:27:03 +00:00
Stu Grossman 70d47e6605 * breakpoint.c, infcmd.c: Change many printfs to printf_filtered.
* breakpoint.c: Improve	help text for info breakpoints.
1992-05-12 21:20:34 +00:00
Stu Grossman 0defac0294 * breakpoint.c: Change many printfs to printf_filtered. Improve
help text for info breakpoints.
1992-05-12 21:17:19 +00:00
John Gilmore 4768ba62b8 `info user' => `show user'. Noticed by David Taylor. 1992-05-12 19:23:32 +00:00
John Gilmore 2ce124dfd9 * README: Add pointer to internals doc, and describe reading
info files.
* utils.c (print_sys_errmsg):  Use stderr.  Reported by Pierre Willard.
* symtab.c (output_source_filename):  Remove old glop for wrapping
lines, use wrap_here.  Reported by Pierre Willard (pierre@la.tce.com).
* Makefile.in:  version.c should depend on Makefile, not Makefile.in.
* munch:  Add sort -u to avoid duplications.
* symtab.c (lookup_symbol):  Improve Stu's fix of 22 April.
Improved fix by hahn@sunshine.labs.tek.com (Doug Hahn).
1992-05-12 02:35:44 +00:00
John Gilmore 3509545542 Say how to read the `info' files. 1992-05-12 02:10:59 +00:00
Fred Fish 7fd31a8480 * cplus-dem.c (demangle_signature): Recognize misplaced '_' to
avoid infinite loops while demangling bogus mangled names.
	* valprint.c (type_print_base):  Minor fix for GNU style guide
	conformance.
1992-05-11 20:32:03 +00:00
Fred Fish a7a8c21eb4 * config/ncr3000.mt (DEMANGLE_OPTS): Remove -Dnounderscore. 1992-05-10 01:43:37 +00:00
Fred Fish f9b5584c8e * Makefile.in (VERSION): Bump to 4.5.3
* Makefile.in (DEMANGLE_OPTS):  Remove obsolete -Dnounderscore
	* Makefile.in (demangle):  New target to create standalone
	demangler with same code and options as internal demangler.
	* cplus-dem.c:  Massive restructuring, rewriting, cleanups, etc
	to support ARM style and Lucid style demangling, improve
	maintainability, fix several demangling bugs.  More changes
	to follow.
	* defs.h (strstr):  Add ANSI compatible prototype.
	* valprint.c (type_print_1):  Demangle using ansi option.
	* config/ncr3000.mt (DEMANGLE_OPTS):  Remove -Dnounderscore.
1992-05-10 01:43:04 +00:00
Stu Grossman 1e939db157 * xcoffexec.c (vmap_exec): Don't assume .text and .data are the
first two sections.
1992-05-09 21:49:28 +00:00
Per Bothner d5e885834b * mipsread.c (parse_procedure): Return rather than using
uninitialized variable 'b'.
1992-05-08 18:43:50 +00:00
Stu Grossman aa94235541 * Makefile.in, remote-udi.c, remote-vx.c, 29k-share/dfe/mini2udi.c,
29k-share/dfe/yank.c, vx-share/xdr_ptrace.c, vx-share/xdr_regs.c:
Remove -I29k-share, -Ivx-share from Makefile.in.  Make #includes
relative to each source file.
1992-05-08 15:49:48 +00:00
K. Richard Pixley 9b98dea2e7 propogate INSTALL, INSTALL_DATA, INSTALL_PROGRAM on recursions 1992-05-08 14:49:44 +00:00
Stu Grossman d0b04c6a38 * am29k-pinsn.c: Use new opcode table in "opcode/a29k.h".
* am29k-tdep.c:  Update to latest code from AMD.
(get_saved_register) don't crap out if no frame.
* remote-udi.c:  Set/clear inferior_pid as appropriate.
(udi_open) call target_preopen, don't close fd 0!!!, clean up
error handling.  Fixup end-of-debugging messages.
(udi_fetch_registers) clean up big time, mainly don't multiply
register_valid indices by 4, and use proper Offset when reading
gr96-gr127.  (udi_store_registers) general cleanup.
(fetch_register) cleanup, simplify.  (regnum_to_srnum)
INT_REGNUM->INTE_REGNUM.
* tm-29k.h:  Upgrade to latest code from AMD.
* 29k-share/udi/udip2soc.c:  Get rid of useless errmsg_m macro.
(UDIConnect) Clean up error processing (like, don't do exit() if
execlp fails), make code restartable, make more attractive.
(UDIStop) Use SIGINT instead of SIGUSR1, as isstip won't stop
otherwise.
1992-05-07 17:47:36 +00:00
Per Bothner ba2c9027ca * tm-irix3.h: Re-define CPLUS_MARKER to '.'.
* xm-rs6000.h, tm-rs6000.h:  Move re-definition of CPLUS_MARKER
	from former to latter.
1992-05-06 21:37:51 +00:00
Fred Fish 55b3ef9a57 * cplus-dem.c (do_args): Handle void args the same as others.
* objfiles.c (free_objfile):  Only try to unmap files when
	reusable objfiles are supported.
	* valprint.c (type_print_varspec_suffix):  Add parameter that
	specifies if C++ demangling included function arguments.  Use
	it to suppress printing extra pair of ()'s.
	* valprint.c (type_print_1):  Fix problem with printing demangled
	C++ function types where demangled type includes the function
	args.
1992-05-06 21:16:11 +00:00
Roland Pesch 38962738d6 formatting improvements (already in progressive) 1992-05-06 04:49:50 +00:00
Roland Pesch b76626238c Fix typo in M4 macro name (prevented TeX formatting). 1992-05-05 22:51:53 +00:00
K. Richard Pixley 1f0e6a9919 gm4 -> m4 1992-05-05 19:12:05 +00:00
Fred Fish 8f793aa541 * Makefile.in (DEMANGLER): Define and default to cplus-dem.
Allows selection of C++ demangler to be a configuration option
	until multiple demanglers are supported.
	* demangle.h:  New include file for extended demangler support.
	* breakpoint.c, gdbtypes.c, printcmd.c, stack.c, symtab.c,
	utils.c, valprint.c:  Include "demangle.h" and change all calls
	to cplus_demangle() or fputs_demangled() to use individual
	demangling options.
	* valprint.c (type_print_1):  Change options to cplus_demangle
	to print demangled function args.  Still broken, but now less so.
	* cplus-dem.c:  Include demangle.h, reorganize and update some
	comments to reflect reality.
	* cplus-dem.c (cplus_demangle, cplus_mangle_opname):  Change
	second arg from fixed integer to bit based multiple options.
	* cplus-dem.c (optable):  Reformat and replace ansi members with
	bit based options.
	* cplus-dem.c (do_type):  Fix bug with parsing missing return type.
1992-05-05 18:16:23 +00:00
John Gilmore 6fab5bef69 * values.c (set_internalvar): Force evaluation of lazy values.
Bug reported by RMS.
1992-05-05 05:31:21 +00:00
Fred Fish f7ebd77dba Remove entries for signame.c and signame.h, files that went away some
time ago...
1992-05-03 23:21:19 +00:00
Fred Fish a74c9110c1 * config/ncr3000.mt: New target config file. 1992-05-03 23:05:45 +00:00
Fred Fish 4db8e515c4 * Makefile.in (VERSION): Bump to 4.5.2.
* Makefile.in (DEMANGLE_OPTS):  Add, default to -Dnounderscore.
	* configure.in:  Simplify ncr3000 gdb_host logic, add gdb_target.
	* dwarfread.c (struct_type):  Apply fix from Peggy Fieland for
	proper handling of bit fields.
	* gdbtypes.h (struct type):  Clarify use of field.bitpos.
	* symtab.h:  Fix couple of misspellings in comments.
	* value.h (struct value):  Clarify use of bitpos.
	* value.h (unpack_field_as_long):  Change prototype, returns
	LONGEST.
	* values.c (unpack_field_as_long):  Change return type to LONGEST,
	sign extend unpacked fields that are signed, other rewriting.
	* config/ncr3000.mt:  New target config file.
1992-05-03 23:05:07 +00:00
John Gilmore 7e7e2d40c1 One more try... 1992-05-01 09:53:13 +00:00
John Gilmore fcdb113e57 * utils.c (printchar): Print 0x7F and 0x80-0x9F in \nnn notation
even when printing 8-bit characters.
1992-05-01 09:39:30 +00:00
John Gilmore ea1549b346 * gdbtypes.c (make_{reference,pointer,function}_type): New
functions which handle overwriting of forward-referenced types
for stabs file reading.
(lookup_{reference,pointer,function}_type):  These just call
the make_*_type functions with a null storage alloc parameter.
* gdbtypes.h (make_{reference,pointer,function}_type):  Declare.
* xcoffread.c (smash_to_pointer_type):  Remove, no longer used.

* buildsym.c (dbx_lookup_type):  Zero result for (-1,-1) arg.
(dbx_alloc_type):  Make it easier to understand.  No funct change.
(define_symbol: 't'):  Don't put the typedef name into the name of
the struct, union, or enum.  Bugfix.
(read_type: '*', '&', 'f'):  Add comments.  Use make_XXX_type
routines to properly handle overwriting preallocated types so that
forward references will work.
(read_enum_type):  Force enum values to file scope, due to bug in
Sun compiler output.  FIXME, fix later.

Remove unused header_file_prev_index mechanism.  It was already
obsolete in gdb-3.5.  These comments appeared in 3.5:
  /* This code was used before I knew about the instance codes.
     My first hypothesis is that it is not necessary now
     that instance codes are handled.  */
* dbxread.c (add_new_header_file):  Remove header_file_prev_index.
* buildsym.h:  Remove it and prev_index that saves it.
* buildsym.c (push_subfile, pop_subfile, start_symtab):  Remove it.

* solib.c (special_symbol_handling):  When called from core files,
must set up debug_addr.  Don't print error messages, just return.
* symmisc.c (print_symbol):  Less ascii diarrhea for enums, please.
1992-05-01 09:14:43 +00:00
Per Bothner f536aa3956 Various fixes to cplus_demangle(); see ChangeLog. 1992-04-29 22:32:12 +00:00
Stu Grossman 9e91f617eb * Makefile.in (make-proto-gdb-1): 1st cut at packaging
29k-share/* subdirs...
1992-04-24 21:41:53 +00:00
Stu Grossman 54847287d9 * remote-udi.c (udi_insert/remove_breakpoint): Completely
rewrite, only leave out the bugs.
1992-04-24 21:39:01 +00:00
Stu Grossman 6daa0768ba 29k/UDI add stragglers. 1992-04-24 15:36:16 +00:00
Stu Grossman 0857b46a9c * Makefile.in: Add 29k/UDI support. Improve depend.
* .Sanitize, alldeps.mak, configure.in, depend:  Add 29k/UDI support.
1992-04-24 15:01:45 +00:00
Stu Grossman 07df483123 * am29k-tdep.c: Update to use new calling conventions, and misc
symbol elements.
1992-04-24 14:52:26 +00:00
Stu Grossman 72b1aa3096 * m68k-pinsn.c (print_insn_arg): Make branch offsets be signed. 1992-04-24 14:45:53 +00:00
Stu Grossman 66a8a9b4d2 * tm-29k.h: Set DECR_PC_AFTER_BREAK to 0, as 29ks have nice
breakpoint instructions that leave PC pointing at the right place.
1992-04-24 06:32:59 +00:00
Stu Grossman 9bddba9ad7 29K/UDI remote debugger interface. 1992-04-24 05:48:30 +00:00
Stu Grossman 850b104079 More files for 29k/UDI. 1992-04-24 05:47:14 +00:00
Fred Fish c8094777b6 Call warning() to print warnings, which deals properly with leading and
trailing newlines, as well as presenting a consistent prefix for warnings
(IE "warning: ").
1992-04-24 01:45:47 +00:00
Fred Fish 952131da03 Replace MINUS_G with CFLAGS. 1992-04-22 21:44:58 +00:00
Fred Fish 9ea9f1ec6a Finish MINUS_G eradication. 1992-04-22 21:44:32 +00:00
Stu Grossman d6c20dc563 Add config target for 29k/UDI. 1992-04-22 21:02:22 +00:00
Stu Grossman d7df9c3ca4 Add lotsa files for 29k UDI debugger interface support. 1992-04-22 20:40:53 +00:00
Stu Grossman 35a258406b * symtab.c (lookup_symbol): Need to check if msymbol->name is
NULL, as ALL_MSYMBOLS will never return a NULL msymbol pointer.
This prevents a crash when trying to lookup the value of a
non-existent symbol.
1992-04-22 17:01:22 +00:00
Fred Fish 4ace50a510 Remove now obsolete signame.c and signame.h; functionality is handled by
libiberty/strsignal.c.  Widespread changes to use libiberty/strerror.c
functions for errno manipulations and libiberty/strsignal.c for signo
(signals) manipulations.
1992-04-22 16:46:47 +00:00
K. Richard Pixley 6e6bf7f2ca Makefile.in: rework CFLAGS so that they can be set from the command
line to make.  CFLAGS -> INTERNAL_CFLAGS.  USER_CFLAGS -> CFLAGS.
Remove MINUS_G.  Default CFLAGS to -g.  Pass CFLAGS on recusions.
1992-04-21 19:43:05 +00:00
Fred Fish 1867b3be84 Back out of TYPE_FLAG_FUND_TYPE change, solve the problem in valprint.c by
just printing the type name from the type if it is not otherwise handled.
Implement new handling of the ".syms" file for reusable symbol files.
1992-04-18 02:30:28 +00:00
John Gilmore b0c8c72688 * sun3-xdep.c (fetch_core_registers): Lint.
* tm-sun3.h:  Prototype lint.
* value.h:  Typo.
1992-04-17 06:58:05 +00:00
Fred Fish 2d6d969c61 Fix to dwarfread.c to target pointer and target long sizes, fixes for
mapped symbol file handling, and a couple of other misc small fixes.
1992-04-17 02:59:43 +00:00
Per Bothner d453b386ac * rs6000-pinsn.c: New version from IBM (Metin).
* m2-exp.y:  Re-write string initializers ("<>" => {'<', '>'})
	to avoid warnings from some compilers.
1992-04-17 01:35:42 +00:00
Fred Fish 4a11eef2eb Add TYPE_FLAG_FUND_TYPE bit to the flags member of the type structure,
and use it to decide when to print the actual type name rather than
trying to invent the name of a fundamental type.  This clears up the
confusion between int/long when they are the same sizes, removes one
obstacle to multi-language support (previously valprint.c thought
everything was a C type), and allows gdb to support distinctions between
explicitly and implicitly signed types when the compiler supports such
distinction in the debug output (as does every ANSI compiler I tested
except for gcc).
1992-04-15 05:42:00 +00:00
Stu Grossman 8616205a75 * remote-vx.c, vx-share/xdr_ptrace.c, vx-share/xdr_ptrace.h,
vx-share/xdr_rdb.h:  Update for new remote protocol under VxWorks
5.0.2.
1992-04-14 21:34:01 +00:00
Fred Fish 13b5a7ff3e Extensive changes to replace swapin() function with target_to_host()
and fix all usages to be independent of host/target integer size
mismatches.  However, cross debugging will still not work until the
sign extension issue is resolved either by fixing the bfd library
or implementing sign extension in the gdb code.
1992-04-14 04:09:00 +00:00
John Gilmore 3bc8241050 Revised -mapped description. 1992-04-13 23:08:01 +00:00
John Gilmore 817bc7b82a * mipsread.c (parse_partial_symbols): Complain when sh->index is
too high or when skipping `forwards' moves us backwards.
	(parse_type):  Print mis-guessed tag name in complaint.
	(parse_external):  Eliminate cur_stab and obscure top_stack clobbers.
	(parse_procedure):  Do not attempt to create symbols; just fill in
	the SYMBOL_VALUE field of a .gdbinfo. symbol if we can find one.
	(psymtab_to_symtab_1):  Split up `stabs' from `native ecoff' code
	for clarity.  Set top_stack before calling parse_external.  In
	stabs, sort symbols before calling parse_procedure.
	* mipsread.c:  Lint.
	* symmisc.c (std_in, std_out, std_err):  Add vars to access std
	FILE *'s when debugging GDB (e.g. as args to dump_symtab).
	* Makefile.in:  Remove stage* targets.  Avoid echo on recursive
	makes.  Eliminate doc/Makefile from tar.Z file if doc/Makefile.in
	exists.
	* mipsread.c:  Cleanup.  Add more complaints for unhandled cases.
	Remove new symbol types and such to ../include/coff/symconst.h.
	(parse_symbol):  Simplify code for parsing struct/enum/unions.
	(parse_type):  Handle `long long' types.
	(upgrade_type):  Handle `const' qualifier.
	(parse_partial_symbols):  fix indentation, clean a bit.
1992-04-12 06:40:04 +00:00
John Gilmore 44d835be29 Set devo VERSION to 4.5.1 to avoid confuzzion with the released version. 1992-04-11 10:51:31 +00:00
John Gilmore 554d1be43d * xcoffread.c (NO_TYPEDEFS): Fix typo in commented-out #define.
* sparc-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
fill_gregset):  New functions for SVR4 /proc support.
1992-04-11 06:52:54 +00:00
Fred Fish 95967e7379 Add swapin() function, and SWAPIN macro that calls it, to do byte swapping
copies using appropriate bfd routines.
1992-04-11 06:27:53 +00:00
Fred Fish 6e706950c3 Recognize new ncr3000 config. 1992-04-11 05:42:48 +00:00
Fred Fish 5435f92798 New configuration file for ncr 3000. 1992-04-11 05:40:44 +00:00
John Gilmore 77b46d1331 * gdb.texinfo: Update for GDB-4.5. Move `Formatting
Documentation' ahead of `Installing GDB' to match README.
Update shared library doc, -readnow and -mapped, and directory
structure (add glob and mmalloc).  Update configure doc.
1992-04-11 00:54:44 +00:00
Stu Grossman 5dabd1a5eb alldeps.mak and depend once again! 1992-04-10 23:29:21 +00:00
Stu Grossman b69ce5ab27 * Makefile.in: Update version to 4.5.
* WHATS.NEW:  The obvious.
1992-04-10 23:02:06 +00:00
Stu Grossman 6f55e88d99 One more time... 1992-04-10 22:04:09 +00:00
Stu Grossman ece3256543 * depend: Generate new depend file for this release. 1992-04-10 21:50:32 +00:00
Stu Grossman 601836ef90 * Makefile.in (depend): Fix dependancy generation so that it does
not include gcc 'fixincluded' files, which are usually in a system
specific location.
1992-04-10 15:33:31 +00:00
Per Bothner 9b6f92dbfd buildsym.c: Fix parameter mis-match.
Check in ChangeLog (forgotten last night).
1992-04-09 20:36:20 +00:00
Stu Grossman 7fe388adce * Makefile.in: version=4.4.88, add xm-vax.h to HFILES. 1992-04-09 19:11:18 +00:00
John Gilmore 9e53d9dce6 Minor changes for Solaris. 1992-04-09 09:30:45 +00:00
Per Bothner 095db7ce45 Changes from metin@ibmpa.awdpa.ibm.com (Metin G. Ozisik).
* buildsym.c  (#ifdef RS6000_TARGET):  Don't create unnecessary
	symbols for nameless types.  And, handle `R' (register parameter
	type) for AIX.  (an extension to existing stabstring grammar).
	* rs6000-xdep.c:  Fix typo (= should have been ==).
1992-04-09 07:57:10 +00:00
Stu Grossman 5661980309 * xm-i386mach.h: add decls for errno and strdup(). 1992-04-08 05:37:32 +00:00
Stu Grossman ff1e35cb62 * xm-i386mach.h: add decl for errno. 1992-04-08 01:14:17 +00:00
Per Bothner 6fba3d7c95 * breakpoint.c (breakpoint_1): Add (int) casts for enums
used in array index context (otherwise, some compilers barf).
1992-04-07 23:37:16 +00:00
Stu Grossman e05ba37d1f * m68k-tdep.c, tm-sun3.h: #ifdef around get_longjmp_target().
Change def of SAVED_PC_AFTER_CALL to call routine to see if we are
in a system call, and provide better backtrace if so.
1992-04-07 23:09:50 +00:00
Stu Grossman 1f415ae722 * Makefile.in (HFILES): Add xcoffsolib.h. 1992-04-07 20:48:19 +00:00
Stu Grossman 2741887bb0 rs6000-pinsn.c!!! Not .h!!! 1992-04-07 20:46:02 +00:00
Stu Grossman 14832b2e6a * rs6000-pinsn.c: #include "opcode/rs6k.h" 1992-04-07 20:45:16 +00:00
Stu Grossman c994feb68e * rs6k-opcode.h: Move to ../include/opcode/rs6k.h. 1992-04-07 20:38:30 +00:00
Stu Grossman 96c19d0f6d * mipsread.c (read_mips_symtab, read_the_mips_symtab,
mipscoff_symfile_read):  Convert to BFD to do file I/O.
1992-04-07 17:23:36 +00:00
Stu Grossman c1bde6653a * symfile.c: #include <ctype.h> to get proper def if isspace(). 1992-04-07 16:47:48 +00:00
Stu Grossman 628c6d3b78 * i386-tdep.c (get_longjmp_target): #ifdef GET_LONGJMP_TARGET. 1992-04-07 15:50:00 +00:00
Stu Grossman 270a2e5383 version->4.4.87 1992-04-07 06:25:46 +00:00
Stu Grossman 391ca579f1 * mipsread.c: Create a .gdbinfo pseudo-symbol for each
function also when parsing embedded stabs.
1992-04-07 06:21:33 +00:00
Per Bothner ad142b8e1f * mipsread.c: Create a .gdbinfo pseudo-symbol for each
function also when parsing embedded stabs.
1992-04-07 00:29:36 +00:00
Stu Grossman e5578a31ee * mipsread.c: Fix many invocations of complain. Use enum
type_code where appropriate.
1992-04-07 00:17:33 +00:00
Stu Grossman 41bd448eaa * mipsread.c: Fix many invocations of complain. 1992-04-06 23:43:04 +00:00
Roland Pesch cc9bc574ec Updates to text on "info proc". 1992-04-06 23:40:23 +00:00
Stu Grossman 995e7f86f3 * xm-vaxult.h: Add decl for strdup(). 1992-04-06 23:37:23 +00:00
Roland Pesch 95d5ceb921 0) Update descriptions of symbol-file, file, add-symbol-file cmds for use
of *options* "-readnow" and "-mapped".

1) Change title/subtitle to come closer to text used by FSF when they
printed this thing (but still avoid silliness of having word "manual" in
the title).

2) First few minor corrections from most recent Chassell pass.
1992-04-06 23:29:36 +00:00
Stu Grossman ce9260ae3e * Makefile.in: Add dependancies for xm-vaxbsd.h and xm-vaxult.h
for xm-vax.h.
1992-04-06 22:26:30 +00:00
Stu Grossman bf2261244a *** empty log message *** 1992-04-06 18:40:40 +00:00
Stu Grossman b2de19e3c6 * buildsym.h, dbxread.c, mipsread.c: Add objfile arg to
process_one_symbol.
1992-04-04 01:43:01 +00:00
Per Bothner 556f3d9029 * munch: Must pre-pend "_" to "initialize" for SYSV style nm.
* tm-rs6000.h, xcoffexec.c, xcoffread.c, xm-rs6000.h:
	Merge in more patches for rs6000 from Metin Ozisik.
	* utils.c:  Fix typo in comment.
1992-04-03 20:25:57 +00:00
Fred Fish d65eee73d4 Fix bug with gdb resending SIGSTOP to an attached process that was forcibly
stopped during attach, thus stopping it again.
1992-04-03 19:29:29 +00:00
Stu Grossman 4d0d3491e3 version = 4.4.86 1992-04-03 18:48:33 +00:00
Stu Grossman 239e7ee90f * Makefile.in (SFILES_MAINDIR): add mipsread.c 1992-04-03 09:39:11 +00:00
John Gilmore 2bdc4094ab Add sun4os5 (Solaris) config files. 1992-04-03 04:47:16 +00:00
John Gilmore ede23f3b2f Sort the names, since the file renaming. 1992-04-03 04:46:38 +00:00
John Gilmore e10a30523e * Makefile.in (OBS): Compile mipsread.c for all targets now.
(VERSION):  Bump to 4.4.85.
* mipsread.c:  Update for new include files.  Lint.
* tm-irix3.h, tm-mips.h:  Use new include files for ECOFF symtab.
* config/{bigmips.mt, littlemips.mt, irix3.mt, decstation.mt}:
Don't need to bring in mipsread.o specially any more.
1992-04-03 04:30:55 +00:00
John Gilmore 29acf1753a Don't need to bring in mipsread.o specially any more. 1992-04-03 04:27:03 +00:00
Stu Grossman 4ad1963ee0 * mipsread.c (fixup_sigtramp): Also look for _sigtramp as a real
routine (for Irix-4.x).  Make many funcs static and void.
* mips-tdep.c (mips-frame-chain):  Clean up, simplify.
* (init_extra_frame_info):  Don't trash cached value of frame
pointer register.  This fixes backtracing through routines that use
alloca().  Generally clean up declarations of functions, and use
typedefs and macros to reference data structures as appropriate.
* tm-irix3.h, tm-mips.h (EXTRA_FRAME_INFO):  use proper type for
proc_desc element.
1992-04-03 03:55:42 +00:00
Fred Fish 5c1c5e6745 Fix bug in values.c unpacking signed characters on hosts where the default
character type is unsigned.  Add some cases to the tables in procfs.c
for constants defined in newer SVR4 systems and reorder the tests for
ioctl support of resetting the inherit-on-fork flag to favor the latest
method using PIOCRESET.
1992-04-02 18:00:10 +00:00
John Gilmore 03c93c664d * buildsym.c (read_struct_type): Avoid coredump when C++
abbreviated type name is messed up.  Reported by Joe Buck.
FIXME, we need to determine whether GDB or GCC needs to be
smarter to correctly locate this type name.   p*927 circumvention,
needs real fix when Tiemann's back.
1992-04-02 11:56:14 +00:00
John Gilmore ac88ca205c Lint.
* symfile.c (add_symbol_file_command):  Initialize mapped/readnow.
1992-04-02 10:35:19 +00:00
Fred Fish cc221e76d6 Many changes to procfs.c, mostly to expand the "info proc" command and to
fix a couple of small bugs.  Changes to other files mostly to fix minor
things pointed out by the SGI compiler.  See ChangeLog for complete details.
1992-04-01 19:46:14 +00:00
Fred Fish 6b80138803 Changes in procfs.c to fix bug with inferior's siginfo struct getting
needlessly stomped.  Changes in elfread.c and solib.c to fix DWARF
processing, broken by other recent changes.
1992-04-01 03:09:02 +00:00
Stu Grossman 3bec9cddbe * mipsread.c (parse_procedure): PDR.isym should get pointer to
function name, not .gdbinfo. symbol.
1992-04-01 01:50:30 +00:00
John Gilmore 7e7ba5e2c4 Keep sun4os5 config files now that Sun says it's OK. 1992-04-01 01:08:06 +00:00
John Gilmore e360572cf2 (breakpoint_1): Fix prototype, this time for sure! 1992-04-01 01:07:16 +00:00
Stu Grossman 5e8fdb82d9 * Makefile.in: version->4.4.8 1992-03-31 20:00:06 +00:00
Stu Grossman fad3fc945a * procfs.c (open_proc_file): Disable inherit-on-fork flag so that
commands in .cshrc/.profile won't get traced.
1992-03-31 19:03:28 +00:00
John Gilmore 3b0b92207c * elfread.c (elf_symtab_read): Use xmalloc, not bfd_xmalloc.
* exec.c (build_section_table):  Don't abort if no sections.
* sparc-tdep.c (single_step):  Lint.
* utils.c (mrealloc):  Handle realloc (0, size) case here.
1992-03-31 16:16:41 +00:00
Stu Grossman f8b4aa8ec3 * Makefile.in (alldeps.mak): Config files are now *.m[ht] as
opposed to m[ht]-*!
1992-03-31 05:23:15 +00:00
Stu Grossman 9d4c62df07 * config/irix4.mh: Don't use coredep.o. It doesn't work with procfs. 1992-03-31 02:36:24 +00:00
Stu Grossman d1bb1d4170 * mipsread.c (parse_symbol, parse_procedure): Re-do the way that
.gdbinfo. symbols are created.  Move creation from parse_procedure
to parse_symbol, where it is fairly easy to grow the symtab.  This
also fixes a symtab trashing bug on all mips-based systems.
* (got_numargs, lookup_numargs, free_numargs):  Delete.  Not
needed anymore.
* tm-mips.h, tm-iris3.h, mips-tdep.c, mipsread.c:  Re-do struct
mips_extra_func_info, and all the PROC_xxx macros that look at it.
1992-03-31 01:21:01 +00:00
Per Bothner d26b50b794 c-exp.y: Add missing return type to yyparse() prototype. 1992-03-30 22:19:14 +00:00
John Gilmore be772100b5 Lint 1992-03-29 23:26:47 +00:00
John Gilmore 3414e4eb38 New host and target. 1992-03-29 23:22:35 +00:00
John Gilmore c8950965c9 * Makefile.in (VERSION): Roll to 4.4.7.
(HFILES):  Add call-cmds.h.
* call-cmds.h:  New header for command fns called by other files.
* breakpoint.c (watchpoints_info):  Remove, same as breakpoints_info.
(breakpoint_1):  Remove unused type arg.  Change callers.
1992-03-29 23:18:31 +00:00
John Gilmore 84ffdec2cb Create and use macros for iterating on symtabs, psymtabs, msymbols.
* minsyms.c (iterate_over_msymbols):  Remove; clunky and slow.
* symfile.h, symtab.h (iterate_over_msymbols):  Remove prototype
* coffread.c (coff_symfile_read):  iterate_over_symtabs => ALL_SYMTABS.
(patch_opaque_types):  Avoid dummy args and result.
* objfiles.c (have_partial_symbols, have_full_symbols,
have_minimal_symbols):  explicit iteration => ALL_OBJFILES; simplify.
(iterate_over_objfiles, iterate_over_symtabs,
iterate_over_psymtabs):  Remove, clunky and slow.
* objfiles.h:  Replace iterate_over_* prototypes with ALL_SYMTABS,
ALL_PSYMTABS, and ALL_MSYMBOLS macros.
* symmisc.c (dump_symtab, dump_psymtab, dump_msymbols,
dump_objfile):  Remove dummy args and results.  Move filename
comparisons to callers.
(printsyms_command, printpsyms_command, printmsyms_command,
printobjfiles_command):  iterate_over_* => ALL_*.  Compare filenames.
* symtab.c (lookup_symtab_1, lookup_symtab, lookup_partial_symtab,
lookup_symbol, find_main_psymtab, find_pc_symtab, sources_info,
list_symbols, make_symbol_completion_list):  Replace explicit
iteration with ALL_SYMTABS, ALL_PSYMTABS, or ALL_MSYMBOLS.
Eliminate Dijkstra flag crap, break out of loops with gotos.
(lookup_symtab_1):  Protect '/' tests from short filenames.
(cplus_mangled_symbol):  Move inline into lookup_symbol.
* xcoffexec.c (relocate_objfile_msymbols):  Remove poor hack.
(relocate_minimal_symbol):  Move inline to vmap_symtab.
(vmap_symtab):  Replace iteration with ALL_OBJFILES,
iterate_over_msymbols with ALL_MSYMBOLS.

Misc cleanup prior to release.

* dwarfread.c (dwarf_build_psymtabs):  Remove mainline test.
* mipsread.c (compare_symtabs, compare_psymtabs):  Remove, unused.
* mipsread.c:  Add prototypes for all static functions.

* symmisc.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
dump_blockvector, dump_block, dump_addrchass, dump_namespace,
dump_symbol, dump_type, dump_linetable, dump_strtbl):  Remove, unused.
* xcoffread.c (dump_symtab_lines, dump_symtabs, dump_last_symtab,
dump_blockvector, dump_block, dump_addrchass, dump_namespace,
dump_symbol, dump_type, dump_linetable, dump_strtbl):  Remove 2nd
unused copy!

* buildsym.c (define_symbol):  Handle global register variables
(from Pierre Willard).  Complain if register numbers are too large.
1992-03-29 23:17:36 +00:00
John Gilmore f9e3b3ccc2 * target.c (nomemory): Now that higher levels examine errno, give EIO.
* tm-sparc.h:  Don't #include <sun4/reg.h>.
* sparc-tdep.c (sparc_frame_chain, frame_saved_pc):  Remove
dependency on <sun4/reg.h>.  Start to handle cross-byte-order.
* language.h:  Avoid forward enum declaration.
* configure.in, tm-sun4os5.h, xm-sun4os5.h, config/sun4os5.mh,
config/sun4os5.mt:  New host and target.
* defs.h (errno): #include <errno.h> rather than assuming int.
From Pierre Willard.
1992-03-29 23:14:34 +00:00
Per Bothner 1eeba68641 Merged in latest RS6000 diffs from Metin G. Ozisik. 1992-03-29 22:33:35 +00:00
Fred Fish bf349b77fa Add OBJF_SYMS flag and use it to decide whether or not we have already
tried to read symbols from a file, for mapped objfiles.  This fixes a
memory leak (actually a constant memory growth) due to reading symbol
files with no debug info and thus generating no psymtabs or symtabs.
Most typically happened with shared libraries.
1992-03-28 21:06:23 +00:00
John Gilmore c2e4669f8c Misc cleanups from code review. 1992-03-27 23:56:15 +00:00
Fred Fish 3624c87592 Mostly changes to dbxread.c to preserve stringtab's on a per-objfile
basis, for use in expanding psymtabs to full symtabs.  See ChangeLog
for other details.
1992-03-27 01:04:14 +00:00
Per Bothner 9efdc2feaa * rs6000-pinsn.c: Make dis-assembly output more like
other targets:  Don't print instruction in hex before
	the assembly;  use print_address to print out jump
	destinations.
1992-03-26 21:22:50 +00:00
Per Bothner 04f27ddc6d * c-exp.y, gdbtypes.h: Add builtin_type_signed_char.
* cplus-dem.c:  Support "Sc" meaning "signed char".
1992-03-26 08:33:43 +00:00
Stu Grossman 88f36033ee * configure.in: fix iris/iris3. 1992-03-25 23:22:47 +00:00
Per Bothner 5c71cf23f9 * command.c, main.c (various places): Use ctype.h macros
(such as isupper(x)),  instead of hard-wiring in ASCII-isms
	(such as (x >= 'A' && x <= 'Z')).
	(There are still more of these in other files.)
	* main.c (defined_command):  Lower-case the user's
	new command before entering it.  Needed because
	command lookup is case-insensitive (and also lower-cases).
	(Based on Metin's earlier patch.)
1992-03-25 23:07:16 +00:00
K. Richard Pixley fd2329d713 stuff from latest install 1992-03-25 07:30:51 +00:00
K. Richard Pixley c0abb570d7 remove srcdir from gdb.info rule 1992-03-25 07:29:45 +00:00
K. Richard Pixley a00d0abd6f irix4 support 1992-03-25 07:27:36 +00:00
Stu Grossman 0a22f63e7c * infcmd.c (step_1): Call disable_longjmp_breakpoint at the right
time.
1992-03-25 05:50:53 +00:00
Stu Grossman 9d53db1ac7 * xm-mips.h: declare strdup for ultrix. 1992-03-25 01:57:29 +00:00
Stu Grossman 4f301966c2 * mipsread.c (fixup_sigtramp): Make sure that current_objfile is setup
when calling new_symbol.
* mips-tdep.c (mips_frame_chain):  Use symfile_objfile instead of
current_objfile.
1992-03-25 00:22:14 +00:00
Per Bothner 5c8d3927e3 * config/rs6000.mh: Update (for Fred's new mmalloc)
flags to disable use of GNU malloc/mmalloc.
	* munch:  Change SYSV rule to allow .text before the label,
	as well as after, to work for AIX.
	* gdbtypes.h:  Minor clarifiction.
1992-03-24 22:54:21 +00:00
Michael Tiemann be1384b056 Fixed a place where dbx symbol name continuation was appearing in an
unexpected place, causing the `Trace' type in gperf/main.o to be
mis-parsed.
1992-03-24 15:28:40 +00:00
Stu Grossman 62a469e129 * mips-tdep.c: include symfile.h and objfiles.h to fix
compilation errors.
1992-03-24 07:02:52 +00:00
Per Bothner b3024b21ac * valops.c (value_struct_elt_for_reference): Added 'offset'
parameter to handle multiple inheritance.
	* eval.c, value.h:  Update accordingly.
1992-03-23 23:52:45 +00:00
Fred Fish 5e2e79f859 Many changes, most related to creating entry point information on a per-objfile
basis.  See comments in objfiles.h and details in ChangeLog.  Also remove
redundant definitions of FRAME_CHAIN_VALID from most of the tm-* files and
use a default definition in frame.h.
1992-03-21 01:56:01 +00:00
Per Bothner 01be69139e More C++ improvements (pointers to members, qualified names). See ChangeLog. 1992-03-20 21:57:17 +00:00
Fred Fish 80d68b1d49 * coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
elfread.c (coff_symfile_finish):  Add function, prototype, and
	add to the xxxx_sym_fns struct for each file type.  Also reformat
	the xxxx_sym_fns vector to a standard format and add comments.
	* coffread.c, mipsread.c, xcoffread.c, coffread.c, dbxread.c,
	elfread.c (xxx_symfile_new_init, xxx_symfile_init, xxx_symfile_read):
	Pass pointer to struct objfile rather than pointer to sym_fns.
	Change references inside each function accordingly.  Allocate any
	symbol file specific info in the per-objfile memory region.
	* dbxread.c (free_and_init_header_files):  Break function into
	free_header_files(), called from dbx_symfile_finish(), and
	init_header_files(), called from dbx_new_init().
	* dbxread.c (dbx_new_init):  Move deallocation things to new
	dbx_symfile_finish function.
	* elfread.c (elf_new_init):  Call buildsym_new_init().
	* objfiles.c (free_objfile): Call the appropriate symfile_finish()
	routine for the objfile before deallocating other stuff.
	* sparc-tdep.c (get_longjmp_target):  Cast target_read_memory arg.
	* symfile.h:  Move struct sym_fns to before struct objfile def.
	Add sym_finish function pointer and change prototypes of other
	function pointers to reflect passing struct objfile pointer rather
	than struct sym_fns pointer.
	* symfile.c:  Remove now obsolete symtab_fns pointer.
	* symfile.c (symfile_init):  Renamed to find_sym_fns, and now only
	locates the correct sym_fns struct for the given objfile.
	* symfile.c (syms_from_objfile, symbol_file_add):  Restructured
	for better support of mapped symbol tables.
	* symfile.c (symbol_file_command):  Remove obsolete code using
	symfile_fns.
	* symfile.h:  Remove duplicate declarations for symfile_objfile,
	entry_point, and object_files.
	* target.c (target_info):  Compare symfile_objfile to NULL.
	* xcoffread.c (aixcoff_new_init):  Move deallocation stuff to
	aixcoff_symfile_finish().
1992-03-19 21:57:15 +00:00
Fred Fish dc52fc7118 Add and use definition for IN_SOLIB_TRAMPOLINE which allows wait_for_inferior
to test whether or not it has stepped into the glue that binds an
application to a shared library routine.
1992-03-19 02:26:25 +00:00
Per Bothner 2cd9998540 Some improvements to g++ debugging.
* symtab.c (list_symbols): demangle before pattern matching.
	* symtab.c:  Other fixes to improve handing of operators.
	* valprint.c (type_print_base):  Fix test for constructor.
	* values.c (value_static_field):  Allow evaluation of
	CLASS::METHOD, returning a function pointer.
1992-03-19 00:05:35 +00:00
Fred Fish c976b3499c Remove currently unused state.c and state.h files from list of files
to keep.
1992-03-18 16:45:54 +00:00
Fred Fish b0246b3bec Changes to implement the -mapped and -readnow options for commands that
read symbol tables.
1992-03-18 16:43:25 +00:00
Fred Fish 5a4470de1f Remove unused file mtrace.awk, remove entries from .Sanitize for
mtrace.awk and previously removed files.
1992-03-15 03:33:19 +00:00
Fred Fish b3916cbbf6 These files are replaced by the mmalloc library. 1992-03-15 01:13:26 +00:00
Fred Fish 3d42671fef Missed in last checkin. 1992-03-15 01:10:01 +00:00
Fred Fish 318bf84ffe Globs of changes. See the ChangeLog for details. Most related to
using the new mmalloc package.
1992-03-15 01:09:14 +00:00
Fred Fish 0750528ab6 Only enable compilation of debugging functions when IBM6000 is defined
as well as DEBUG.  Fails to compile otherwise.
1992-03-14 19:47:11 +00:00
Fred Fish 88be9b5319 Add config directory to list of things to keep. 1992-03-14 19:41:28 +00:00
John Gilmore bec9fad905 * mipsread.c (mipscoff_symfile_read): Eliminate a lot of
useless code, including an lseek to an uninitialized variable.
Reported by Jim Williams <jimbo@wrs.com>.
1992-03-14 05:40:34 +00:00
K. Richard Pixley 4db3902ad6 pass MAKEINFO down on info 1992-03-14 02:30:18 +00:00
Roland Pesch 14d01801cc (1) GDB 4.5: another Grossman/Gilmore co-production!
(2) Add fnf to GDB credits for SVr4 stuff.  (Need to sift ChangeLog again for
    more recent credits).
(3) document "mapped", "readnow" keywords (with file or symbol-file commands;
    for now no mention of add-symbol-file in this context), -m and -mapped
    cmd-line options, and associated explanations.
1992-03-14 00:07:37 +00:00
Roland Pesch 40bc68455a Run TeX *three* times to get better index, xrefs. 1992-03-14 00:05:37 +00:00
Roland Pesch d24e092258 (1) Document printmsyms; slight clarifications to description of printsyms,
printpsyms.
(2) Fix errors found by makeinfo.
(3) Initial docn for "info proc" and its subcommands.  Should probably
    be expanded somewhat after implementation complete.
1992-03-13 22:56:28 +00:00
Roland Pesch 4f98572e72 Patches from fnf for SVr4 1992-03-13 20:57:33 +00:00