Commit Graph

418 Commits

Author SHA1 Message Date
John Gilmore d8b3b00eb2 Output hex with local_hex_string for Modula-2 support. 1991-09-19 07:39:54 +00:00
John Gilmore 35505d07d7 * values.c (unpack_long, value_from_longest): Handle
TYPE_CODE_BOOL and TYPE_CODE_CHAR.
1991-09-19 03:07:56 +00:00
John Gilmore a10c0d365a Modula-2 support:
* defs.h (local_hex_format, local_hex_string):  Add.
1991-09-19 02:55:30 +00:00
John Gilmore d3b9c0df30 * 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.
1991-09-19 02:54:17 +00:00
John Gilmore e3af049306 * 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.
1991-09-19 02:40:29 +00:00
John Gilmore 0c4d2cc2b3 * 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.
1991-09-19 02:32:35 +00:00
John Gilmore e1a623e7ac * convex-tdep.c (comm_registers_info): Avoid parsing decimal and
hex -- let parse_and_eval_address do it.
1991-09-18 23:24:51 +00:00
John Gilmore 50ee356a16 * 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.
1991-09-18 23:16:45 +00:00
John Gilmore 5142120ece * i386-xdep.c, symm-xdep.c: Remove most 387 support.
* i386-xdep.c:  Output hex with local_hex_string for Modula-2 support.
1991-09-18 23:15:20 +00:00
John Gilmore cab7a41746 * i387-tdep.c: New file, consolidates most 80387 support,
and eliminates host dependency on double<->extended conversions.
1991-09-18 23:00:51 +00:00
John Gilmore 7f09f15fcb Doc how to add a language. 1991-09-18 22:56:28 +00:00
Stu Grossman 549d4382b7 Initial revision 1991-09-17 23:41:34 +00:00
Stu Grossman 138872490d sgi/irix config stuff. 1991-09-17 23:40:08 +00:00
Per Bothner 0abfa8989a In mipsread.c (parse_symbol), put non-static procedures
in the global block.
1991-09-17 19:47:28 +00:00
Stu Grossman 2f1cfaddf9 Whoops! Make that #ifndef USG, not #ifdef 1991-09-17 08:11:00 +00:00
Stu Grossman 2b88cafe02 #include <sys/ptrace.h> 1991-09-17 08:10:16 +00:00
Stu Grossman acd551ee63 sgi/irix config stuff. 1991-09-17 06:57:44 +00:00
Stu Grossman fda386669a sgi/irix support. 1991-09-17 06:55:07 +00:00
Stu Grossman 3eaebb754c Fix signed vs. unsigned char bug in parse_lines(). 1991-09-17 05:17:00 +00:00
John Gilmore 1515ff18db Small fixes from Peter Schauer:
* infrun.c (child_attach):  Lint.
* solib.c (find_solib):  Handle shared libs version 2.
1991-09-17 00:25:07 +00:00
John Gilmore 8020d5da16 Typo, caught by David Wood. 1991-09-16 21:57:02 +00:00
John Gilmore 7621b324eb Add tm-ultra3.h 1991-09-13 07:55:28 +00:00
John Gilmore e36ca74a03 Minor bugfixes after trying to get a 29K target to build. 1991-09-13 07:52:09 +00:00
John Gilmore 841c051c44 * 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.
1991-09-13 07:22:50 +00:00
John Gilmore 7730bd5acd * 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.
1991-09-13 07:22:01 +00:00
John Gilmore f74ff50fab Support aout and coff, as well as none, as "OS" settings for remote 29K GDB. 1991-09-13 06:38:44 +00:00
John Gilmore a16f53e9e8 tm-ultra3.h slipped thru the cracks... 1991-09-13 05:13:34 +00:00
John Gilmore d3fa0255c6 * 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.
1991-09-13 05:10:43 +00:00
John Gilmore f5c414cb70 New Ultracomputer/29000 stuff. 1991-09-13 03:54:45 +00:00
John Gilmore 1111151a02 AMD 29000 stuff 1991-09-13 03:53:58 +00:00
John Gilmore 15f27b29d1 Lint 1991-09-13 03:09:24 +00:00
John Gilmore 17f7e032b8 Lint 1991-09-13 03:00:28 +00:00
John Gilmore 534ccb3038 Update these for new modules and new inclusions. 1991-09-13 02:39:32 +00:00
John Gilmore 12bf20326d Propagate 1991-09-13 02:19:57 +00:00
John Gilmore 07cfbae199 AMD 29000 changes from David Wood <wood@david.ultra.nyu.edu> 1991-09-13 01:21:18 +00:00
John Gilmore 44f0c5db96 * 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.
1991-09-13 01:10:22 +00:00
John Gilmore 7c18a68f00 Add new files for 29K and Ultracomputer support. 1991-09-13 01:07:53 +00:00
John Gilmore 2b05a37a5f * 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+.
1991-09-13 01:06:04 +00:00
John Gilmore 19b66c0e72 Lint 1991-09-13 01:02:21 +00:00
John Gilmore f33c3ad15b Remove unused include files. 1991-09-13 00:59:38 +00:00
John Gilmore 6093e5b0de * am29k-tdep.c: Use DUMMY_SAVE_GREGS and RETURN_REGNUM. 1991-09-13 00:33:17 +00:00
John Gilmore 8d8f91d85a * am29k-pinsn.c (print_insn): Handle NOP specially. Avoid %#x
format string; use 0x%x instead.
1991-09-13 00:29:14 +00:00
John Gilmore cdfb337309 Make Munch work. 1991-09-13 00:28:05 +00:00
John Gilmore 473f33181c * 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).
1991-09-13 00:13:16 +00:00
John Gilmore 780bdcb936 Initial revision 1991-09-13 00:07:27 +00:00
John Gilmore f5e011c68c * Makefile.in (documentation targets): Pass $(M4).
Bugfix from eggert@twinsun.com (Paul Eggert).

* stack.c (down_silently_command):  Check for stack existence.
1991-09-12 03:03:01 +00:00
John Gilmore 90d368c5ef * Makefile.in (VERSION): Update to 4.0.3. 1991-09-11 06:10:20 +00:00
John Gilmore cadbb07a69 * 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.
1991-09-11 01:49:50 +00:00
John Gilmore 8106620887 * utils.c (error): if error_pre_print is set, print the string
first.
* main.c (main, print_gnu_advertisement, print_gdb_version):
Reformat legalese so it always prints, but acts as an "I'm here"
message while symbols are being read.  If any errors occur,
print a few newlines to set off the message and start it at the
left margin.  Remove mention of "help" command, and don't yak about
symbol reading.
(catch_errors):  Error string is now printed first in case of
error, not last.
* command.c (undef_cmd_error, lookup_cmd):  On undefined command,
suggest the "help" command.

* Makefile.in (VERSION):  Set to 4.0.2.
1991-09-10 08:56:09 +00:00
John Gilmore 62853f8052 * breakpoint.c (insert_breakpoints): Restore warning about
the program might be running in another process, but only for
systems with this brain death (#ifdef ONE_PROCESS_WRITETEXT).
* xm-hp300bsd.h, xm-mips.h, xm-vax.h:  Define it.
1991-09-09 20:49:08 +00:00