Commit graph

1274 commits

Author SHA1 Message Date
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
Steve Chamberlain
fe7ca71191 Reflect file name changes 1992-03-13 16:47:29 +00:00
Per Bothner
507e40040c Mostly merged in changes from IBM (Metin); see ChangeLog. 1992-03-13 01:42:25 +00:00
Roland Pesch
8a62f15528 Reinstate "gdb-all.texi" as target. (Thanks, Rich, for the reminder). 1992-03-12 21:26:01 +00:00
Roland Pesch
6ca72cc661 .Sanitize: reflect removal of gdb-all.texi from repository
lucid.m4: config for Lucid/NCR (like "all.m4" but also turns on _LUCID__)

none.m4: turn _LUCID__ off by default

gdb.texinfo:
1) Use bold rather than italic for user input in intro, to avoid discord
   with meta-variable convention throughout manual (jim@wrs.com suggestion).
2) Some mumbling about using GDB under Energize/Cadillac.
   (conditionalized on _LUCID__, not included yet in general-doc config)
3) more remarks about debugging optimized code, incl vanishing unused vars
   (rms/gnu/net suggestion).
4) @emph replaces @i in a few spots (emphasis should affect info file as
   well as printed manual).
5) "memory tracing", "breakpoint on variable modification" index entries
   added, pointing to watchpoints (gnu suggestion).
6) Less passive, more index entries, in breakpoint-number description
7) doc new convenience var $bpnum (due to grossman?)
8) Update "info breakpoints" to describe new Grossman format; note now
   synonymous with "info watchpoints".
9) Describe negative (GDB internal) breakpoints and new "info all-breakpoints"
10) Slight change to description of colon-colon GDB expression notation,
   describing function::var as well as file::var and noting var is static
   (lmb question, gnu suggestion)
11) Doc Per's new &(&foo) for debugging C++
12) Rephrase paragraph in configure appendix to avoid overfull box
    (in *large* format!)
13) Additional warning re VPATH feature required for --srcdir= config.
    (gnu suggestion)
1992-03-12 21:15:32 +00:00
Per Bothner
6730b13987 * solib.h, infrun.c, tm-rs6000.h: Add a PID parameter
to SOLIB_CREATE_INFERIOR_HOOK macro.
1992-03-12 20:18:54 +00:00
K. Richard Pixley
ace5203312 keep ChangeLog and gdb-all.texi 1992-03-10 00:57:37 +00:00
Stu Grossman
1744d4eb1c Interface routines for Lucid's tool protocol. 1992-03-09 22:46:53 +00:00
Fred Fish
a846ac554c * symfile.h: Add prototype for iterate_over_msymbols().
* symtab.c (cplus_mangled_symbol):  Add function.
	* symtab.c (lookup_symbol):  Call cplus_mangled_symbol via
	iterate_over_msymbols to find demangled C++ symbol.
	* xcoffexec.c (relocate_minimal_symbol): Return meaningful
	value to iterate_over_msymbols().
	* xcoffexec.c (vmap_symtab):  Ignore return from iterate_over_
	msymbols().
1992-03-09 05:23:45 +00:00
K. Richard Pixley
787c6bfe70 This is the second batch of makefile changes. Libg++ makefiles were
checked in earlier.  These are Makefiles relevant to the progressive
release currently in progress.

* added exec_prefix
* default bindir now exec_prefix/bin
* default libdir now exec_prefix/lib
* default mandir now prefix/man
* default infodir now prefix/info
* added oldincludedir, default NULL
* remove all traces of the old -subdirs and -namesubdir support,
  including code, for loops, and all subdir/unsubdir stuff.
* remove old style staging targets {de-}stage[1234], comparison,
  bootstrapN, from all but the bootstrappable tools.
* added check targets.
* removed any "Last Mod" lines.
* forced copyrights to '92 and shifted some from Cygnus to FSF.
* added tooldir and program_prefix where needed.
* updated texinfo and man pages, removed all references to multiple
  hosts or targets.
