Commit Graph

405 Commits

Author SHA1 Message Date
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
John Gilmore
e92583d39c Host and targets with different sized types. &others. 1991-09-06 07:19:03 +00:00
John Gilmore
96b2f51cdc Fix some infrastructure to be able to cope with host and target
machines with different sized basic types (ints, ptrs, etc).
(Idea from pierre@la.tce.com (Pierre Willard).)

* values.c (value_from_longest):  Rename from value_from_long.
Handle pointer types as well as integers, so that targets with
different pointer sizes from the host can be accomodated.
* breakpoint.c, convex-tdep.c, eval.c, expprint.c, printcmd.c,
valarith.c, valops.c, valprint.c, value.h, values.c:  Rename
uses of value_from_long to value_from_longest.
1991-09-06 07:13:38 +00:00
John Gilmore
06b6c733ae Fix some infrastructure to be able to cope with host and target
machines with different sized basic types (ints, ptrs, etc).
(Idea from pierre@la.tce.com (Pierre Willard).)

* value.c (value_from_longest):  Rename from value_from_long.
Handle pointer types as well as integers, so that targets with
different pointer sizes from the host can be accomodated.
* breakpoint.c, convex-tdep.c, eval.c, expprint.c, printcmd.c,
valarith.c, valops.c, valprint.c, value.h, values.c:  Rename
uses of value_from_long to value_from_longest.
* eval.c, findvar.c, printcmd.c, valarith.c, valops.c:  Pass
the correct pointer type to value_from_long{est}.

* remote-vx.c:  Remove obsolete code for calling functions via
vxworks kludge interface (it referenced value_from_long).

* valops.c (value_string):  Find malloc with lookup_misc_func, not
raw search.

* breakpoint.c, remote-vx.c: Reword strings printed by
catch_errors callers.
1991-09-06 07:09:40 +00:00
John Gilmore
2d8fa9ab98 * .gdbinit: Remove useless "rr" command. Set complaints
to 1 for people debugging gdb.
1991-09-06 06:52:38 +00:00
John Gilmore
90262bf934 * WHATS.NEW: "history write -> history save". Doc "write on/off".
(Fix from kenc@viewlogic.com.)
1991-09-06 06:50:40 +00:00
John Gilmore
bdbd5f5086 Make writing to files work properly. (Fixes to BFD are also needed.)
* core.c (core_open):  Open file ourselves, read or r/w, depending on
write_files.  Use bfd_fdopenr.
* gdbcore.h (write_files):  New variable.
* exec.c (write_files):  Define variable, add set&show for it.
(exec_file_command):  Use write_files to open for read or r/write.

Make shared library reading happen automatically.  These changes
are mostly from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>.

* inferior.h (stop_soon_quietly):  Add to exported variables.
* infrun.c (child_create_inferior):  call solib hook, if defined.
(child_attach):  call solib hook, if defined.
* solib.c:  Include inferior.h.  Add from_tty to so_list as kludge.
(find_solib):  Use lookup_misc_func rather than hand-rolled.
(symbol_add_stub):  New stub for catch_errors.
(solib_add):  Avoid output if !from_tty.  Catch errors rather
than just calling symbol_file_add and bombing.
(solib_create_inferior_hook):  Interface with the target process
to let it read and alloc shared libs, then figure out what it did.

* core.c (validate_files):  Fix typo, soften warning.
(Fix from Hiroto Kagotani <kagotani@cs.titech.ac.jp>.)

* utils.c (fputs_demangled):  Avoid duplicate printing if
demangling is off.  (Fix from J.T. Conklin <jtc@cayenne.com>.)

* infrun.c (proceed):  Cast -1 to (CORE_ADDR) before comparing.
(Fix from pierre@la.tce.com (Pierre Willard).)

* main.c (catch_errors):  Change argument to a char * from an int,
since a char * can point to a struct full of glop, but an int
is not guaranteed to be able to hold a pointer.
* breakpoint.c (breakpoint_cond_eval, bpstat_stop_status,
breakpoint_re_set_one, breakpoint_re_set):  Adapt.
* core.c (core_open, solib_add_stub):  Adapt.
* remote-vx.c (symbol_stub, add_symbol_stub, callers):  Adapt.
1991-09-04 07:43:50 +00:00
Stu Grossman
9e7f3b6a69 Undo edit 1.5. Easier to let abort be of unspecified type than to claim a type
and be wrong half the time.
1991-08-31 01:43:19 +00:00
Stu Grossman
faaaea3c2a Merge in irix support. 1991-08-31 00:43:36 +00:00
Stu Grossman
625453dcfd Merge in irix support. 1991-08-31 00:31:30 +00:00
Stu Grossman
bceb2dded1 Merge in irix support. 1991-08-30 23:18:06 +00:00
John Gilmore
846058edd8 Update README. 1991-08-24 00:15:18 +00:00
John Gilmore
ce97f9130a Add none 1991-08-23 23:32:34 +00:00
Roland Pesch
1eddc5863e *** empty log message *** 1991-08-23 23:23:47 +00:00