Commit Graph

135 Commits

Author SHA1 Message Date
John Gilmore 7cb8375793 * language.c (_initialize_language): Fix type check and range
check documentation strings.
1991-09-20 18:18:13 +00:00
John Gilmore c2536607c6 * utils.c (!HAVE_VPRINTF): Define vfprintf as a function, so
language.c can use it.  (Though language.c should really not be
handling warnings/errors the way it does, FIXME.)
* symtab.c (lookup_primitive_type):  const lint.
1991-09-20 18:13:28 +00:00
John Gilmore 9c85f3ceac Preparation for gdb-4.1 release. 1991-09-20 08:36:19 +00:00
Roland Pesch 613d64489a doc/gdbint.texinfo 1991-09-20 00:42:12 +00:00
Per Bothner c44582c81a Various mips changes from Peter Schauer. 1991-09-20 00:17:30 +00:00
John Gilmore c82e8a491c Minor fixes 1991-09-19 22:39:58 +00:00
John Gilmore 0def21a0f2 Andrew Beers' changes for Modula-2 support. 1991-09-19 11:48:49 +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
John Gilmore a16f53e9e8 tm-ultra3.h slipped thru the cracks... 1991-09-13 05:13:34 +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 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 e92583d39c Host and targets with different sized types. &others. 1991-09-06 07:19:03 +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
Roland Pesch 1eddc5863e *** empty log message *** 1991-08-23 23:23:47 +00:00
Roland Pesch 2ecf020143 * Makefile.in: generate "gdb-all.texi" rather than "gdb-all.texinfo" 1991-08-23 22:47:36 +00:00
Roland Pesch ee4196dc5d *** empty log message *** 1991-08-23 22:39:16 +00:00
Roland Pesch b9def3d9df Reflect name change (doc/rdl-apps.texi) 1991-08-23 22:37:49 +00:00
Roland Pesch d7c2f2ddd5 * WHATS.NEW: correct pointer to refcard. 1991-08-23 21:10:02 +00:00
John Gilmore 81b0b547d6 * GDB-4.0 release!
* Makefile.in (VERSION):  Roll to 4.0.
        (gdb.tar.Z):  Make refcard.ps as well, for shipment.
1991-08-23 20:48:14 +00:00
Roland Pesch 6d4100b71d note doc/gdb.texinfo changed. 1991-08-23 18:48:44 +00:00
John Gilmore 299eb5f15f Fix Makefile.in to build 4.0 rel. 1991-08-23 08:48:29 +00:00
Stu Grossman 7d003262a7 saber 1991-08-23 05:26:06 +00:00
Roland Pesch 0a3492951d Document ChangeLog catchup. 1991-08-23 04:38:47 +00:00
Roland Pesch 145d3d2666 *** empty log message *** 1991-08-23 03:08:36 +00:00
Roland Pesch a9686e9a53 * doc/refcard.tex: permuted Essential Commands sec 1991-08-22 23:38:40 +00:00
Roland Pesch ef33e8e680 Record new C++ chapter in gdb.texinfo 1991-08-22 23:25:16 +00:00
Stu Grossman 8d142c97b0 lint 1991-08-22 23:19:58 +00:00
John Gilmore 482be0362f Handle HP300bsd. 1991-08-22 07:09:55 +00:00
John Gilmore 9fa283782e HP 300 BSD port for machines at FSF. Also minor mips change. 1991-08-22 01:42:18 +00:00
John Gilmore 0a07b1f9d5 Remove warnings about system assembler for sunos4. 1991-08-20 23:01:50 +00:00
John Gilmore 5e5215eba7 * mcheck.c: Avoid warning about undeclared abort fn.
* tm-sparc.h (PC_ADJUST):  Avoid calling error() from this;
it causes recursive calls to error() when used in cleanups.
To do so requires that we make it a function, so we do.
* sparc-tdep.c (sparc_pc_adjust):  New implem of PC_ADJUST.
* utils.c (do_cleanups):  Remove the current cleanup from the
chain *before* calling it, in case error() is called from it.
The result won't be pretty, but won't be an infinite loop either.
1991-08-20 03:02:39 +00:00
John Gilmore 2791be2f81 BSD Net2 changes, and misc other fixes. 1991-08-19 20:55:31 +00:00
Michael Tiemann 7ce3bf92ca Describe C++ fixes. 1991-08-19 17:02:17 +00:00
John Gilmore 351b221ded * main.c: Remove unused terminating_signals and catch_termination().
(long_options):  Terminate with a zero element.
        [Bugfix from Atsuo Kawaguchi <atsuo@hark86.harl.hitachi.co.jp>.]
        (gdb_readline):  Make call-compatible with readline.
        (init_signals):  Improve comments re vfork vs. signal.

        * utils.c (prompt_for_continue):  Use new gdb_readline().
        If we prompt for continuation, we don't let CR repeat the previous
        command, once we get back to a prompt.  It's too easy to keep
        hitting CR, expecting "--more--" prompts, and have some long
        command start repeating on you.
1991-08-16 01:49:30 +00:00
John Gilmore e522fb52bf * source.c: #if defined => #ifdef.
* main.c (main):  Only try to attach "corefile" argument if
        it starts with a digit.
1991-08-14 00:11:20 +00:00
Roland Pesch 81536d662a * Makefile: use doc/Makefile for doc targets 1991-08-07 02:07:21 +00:00
Roland Pesch 594bdad7ad *** empty log message *** 1991-08-07 00:18:09 +00:00
John Gilmore 4f6f12f989 Only read the right number of bytes in reading basetypes, so we don't
overrun malloc.
1991-08-03 02:02:03 +00:00
John Gilmore 8bf75ff3ca Print UNOP_MEMVAL of an OP_LONG that ends up as a function specially 1991-08-02 09:23:23 +00:00
John Gilmore 10147c02f3 * infrun.c: Move DO_DEFERRED_STORES from proceed() to resume().
The child can be proceeded from inside wait_for_inferior in
        evaluating breakpoint conditions, and DO_DEFERRED_STORES was
        getting skipped in that case.

        * expprint.c (print_subexp):  Use filtered output, since the
        subroutines we call use it, otherwise the output is horribly
        mangled, since output of wrappable stuff comes out late.
1991-08-02 08:46:10 +00:00
John Gilmore 3b271cf4c0 Roll VERSION to 3.98.1. Use path to find $SHELL in "run" command. 1991-08-02 07:15:20 +00:00
Roland Pesch 7bfa94e296 *** empty log message *** 1991-08-01 22:39:43 +00:00
Roland Pesch 5bff26001a *** empty log message *** 1991-07-31 23:37:41 +00:00
John Gilmore adf2bb5864 Update for 3.98 release. 1991-07-31 19:08:36 +00:00
John Gilmore dc0c3f64b6 Tighten up for gdb-3.98 release. 1991-07-31 00:34:07 +00:00
Roland Pesch a56a0f68ba *** empty log message *** 1991-07-29 22:21:57 +00:00
Roland Pesch a8b765617e *** empty log message *** 1991-07-27 00:52:01 +00:00