1992-03-08 07:47:55 +00:00
Roland Pesch
98fe45668d Fix punctuation error in node Disabling, spotted by gnu. 1992-03-06 20:05:04 +00:00
Roland Pesch
73e44aafe1 Remove (or comment out) local-formatting commands accidentally checked in.
(Fix for info-making problems spotted by Rich.)
1992-03-06 19:58:01 +00:00
K. Richard Pixley
7e54e97feb this file will be needed as long as we use a tool that we don't support (m4) 1992-03-06 11:30:45 +00:00
John Gilmore
2d62e80754 * mips-tdep.c (heuristic_proc_start): Avoid long delays
for remote MIPS by limiting heuristic to 200 byte search.
(heuristic_proc_desc):  Byte-swapping.
(mips_print_register):  Cope with failure of
read_relative_register_raw_bytes.  Byte-swap integers for
printing.
* mips-pinsn.c (print_insn):  Byte-swap instruction.
1992-03-06 09:27:47 +00:00
John Gilmore
b67cb9d5a9 * remote.c (): Add newline to initial +.
(remote_resume):  Mention how to cope with signals.
(remote_interrupt):  Add debug msg.
(remote-wait):  Implement new 'T' reply, which includes
status, PC, and FP all in a single short message.
(putpkt):  Add further debugging of packet acks.
* Makefile.in (VERSION):  Roll to 4.4.5.
1992-03-06 09:16:52 +00:00
John Gilmore
53ccaf5fea * mipsread.c (fixup_symtab): Also swap RFD's.
(parse_partial_symbols):  Avoid bug on unknown symbol types.
1992-03-06 09:12:42 +00:00
John Gilmore
fa5628d2f5 Remove sym.h and symconst.h from 'depend'. 1992-03-06 08:57:33 +00:00
John Gilmore
a1106a1e63 * ecoff.c: Move to ../bfd/coff-msym.c.
* config/mt-*mips:  Remove ecoff.o from the configuration.
1992-03-06 08:14:01 +00:00
John Gilmore
d716b16c26 * ecoff.c: Move to ../bfd/coff-msym.c.
* config/mt-*mips:  Remove ecoff.o from the configuration.
1992-03-06 08:05:20 +00:00
Stu Grossman
1170a046bd * config.sub configure.in config/.Sanitize config/mh-irix4
gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
gdb/config/mh-irix4 texinfo/configure.in:  Port to SGI Irix-4.x.

Actually, just pick up a couple of files that I forgot.
1992-03-05 20:35:20 +00:00
Stu Grossman
407a8389b4 * config.sub configure.in config/.Sanitize config/mh-irix4
gdb/.Sanitize gdb/configure.in gdb/mips-tdep.c gdb/mipsread.c
gdb/procfs.c gdb/signame.h gdb/tm-irix3.h gdb/tm-mips.h
gdb/xm-irix4.h gdb/config/.Sanitize gdb/config/mt-irix3
gdb/config/mh-irix4 texinfo/configure.in:  Port to SGI Irix-4.x.
1992-03-05 20:20:27 +00:00
Fred Fish
d7eddc5177 * defs.h, utils.c: xrealloc takes PTR as first arg.
* defs.h:  Reword confusing comment about ANSI prototypes.
	* defs.h:  Some minor whitespace changes.
	* infrun.c (wait_for_inferior):  Compare int tmp to int 0,
	not NULL, which can be (void *).
	* tm-amix.h, tm-i386v4.h:  Add defines for setjmp/longjmp handling.
	* tm-i386v.h (SP_ARG0):  Define
	* xm-sysv4.h:  Back out of change for missing prototypes.
	* i386-tdep.c (get_longjmp_target):  Add function.
