Per Bothner [Fri, 20 Sep 1991 00:15:19 +0000 (00:15 +0000)]
Define HAVE_STRSTR.
John Gilmore [Thu, 19 Sep 1991 22:48:16 +0000 (22:48 +0000)]
Add language.h.
John Gilmore [Thu, 19 Sep 1991 22:39:58 +0000 (22:39 +0000)]
Minor fixes
John Gilmore [Thu, 19 Sep 1991 22:39:39 +0000 (22:39 +0000)]
* mipsread.c (_initialize_mipsread): Avoid using
builtin_type_void at initialize time.
(mipscoff_symfile_read): use it now.
Sean Eric Fagan [Thu, 19 Sep 1991 22:28:00 +0000 (22:28 +0000)]
*** empty log message ***
John Gilmore [Thu, 19 Sep 1991 22:16:40 +0000 (22:16 +0000)]
* c-exp.y, m2-exp.y: Lint.
* m2-exp.y: Avoid using yytname[] which is a Bison-ism.
John Gilmore [Thu, 19 Sep 1991 22:16:24 +0000 (22:16 +0000)]
Circumvent Sun Make bug on *-exp.tab.o.
Steve Chamberlain [Thu, 19 Sep 1991 21:05:02 +0000 (21:05 +0000)]
Stuff for new machiens
Steve Chamberlain [Thu, 19 Sep 1991 21:04:59 +0000 (21:04 +0000)]
Initial revision
Steve Chamberlain [Thu, 19 Sep 1991 21:04:10 +0000 (21:04 +0000)]
Modifications from James Tsillas for 386 and 68k machines
Steve Chamberlain [Thu, 19 Sep 1991 21:03:09 +0000 (21:03 +0000)]
Support for 386 and 68k machines
Steve Chamberlain [Thu, 19 Sep 1991 20:54:31 +0000 (20:54 +0000)]
*** empty log message ***
John Gilmore [Thu, 19 Sep 1991 11:51:26 +0000 (11:51 +0000)]
Lint
John Gilmore [Thu, 19 Sep 1991 11:48:49 +0000 (11:48 +0000)]
Andrew Beers' changes for Modula-2 support.
John Gilmore [Thu, 19 Sep 1991 11:43:22 +0000 (11:43 +0000)]
* language.h, language.c: New files for language-specific macros,
declarations, and definitions.
John Gilmore [Thu, 19 Sep 1991 11:42:25 +0000 (11:42 +0000)]
Eliminate uses of working_lang.
John Gilmore [Thu, 19 Sep 1991 10:44:20 +0000 (10:44 +0000)]
* valprint.c (type_print_base): Avoid printing garbage for ints
of unusual sizes.
(_initialize_valprint): Warn about host/target size assumption;
improve long long support slightly.
John Gilmore [Thu, 19 Sep 1991 10:40:34 +0000 (10:40 +0000)]
Add M2 to what's new.
John Gilmore [Thu, 19 Sep 1991 10:40:03 +0000 (10:40 +0000)]
Cope with new files and removed files for Modula-2 support.
John Gilmore [Thu, 19 Sep 1991 10:31:00 +0000 (10:31 +0000)]
* parse.c: New file with the common code remains of expread.y.
* expread.y, expread.tab.c: Remove.
* parser-defs.h: New file with common declarations from expread.y.
* c-exp.y: New file with the C parser from expread.y.
* m2-exp.y: New file with the Modula-2 parser.
John Gilmore [Thu, 19 Sep 1991 10:27:17 +0000 (10:27 +0000)]
* symtab.c (_initialize_symtab): Remove builtin type
definition and initialization to *-exp.y.
(lookup_primitive_typename): Use language-dependent vector.
(lookup_typename): Fix bug, make it work if primitive typename.
(lookup_unsigned_typename): Call above.
(create_array_type): Set up range type for array index.
(list_symbols): Call typedef_print to print typedefs.
(Currently #ifndef FIXME'd out awaiting integration.)
John Gilmore [Thu, 19 Sep 1991 09:13:50 +0000 (09:13 +0000)]
Output hex with local_hex_string for Modula-2 support.
John Gilmore [Thu, 19 Sep 1991 08:51:16 +0000 (08:51 +0000)]
* main.c (execute_command): Warn as language changes automatically.
(main): If error() is called during early initialization, print
its message and then exit(1) from GDB.
John Gilmore [Thu, 19 Sep 1991 08:31:37 +0000 (08:31 +0000)]
* stack.c (frame_info): Print language of stack frame.
(select_frame): Also select language, if in auto-mode.
(get_frame_language): New subroutine.
Output hex with local_hex_string for Modula-2 support.
John Gilmore [Thu, 19 Sep 1991 07:40:51 +0000 (07:40 +0000)]
Use parse_expression and parse_exp_1 rather than
parse_c_expression and parse_c_1.
John Gilmore [Thu, 19 Sep 1991 07:39:54 +0000 (07:39 +0000)]
Output hex with local_hex_string for Modula-2 support.
John Gilmore [Thu, 19 Sep 1991 03:07:56 +0000 (03:07 +0000)]
* values.c (unpack_long, value_from_longest): Handle
TYPE_CODE_BOOL and TYPE_CODE_CHAR.
John Gilmore [Thu, 19 Sep 1991 02:55:30 +0000 (02:55 +0000)]
Modula-2 support:
* defs.h (local_hex_format, local_hex_string): Add.
John Gilmore [Thu, 19 Sep 1991 02:54:17 +0000 (02:54 +0000)]
* breakpoint.c (breakpoint_cond_eval): Use new value_true to test
breakpoint condition language-independently.
Output hex with local_hex_string for Modula-2 support.
John Gilmore [Thu, 19 Sep 1991 02:40:29 +0000 (02:40 +0000)]
* i386-xdep.c, pyr-tdep.c, pyr-xdep.c, remote-vx.c, solib.c,
source.c, symfile.c, dbxread.c: Output hex with local_hex_string for
Modula-2 support.
John Gilmore [Thu, 19 Sep 1991 02:32:35 +0000 (02:32 +0000)]
* symfile.c (allocate_symtab): New fn, consolidates the work
of allocating and initializing a new struct symtab. Set the
language of the symtab based on its filename extension.
* symfile.h: Declare it.
* mipsread.c (new_symtab): Use it. Minor formatting changes.
* dbxread.c (end_symtab): Use it.
* mipsread.c (parse_symbol, case stParam and stProc): Add #if 0'd
code for saving types of parameters with each function definition.
* dbxread.c (define_symbol, function and parameter cases): Ditto.
(read_dbx_symtab, case N_DEFD): Ignore.
(read_enum_type): Recognize FALSE/TRUE enum as Modula-2 BOOLEAN
type.
(read_range_type): Rename MAX_OF_TYPE to MAX_OF_C_TYPE, etc.
#if 0 out its uses, though, since they set a dead value.
* coffread.c (end_symtab): Use allocate_symtab.
(process_coff_symbol): #if 0'd for functions and params as above.
(read_enum_type): Recognize Modula-2 BOOLEAN.
Roland Pesch [Thu, 19 Sep 1991 02:20:06 +0000 (02:20 +0000)]
Update _MACH_DEP__ macro to be consistent with node references in both
generic and one-machine manuals.
Roland Pesch [Thu, 19 Sep 1991 02:18:43 +0000 (02:18 +0000)]
Structural cleanups (node structure and M4 preprocessing structure);
minor proofreading in passing. More modest editorial attribution.
John Gilmore [Wed, 18 Sep 1991 23:24:51 +0000 (23:24 +0000)]
* convex-tdep.c (comm_registers_info): Avoid parsing decimal and
hex -- let parse_and_eval_address do it.
John Gilmore [Wed, 18 Sep 1991 23:16:45 +0000 (23:16 +0000)]
* i387-tdep.c: New file, consolidates most 80387 support,
and eliminates host dependency on double<->extended conversions.
* i386-xdep.c, symm-xdep.c: Remove most 387 support.
* xconfig/i386{sco,v,v-g,v32,v32-g}: Now need i387-tdep.o.
John Gilmore [Wed, 18 Sep 1991 23:15:20 +0000 (23:15 +0000)]
* i386-xdep.c, symm-xdep.c: Remove most 387 support.
* i386-xdep.c: Output hex with local_hex_string for Modula-2 support.
John Gilmore [Wed, 18 Sep 1991 23:00:51 +0000 (23:00 +0000)]
* i387-tdep.c: New file, consolidates most 80387 support,
and eliminates host dependency on double<->extended conversions.
John Gilmore [Wed, 18 Sep 1991 22:56:28 +0000 (22:56 +0000)]
Doc how to add a language.
Stu Grossman [Wed, 18 Sep 1991 00:45:04 +0000 (00:45 +0000)]
sgi/irix support.
Stu Grossman [Tue, 17 Sep 1991 23:41:34 +0000 (23:41 +0000)]
Initial revision
Stu Grossman [Tue, 17 Sep 1991 23:40:08 +0000 (23:40 +0000)]
sgi/irix config stuff.
Per Bothner [Tue, 17 Sep 1991 19:47:28 +0000 (19:47 +0000)]
In mipsread.c (parse_symbol), put non-static procedures
in the global block.
John Gilmore [Tue, 17 Sep 1991 14:54:12 +0000 (14:54 +0000)]
Add GNU Modula-2 debug stab, from Andrew Beers.
Stu Grossman [Tue, 17 Sep 1991 08:21:58 +0000 (08:21 +0000)]
Add config directory.
Stu Grossman [Tue, 17 Sep 1991 08:11:00 +0000 (08:11 +0000)]
Whoops! Make that #ifndef USG, not #ifdef
Stu Grossman [Tue, 17 Sep 1991 08:10:16 +0000 (08:10 +0000)]
#include <sys/ptrace.h>
Stu Grossman [Tue, 17 Sep 1991 06:57:44 +0000 (06:57 +0000)]
sgi/irix config stuff.
Stu Grossman [Tue, 17 Sep 1991 06:55:07 +0000 (06:55 +0000)]
sgi/irix support.
Stu Grossman [Tue, 17 Sep 1991 05:17:00 +0000 (05:17 +0000)]
Fix signed vs. unsigned char bug in parse_lines().
Stu Grossman [Tue, 17 Sep 1991 01:27:55 +0000 (01:27 +0000)]
Put back definition of offsetof. Only define it if it's not defined on this
system.
John Gilmore [Tue, 17 Sep 1991 00:25:07 +0000 (00:25 +0000)]
Small fixes from Peter Schauer:
* infrun.c (child_attach): Lint.
* solib.c (find_solib): Handle shared libs version 2.
Stu Grossman [Mon, 16 Sep 1991 23:48:33 +0000 (23:48 +0000)]
Remove o_offsetof BS. Use local def if available.
Stu Grossman [Mon, 16 Sep 1991 23:17:02 +0000 (23:17 +0000)]
sgi/irix configuration stuff.
John Gilmore [Mon, 16 Sep 1991 21:57:02 +0000 (21:57 +0000)]
Typo, caught by David Wood.
John Gilmore [Fri, 13 Sep 1991 07:55:28 +0000 (07:55 +0000)]
Add tm-ultra3.h
John Gilmore [Fri, 13 Sep 1991 07:52:09 +0000 (07:52 +0000)]
Minor bugfixes after trying to get a 29K target to build.
John Gilmore [Fri, 13 Sep 1991 07:22:50 +0000 (07:22 +0000)]
* inferior.h: Eliminate CANNOT_EXECUTE_STACK in favor of
defining CALL_DUMMY_LOCATION as BEFORE_TEXT_END. This is
because machines that do this will also have to know to
set NEED_TEXT_START_END. Besides, it was a redundant way to
say the same thing.
* tm-29k.h, tm-convex.h, tm-np1.h: Eliminate
CANNOT_EXECUTE_STACK, define CALL_DUMMY_LOCATION and
NEED_TEXT_START_END.
John Gilmore [Fri, 13 Sep 1991 07:22:01 +0000 (07:22 +0000)]
* exec.c (exec_command): If NEED_TEXT_START_END, define the
variables and set them based on the exec file.
* am29k-tdep.c: declare text_start.
* valops.c (call_function_by_hand): declare text_end.
John Gilmore [Fri, 13 Sep 1991 06:38:44 +0000 (06:38 +0000)]
Support aout and coff, as well as none, as "OS" settings for remote 29K GDB.
John Gilmore [Fri, 13 Sep 1991 06:16:32 +0000 (06:16 +0000)]
Missing quote fries it.
John Gilmore [Fri, 13 Sep 1991 05:24:00 +0000 (05:24 +0000)]
Use simpler name (that matches bfd/config/h-ultra3!)
John Gilmore [Fri, 13 Sep 1991 05:17:53 +0000 (05:17 +0000)]
Removes sparc-opcode.h rather than the file it is sanitizing, if not testing!
(fixed...)
John Gilmore [Fri, 13 Sep 1991 05:13:34 +0000 (05:13 +0000)]
tm-ultra3.h slipped thru the cracks...
John Gilmore [Fri, 13 Sep 1991 05:10:43 +0000 (05:10 +0000)]
* tm-ultra.h: New file, for use on Ultra3 Unix as well as for
remote debugging of Ultra3 kernel. Includes tm-29k.h and
overrides various things.
John Gilmore [Fri, 13 Sep 1991 03:59:44 +0000 (03:59 +0000)]
Third time's a charm.
John Gilmore [Fri, 13 Sep 1991 03:56:25 +0000 (03:56 +0000)]
Ultracomputer
John Gilmore [Fri, 13 Sep 1991 03:54:45 +0000 (03:54 +0000)]
New Ultracomputer/29000 stuff.
John Gilmore [Fri, 13 Sep 1991 03:53:58 +0000 (03:53 +0000)]
AMD 29000 stuff
John Gilmore [Fri, 13 Sep 1991 03:20:18 +0000 (03:20 +0000)]
One more try at top-level sanity on config.sub
John Gilmore [Fri, 13 Sep 1991 03:11:27 +0000 (03:11 +0000)]
Clean out "v9" stuff from here, and propagate configure and config.sub
to all lower directories after sanity sets in.
John Gilmore [Fri, 13 Sep 1991 03:09:24 +0000 (03:09 +0000)]
Lint
John Gilmore [Fri, 13 Sep 1991 03:00:28 +0000 (03:00 +0000)]
Lint
John Gilmore [Fri, 13 Sep 1991 02:50:40 +0000 (02:50 +0000)]
Update with improved text.
John Gilmore [Fri, 13 Sep 1991 02:39:32 +0000 (02:39 +0000)]
Update these for new modules and new inclusions.
John Gilmore [Fri, 13 Sep 1991 02:19:57 +0000 (02:19 +0000)]
Propagate
John Gilmore [Fri, 13 Sep 1991 01:56:55 +0000 (01:56 +0000)]
Remove generic "am29k" (now you have to specify a29k-xxx-yyy).
Add ultra3 as a29k-nyu-sym1 (host and target).
John Gilmore [Fri, 13 Sep 1991 01:49:40 +0000 (01:49 +0000)]
* configure.in: Handle a29k-*-* hosts, and targets
a29k-*-coff, a29k-*-aout, and a29k-*-sym1.
John Gilmore [Fri, 13 Sep 1991 01:21:18 +0000 (01:21 +0000)]
AMD 29000 changes from David Wood <wood@david.ultra.nyu.edu>
John Gilmore [Fri, 13 Sep 1991 01:10:22 +0000 (01:10 +0000)]
* Makefile.in (CLIBS): Put XM_CLIBS and TM_CLIBS at end.
Pass MUNCH_DEFINE to munch whenever we run it.
* munch: Cope with RT/PC putting fns in data segment.
Restore ability to override `nm' by specifying MUNCH_NM.
John Gilmore [Fri, 13 Sep 1991 01:07:53 +0000 (01:07 +0000)]
Add new files for 29K and Ultracomputer support.
John Gilmore [Fri, 13 Sep 1991 01:06:04 +0000 (01:06 +0000)]
* tm-29k.h: Update BADMAG (though it should go away).
Allow the register definitions to be overridden in another
tm-file. Fix SR_REGNUM. Add a mess of _REGNUM's. Separate
RETURN_REGNUM from GR96_REGNUM and DUMMY_SAVE_GREGS from
DUMMY_SAVE_GR96, for handling kernel calling conventions
that use GR64+ rather than GR96+.
John Gilmore [Fri, 13 Sep 1991 01:02:21 +0000 (01:02 +0000)]
Lint
John Gilmore [Fri, 13 Sep 1991 00:59:38 +0000 (00:59 +0000)]
Remove unused include files.
John Gilmore [Fri, 13 Sep 1991 00:33:17 +0000 (00:33 +0000)]
* am29k-tdep.c: Use DUMMY_SAVE_GREGS and RETURN_REGNUM.
John Gilmore [Fri, 13 Sep 1991 00:29:14 +0000 (00:29 +0000)]
* am29k-pinsn.c (print_insn): Handle NOP specially. Avoid %#x
format string; use 0x%x instead.
John Gilmore [Fri, 13 Sep 1991 00:28:05 +0000 (00:28 +0000)]
Make Munch work.
John Gilmore [Fri, 13 Sep 1991 00:13:16 +0000 (00:13 +0000)]
* configure.in: Add hosts rtpc-*-* and a29k-*-*.
Merge target arm case with other "easy" cases. Add target
cases a29k-*-none (rehack of am29k), a29k-*-kern (remote to
Ultracomputer kernel), and a29k-*-sym1 (ultracomputer OS's user
process).
John Gilmore [Fri, 13 Sep 1991 00:07:27 +0000 (00:07 +0000)]
Initial revision
John Gilmore [Thu, 12 Sep 1991 21:27:49 +0000 (21:27 +0000)]
* internalcoff.h (SYMNMLEN, FILNMLEN, DIMNUM): Define these
for internalcoff, separately from the various external coff's.
* amdcoff.h, bcs88kcoff.h, i386coff.h, intel-coff.h, m68kcoff.h,
m88k-bcs.h: Prefix SYMNMLEN, FILNMLEN, and DIMNUM with E_'s for
the external struct definitions.
* ecoff.h: Remove these #define's, kludge no longer needed.
John Gilmore [Thu, 12 Sep 1991 21:13:48 +0000 (21:13 +0000)]
Initial revision
Roland Pesch [Thu, 12 Sep 1991 21:08:51 +0000 (21:08 +0000)]
Thu Sep 12 14:07:22 1991 Roland H. Pesch (pesch at cygint.cygnus.com)
* Makefile.in: $(MAKE) for make, $(docdir) for doc
* doc/Makefile: redundant dependencies for Sun-make VPATH bug
Roland Pesch [Thu, 12 Sep 1991 21:04:21 +0000 (21:04 +0000)]
Per J Gilmore's advice, include redundant dependencies to get around
Sun-make VPATH bug.
John Gilmore [Thu, 12 Sep 1991 08:48:23 +0000 (08:48 +0000)]
Add NYU vendor, sym1 and sym2 os's. Alphabetize vendors.
John Gilmore [Thu, 12 Sep 1991 03:03:01 +0000 (03:03 +0000)]
* Makefile.in (documentation targets): Pass $(M4).
Bugfix from eggert@twinsun.com (Paul Eggert).
* stack.c (down_silently_command): Check for stack existence.
K. Richard Pixley [Thu, 12 Sep 1991 00:33:59 +0000 (00:33 +0000)]
add gdbm.
K. Richard Pixley [Thu, 12 Sep 1991 00:33:19 +0000 (00:33 +0000)]
Add gdbm.
John Gilmore [Wed, 11 Sep 1991 06:10:20 +0000 (06:10 +0000)]
* Makefile.in (VERSION): Update to 4.0.3.
John Gilmore [Wed, 11 Sep 1991 04:49:53 +0000 (04:49 +0000)]
* aoutf1.h (sunos4_core_file_p): Release the right storage in error case.
(sunos4_core_file_matches_executable_p): Fix header comparison.
* aoutx.h: Avoid shifts of 32 bits, undefined in C. Lint.
* bout.c, icoff.c, ieee.c, libbfd.c, oasys.c: gcc -O -W lint.
John Gilmore [Wed, 11 Sep 1991 01:49:50 +0000 (01:49 +0000)]
* core.c (core_file_command): Print frame at coredump with
its level number, by calling print_stack_frame.
* frame.h: Add selected_frame_level, print_stack_frame.
* frame.h, stack.c: Remove print_sel_frame, print_selected_frame.
* convex-tdep.c, convex-xdep.c, infcmd.c, inflow.c, infrun.c:
Change print_sel_frame and print_selected_frame callers to
print_stack_frame.
* dbxread.c (read_ofile_symtab): Avoid empty else clause.
* symfile.c (free_named_symtabs): Ditto.
* main.c (main): wrap_here needs an arg.
* solib.c (find_solib): Avoid memory access if _DYNAMIC is zero.
(solib_add): Avoid noise.
(solib_create_inferior_hook): Lint.
(sharedlibrary_command): Move dont_repeat to here.
* utils.c (error): Call wrap_here to force buffered output.
Small patches from Peter Schauer:
* coffread.c (start_symtab): Free any existing line_vector before
malloc-ing new one.
(read_coff_symtab): Ditto for type_vector.
* source.c (lines_to_list): New variable, replacing function.
(all uses): Use as variable.
(_initialize_source): Add 'set listsize' and 'show listsize'.
* utils.c (lines_to_list): Remove function.
* stack.c (print_frame_info): Use as variable.
* defs.h (lines_to_list): Remove declaration.
John Gilmore [Tue, 10 Sep 1991 17:13:21 +0000 (17:13 +0000)]
* i386coff.h (LINESZ): Always 6, not based on sizeof().