1992-03-04 20:50:10 +00:00
Roland Pesch
c7cb8acbe8 H8/300 config, startup doc, and related mods. 1992-03-04 01:08:47 +00:00
Michael Tiemann
d747e0af3d Tue Mar 3 15:11:52 1992 Michael Tiemann (tiemann@cygnus.com)
* All GDB files that #include defs.h: Removed stdio.h.
	(defs.h): #include stdio.h.

This has been tested by building GDBs for all targets hosted on Sun4.
None of the build problems were related to stdio.h inclusion.  (n.b.
many configurations don't build for other reasons.)
1992-03-03 23:26:26 +00:00
Steve Chamberlain
8f869b4551 * printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
it before printing out the hex shape of an address.
1992-03-03 07:07:26 +00:00
Steve Chamberlain
96743d3c30 * gdbtypes.c (lookup_pointer_type): initialize the TYPE_LENGTH of
a ptype to reflect the setting of TARGET_PTR_BIT.  Set the
	TYPE_FLAGS of a ptype to TYPE_FLAG_UNSIGNED.
	* tm-h8300.h, h8300-tdep.c, remote-hms.c: personal checkpoint
	* printcmd.c (print_address): if ADDR_BITS_REMOVE is defined, use
	it before printing out the hex shape of an address.
1992-03-03 07:05:23 +00:00
Fred Fish
bff1c97a66 Check in ChangeLog entries for the recent massive changes for prototypes,
objfile changes, etc.
1992-03-02 23:38:23 +00:00
Per Bothner
4ef09e3613 * rs6000-xdep.c (frame_initial_stack_address): Move
code to set frame->cache_fsr into new separate function
	frame_get_cacahe_fsr.  This allows fixing a fatal error.
	* xcoffexec.c:  Turn previously suppressed error
	message back on, after cleaning up BFD.
1992-03-02 06:46:32 +00:00
Per Bothner
6c6afbb92b More changes, mostly from IBM for rs6000. (See ChangeLog.) 1992-03-02 01:55:31 +00:00
Fred Fish
4b8333deca xm-sysv4.h: Provide definitions/prototypes for host environment
functions for which no definitions or prototypes are provided in
any currently included gdb or host environment header files.
For SVR4, this currently includes malloc and realloc, which cannot
be portably prototyped in any gdb include file.
1992-03-01 21:20:04 +00:00
Per Bothner
a6f40e9453 Forgot these two from previous check-in of rs6000 stuff. 1992-03-01 01:08:35 +00:00
Per Bothner
2b5a8d9c47 More changes, mostly from IBM, for the rs6000. See ChangeLog. 1992-03-01 01:04:13 +00:00
Per Bothner
818de002b6 Mostly rs6000 changes from IBM. 1992-02-29 06:03:43 +00:00
Stu Grossman
8537ba607b * breakpoint.c (breakpoint_re_set_one): Don't reset breakpoint
unless symbol table indicates that something has changed.
1992-02-28 04:10:02 +00:00
John Gilmore
b543979cda * remote.c: Make it work for embedded MIPS. Increase buffer
size, and use throughout.  Round buffer size up if too many regs.
Support baud rate setting and try for an 8-bit path.  If
interrupted while waiting for target, send a ^C down the wire.
Avoid single-byte reads.
* tm-mips.h:  Add more embedded-system registers to REGISTER_NAMES
and NUM_REGS.
* mips-xdep.h:  Avoid the embedded regs when on Unix.
1992-02-28 03:26:45 +00:00
Roland Pesch
e94b4a2b4c * Phrasing of "disassemble" description improved (less wordy, avoids widow in
small format)
* typo in index entry type fixed
* example of nonexistent configuration, in config appendix, slightly more
  far-fetched
1992-02-28 00:42:40 +00:00
Roland Pesch
9941f866a5 Added disclaimer (requested by WRS) on how procedures described for
connecting to VxWorks may change in future releases of VxWorks.
1992-02-28 00:39:11 +00:00
John Gilmore
d141f3e30d * mipsread.c: Byte-swap the symbol table structures, using
routines from ecoff.c, to read a symbol table written in any
of the four possible byte orders.
1992-02-28 00:37:03 +00:00
John Gilmore
238025a44b * config/mt-bigmips, config/mt-littlemips: Add ecoff.o. 1992-02-27 19:56:52 +00:00
John Gilmore
069bc45432 * configure.in (mips-big-* target): Same as Sony News.
* config/mt-bigmips, config/mt-littlemips:  Add ecoff.o.
* ecoff.c:  New file for symbol swapping routines.
1992-02-27 19:56:28 +00:00
Stu Grossman
36a19fdc5b Fix cvs merge fuckup. 1992-02-27 17:50:06 +00:00
Stu Grossman
80ba48f58c * breakpoint.c (all_breakpoints_info, breakpoint_1): Add 'info
all-breakpoints' command.
* (get_number):  Allow users to enter negative breakpoint numbers.
* (breakpoint_1):  Reformat display of 'info break' to show new
fields.
* (create_longjmp_breakpoint, breakpoint_re_set,
breakpoint_re_set_one, enable/disable_longjmp_breakpoint),
symfile.c  (syms_from_objfile):  Re-do
insertion of longjmp breakpoints.  Move all code into
breakpoint_re_set, and call that instead of
create_longjmp_breakpoint in symfile.c.
1992-02-27 17:45:02 +00:00
John Gilmore
cba0d141fb * breakpoint.h (ALL_BREAKPOINTS_SAFE): Add.
* breakpoint.c (breakpoint_re_set):  Use ALL_BREAKPOINTS_SAFE.
* symtab.c (find_pc_symtab):  Handle having no objfiles.
* infcmd.c:  Fix comment.
* objfiles.c (free_all_objfiles):  Add.
* symfile.h (ALL_OBJFILES, ALL_OBJFILES_SAFE):  Add.
* symfile.c (symbol_file_command):  free all objfiles when
specifying a new symbol file.
(reread_symbols):  Stat the file name, don't fstat the descriptor.
1992-02-27 16:28:59 +00:00
John Gilmore
5c83e859b9 Update `dependency' files so that Make will build the right things at
the right times.
1992-02-27 14:24:36 +00:00
John Gilmore
03686a4064 Remove running log from .Sanitize. 1992-02-27 14:15:41 +00:00
Roland Pesch
5e3186ab81 Fix one overlooked instance of "+" option prefix in configure appendix. 1992-02-25 23:49:22 +00:00
Fred Fish
a1f596f4fa Add gdbtypes.c gdbtypes.h minsyms.c mmap-alloc.c mmap-sbrk.c objfiles.c
solib.h state.c and state.h
1992-02-23 05:25:21 +00:00
John Gilmore
47890ed736 Roll VERSION to 4.4.4 for post-Stu changes. 1992-02-22 10:17:37 +00:00
John Gilmore
3531811073 * symfile.c (symbol_file_command): strcmp => !strcmp.
* breakpoint.h:  Move prototypes to follow enum definition they need.
* breakpoint.c, infrun.c:  Lint.
* printcmd.c:  Use `enum enable' rather than `enum
display_status'.
* mipsread.c:  First pass at making it compile with the new
objfile changes.  Probably seriously broken still, but it
compiles.  FIXME.
1992-02-22 10:04:50 +00:00
John Gilmore
93fe4e330e Saberlint.
* symmisc.c, xcoffread.c:  Move debug functions to symmisc.c.
1992-02-22 09:16:11 +00:00
Stu Grossman
30875e1c4b * infrun.c, infcmd.c, breakpoint.c, main.c, symfile.c,
breakpoint.h, tm-sun4os4.h, tm-sparc.h, sparc-tdep.c, tm-mips.h,
mips-tdep.h, tm-sun3.h, tm-68k.h, m68k-tdep.h:  Add support for
stepping (and nexting) through longjmp().  Also, cleanup
breakpoint handling quite a bit by creating explicit breakpoint
types instead of using magic breakpoint numbers.
Makefile.in:  Update version to 4.4.3
1992-02-22 09:06:58 +00:00
John Gilmore
021959e249 * xm-sun3os4.h, xm-sun4os4.h: Enable HAVE_MMAP.
* minsyms.c (install_minimal_symbols):  Add bunches to any
existing minsyms in the objfile.  Avoid extra mallocation
by working directly in the obstack.  Remove ignored `mainline' parm.
* coffread.c, dbxread.c, elfread.c, mipsread.c, solib.c, symtab.h,
xcoffread.c:  Change all callers.
* FIXME:  We should be able to eliminate MAINLINE from all the
symbol readers now, with a small bit of work.

* valops.c, value.h:  Lint.
* remote-vx.c:  Add missing break; statement.  Bugfix by
Michael Sclafani, <sclafani@src.dec.com>.
1992-02-22 08:17:01 +00:00
John Gilmore
1ab3bf1b14 * Check in Fred Fish's changes in these modules. Fred
will make ChangeLog entries for all of them.
1992-02-22 01:46:16 +00:00
John Gilmore
7919c3ed86 * tm-sparc.h, tm-sysv4.h, solib.h: Move shared lib definitions
into solib.h.
* sparc-pinsn.c, sparc-tdep.c, standalonec, sun3-xdep.c,
sun386-xdep.c, symm-xdep.c, target.c, ultra3-xdep.c, utils.c,
value.h: Prototypes for static functions; lint.
* gdbtypes.h:  Empty file to ease transition.
1992-02-21 03:35:37 +00:00
John Gilmore
5b0267410c * xm-amix.h, xm-i386v4.h, xm-stratus.h: Define NORETURN to avoid
complaints about volatile functions.
* xm-sysv4.h (HAVE_MMAP):  Define.
1992-02-21 01:40:57 +00:00
John Gilmore
ee0613d186 * core.c, exec.c, solib.c: Rename target_ops sections =>
to_sections, etc.
* infcmd.c, inflow.c, infptrace.c, infrun.c, main.c, target.c,
target.h:  target_kill takes no args.
1992-02-21 01:35:32 +00:00
John Gilmore
e17960fb42 * core.c, eval.c, exec.c, inftarg.c, remote-adapt.c, remote-eb.c,
remote-hms.c, remote-mm.c, remote-nindy.c, remote-vx.c, remote.c,
target.c, target.h, valarith.c, valops.c, value.h, xcoffexec.c:
Remove to_call_function and target_call_function, since it
always calls the same thing (call_function_by_hand).
1992-02-21 01:34:46 +00:00
John Gilmore
7ed0f002ed * core.c, exec.c, infrun.c, inftarg.c, language.c, remote.c,
signame.c, sparc-xdep.c: Prototypes for all static functions.  Lint.
1992-02-21 01:33:14 +00:00
John Gilmore
75af490bd2 * environ.h, expression.h, frame.h, gdbcmd.h, gdbcore.h,
inferior.h, language.h, signame.h, target.h, terminal.h,
tm-68k.h, tm-i386v.h, tm-sparc.h, tm-sun386.h, tm-symmetry.h,
xm-i386v.h, xm-sparc.h: Prototypes for all external functions.
Lint.
1992-02-21 01:31:56 +00:00
John Gilmore
088c3a0b74 * defs.h: Include ansidecl.h and PARAMS macro. Use PARAMS
to make prototypes for all functions declared here.
* cplus-dem.c:  Avoid declaring xmalloc and xrealloc.
* c-exp.y:  Rename SIGNED, OR, and AND to avoid conflict.
* environ.c:  Include <stdio.h> before defs.h.  Minor cleanup.
* ieee-float.h:  Use PARAMS for prototypes; make some params const.
* ieee-float.c, valarith.c:  Include <stdio.h>.  Lint.  b*=>mem*.
* m2-exp.y:  Remove unused CONST; Rename OR and AND.
* utils.c:  Avoid declaring malloc and realloc.  Lint.
(request_quit):  Accept signal-number parameter.
1992-02-20 19:23:42 +00:00
John Gilmore
be8303da55 * coffread.c (decode_base_type): Pass long, not union.
Fix by Eric Valette, ev@chorus.fr.
1992-02-20 05:25:34 +00:00
Fred Fish
9e4c1921e5 Add code to handle TAG_pointer_type DIE's (DWARF Information Entries)
that are produced by the i486/SVR4 MetaWare compiler, but not by the
AT&T or GCC compilers.
1992-02-17 23:26:54 +00:00
Fred Fish
af21362450 When creating user defined types for subroutine and array types, check
first to see if a partial type already exists due to a forward reference,
and if so, bash it to fit.
1992-02-17 15:23:05 +00:00
Roland Pesch
195758fa2a Fix missing user-font lines in introductory example (spotted by J Irwin,
WRS).
1992-02-16 01:39:35 +00:00
Fred Fish
d35bf52d93 Fix code in elf_symtab_read which attempts to read the standard ELF
symbol table and add symbol information to the misc function vector.
This allows minimum functionality with non -g compiled code, and is
vital for use with shared libraries (non of which are currently
compiled with -g).

Note to anyone doing any SVR4/gdb work.  This bug was introduced into
gdb just prior to the gdb 4.4 release, thus any versions currently
in the field will have broken shared library support since no symbol
information at all will be available for the shared library.  This
fix, along with one about to go into bfd's elf.c should fix that
problem.
1992-02-14 01:22:12 +00:00
Stu Grossman
5b620e7567 * xm-vaxbsd.h: Close off comment. 1992-02-13 20:44:23 +00:00
Heinz G. Seidl
26ca719c03 terminated unterminated comment 1992-02-13 19:39:48 +00:00
Fred Fish
0a663e9eb9 Define NEED_POSIX_SETPGID for all SVR4 hosts. 1992-02-13 15:47:18 +00:00
Sean Eric Fagan
b745cf362d Added mh-apollo68v and mt-os68k as files-to-keep. 1992-02-11 00:16:18 +00:00
Sean Eric Fagan
d5231b0895 Added a68v-xdep.c os68k-xdep.c, tm-os68k.h, and xm-apollo68v.h as files-
to-keep.
1992-02-11 00:14:59 +00:00
Sean Eric Fagan
5e4d4b0f32 all: Don't include <sys/file.h> if NO_SYS_FILE is defined. On the Apollo,
this file does not exist, and not including it hasn't seemed to
	cause problems.
main.c:  Use the proper enum's in the options structure initialization;
	the Apollo compiler chokes on this.
1992-02-11 00:01:35 +00:00
Sean Eric Fagan
b159ce3f16 Makefile.in: Removed some '#''s that caused an extraneous include of
the host/site/target files.
configure.in:  Added support for hosting on an Apollo Series 400, and
	targeting on an OS/68k machine.
1992-02-10 23:58:50 +00:00
Sean Eric Fagan
93deef92f4 Added support for hosting on an Apollo Series 400 (under System V emulation),
and targeted towards an OS/68000 system.
1992-02-10 23:31:40 +00:00
Sean Eric Fagan
36a2f895f8 Added support for hosting on an Apollo Series 400 processor (under
System V emulation), and targeted towards an OS/68000 system.
1992-02-10 23:30:35 +00:00
K. Richard Pixley
bcdbe02f82 In configure{.in} {host|target}_makefile_frag should name a file
relative to srcdir.  I think it now does.  configure has been
corrected.  configure.texi has been clarified.
1992-02-08 08:57:08 +00:00
Stu Grossman
88c52c297c Add xm-vaxbsd.h and xm-vaxult.h to .Sanitize. Add mh-vaxbsd and mh-vaxult,
remove mh-vax from config/.Sanitize.
1992-02-07 22:58:40 +00:00
John Gilmore
256269fc92 * buildsym.c (read_struct_type): Avoid double-bump of parse ptr
in the op$::OPERATOR. case.  From Steven McCanne, <mccanne@horse.ee.lbl.gov>.
1992-02-07 16:23:57 +00:00
John Gilmore
ef9b1bc915 * exec.c (set_section_name): Pass arg to exec_files_info;
only call it if interactive.  From Francis Kauth <fk@tv.tv.tek.com>.
1992-02-07 15:57:32 +00:00
Michael Tiemann
c556c4267b Add ${srcdir} for makefile_frags. 1992-02-07 07:52:08 +00:00
John Gilmore
195853fc65 * main.c (print_gdb_version): Copyright msg: only this year.
(cd_command):  Avoid changing current_directory on error.
1992-02-07 01:43:22 +00:00
Per Bothner
ee17fd3437 * mipsread.c (parse_partial_symbols): Handle dependencies
between partial symbol tables (when not doing stabs-in-ecoff).
	(This used to be handled by parse_fdr, but parse_fdr was
	incompatible with handling stabs-in-ecoff, so the code
	was re-written to not use parse_fdr.  Unfortunately,
	the logic to handle dependencies was overlooked.)
1992-02-06 23:24:30 +00:00
Steve Chamberlain
1f46923ff4 * coffread.c (read_enum_type): Use the size of a target int when
describing enum.
	* defs.h: added new #define for TARGET_PTR_BIT, defaults to size
	of target int.
	* h8300-tdep.c, remote-hms.c, tm-h8300.h: too many changes to count
	* symtab.c (lookup_reference_type, lookup_ptr_type): use
	TARGET_PTR_BIT to determine size of a pointer
	* values.c (unpack_long): when unpacking a REF or a PTR don't
	assume the size of the type.
1992-02-06 20:03:31 +00:00
John Gilmore
778c358df8 * mipsread.c (parse_symbol): Avoid clobbering enum pointer when
looking at its members.  Improve guess between struct and union,
only assuming union if multiple members have offsets of zero.
1992-02-06 06:33:15 +00:00
Per Bothner
bd49ef36c2 Mips-specific bug-fix (for stabs-in-ecoff), and style fix. See ChangeLog. 1992-02-05 02:14:31 +00:00
Stu Grossman
9e8bf29afd * xm-vax.h, xm-vaxult.h, xm-vaxbsd.h, config/mh-vaxult,
config/mh-vaxbsd, configure.in:  Split up config stuff for Vaxen
into BSD and Ultrix.
1992-02-01 12:46:55 +00:00
John Gilmore
96499e9638 Call malloc, not xmalloc, when we check the result and recover from errors. 1992-02-01 12:41:01 +00:00
Stu Grossman
dafe57bc50 VERSION should have been 4.4.1, not 4.5... 1992-02-01 12:39:08 +00:00
Stu Grossman
98f03b9114 * Makefile.in: Increment version to 4.5.
* main.c (print_gdb_version):  Update copyright notice.
1992-02-01 12:20:10 +00:00
Stu Grossman
3671f1fd31 * xm-vax.h: #ifndef ultrix around #include of endian.h and
limits.h (sigh).
1992-02-01 05:47:28 +00:00
John Gilmore
5dfd2a9bfb Avoid references to files that aren't assigned to FSF. 1992-02-01 02:40:06 +00:00
John Gilmore
053332ef95 Typo of my own 1992-02-01 02:26:43 +00:00
Stu Grossman
4571619eb3 threecol.tex no longer exists. 1992-02-01 02:22:07 +00:00
John Gilmore
75c86b57d2 Update WHATS.NEW for gdb-4.4 release. 1992-02-01 02:09:19 +00:00
John Gilmore
9834995918 A typo and a thinko. 1992-02-01 01:45:02 +00:00
John Gilmore
575945e328 Update for gdb-4.4 release. 1992-02-01 01:44:31 +00:00
Stu Grossman
a8cd573f81 foo 1992-02-01 01:31:31 +00:00
Stu Grossman
17cd0f82c1 Distribute lpsrc.sed, remove rc-*. 1992-02-01 00:41:18 +00:00
John Gilmore
75110a6faf Update comments to make it clear that the copyright status is UNCLEAR. 1992-02-01 00:18:44 +00:00
John Gilmore
379a468647 Comment changes. 1992-02-01 00:17:31 +00:00
John Gilmore
24e7d5bac2 Remove references to i860 files whose copyrights have not been assigned
to FSF yet.
1992-02-01 00:03:05 +00:00
John Gilmore
5f8ec562aa Remove i860 files, which do not have clear copyright assignments. 1992-01-31 23:51:44 +00:00
John Gilmore
f006dac1ba Half-updated version for Stu to work on. 1992-01-31 23:17:40 +00:00
John Gilmore
4cc9f7e22c Remove some entries that were already recorded on Dec 11th. 1992-01-31 22:35:49 +00:00
John Gilmore
ee7270cdca * Projects: Patching executables is done.
* Makefile.in (VERSION):  Roll to gdb-4.4.
* README:  Update for gdb-4.4.
1992-01-31 22:16:45 +00:00
John Gilmore
4a1dcb7f7f * symfile.c (reread_symbols): Whenever we reread one object
file's symbols, we must restart the scan, because the object_files
chain has been permuted.
1992-01-31 20:37:24 +00:00
John Gilmore
b8bb4a24e0 Use regex package on Vax BSD. 1992-01-31 08:52:21 +00:00
John Gilmore
0c6efbccaf * language.c, language.h: Make some things const.
* expression.h, main.c:  const spreads like ooze.
1992-01-31 08:50:52 +00:00
John Gilmore
287f81eb64 * xm-vax.h: Include some system include files before our own
definitions in defs.h.
1992-01-31 08:49:34 +00:00
John Gilmore
8c37855922 * exec.c (exec_files_info): Split out into print_section_info.
Print BFD filename of each section if it's not the default one.
* core.c (core_files_info):  Call print_section_info.
1992-01-31 08:45:11 +00:00
Stu Grossman
d58ea9967b * infrun.c, xm-i386sco.h: SCO needs to use setpgid().CVS: 1992-01-31 01:24:34 +00:00
Stu Grossman
d7b524c09e Bump VERSION to 4.3.92. 1992-01-31 00:41:28 +00:00
Stu Grossman
92732c2789 * bfd/configure.in, config/mh-sco, gdb/config/mh-i386sco,
gdb/config/mt-i386v32, gdb/configure.in, readline/configure.in:
Fix SCO configuration stuff.
1992-01-31 00:24:21 +00:00
John Gilmore
32c298e08f * sparc-pinsn.c: Remove kludge for preferring architectures.
Remove #ifdef's for SORT_NEEDED.  We need to sort the table, now
and forever.  Add `add' instruction to the set that get checked
for a preceding `sethi' in order to print an absolute address.
Corresponding changes in ../include/opcode/sparc.h needed
to eliminate garbage instructions.
1992-01-30 09:06:49 +00:00
Per Bothner
d4ea2aba3a Various fixed triggered by trying to do the right thing wrt
to external symbols in mips ecoff binaries.  See ChangeLog.
1992-01-30 03:56:32 +00:00
Stu Grossman
0515163751 * sparc-pinsn.c (compare_opcodes): Make it prefer v6, v7,
cypress, v8 mnemonics in that order.
1992-01-30 03:01:00 +00:00
Per Bothner
4a074bea28 Put the qsort() back in in sparc-pinsn.c 1992-01-29 01:33:48 +00:00
Roland Pesch
69bbcf05f4 Credits for GDB 4.4 (and correction to credits for 3.9). 1992-01-29 01:27:36 +00:00
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