Commit Graph

388 Commits

Author SHA1 Message Date
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
Stu Grossman
61a7292f6f lint 1991-08-22 22:50:50 +00:00
Stu Grossman
1e30f7e347 lint 1991-08-22 21:04:25 +00:00
John Gilmore
3a731fe8c9 Add config.sub 1991-08-22 09:01:46 +00:00
John Gilmore
81049e4719 Update for gdb-4.0. 1991-08-22 08:55:27 +00:00
John Gilmore
b32604106a Keep rdl-apps.texinfo for users who don't read the doc on how to build the doc. 1991-08-22 07:59:45 +00:00
John Gilmore
e522aa54a7 Make "make clean" work in subdirs. 1991-08-22 07:10:57 +00:00
John Gilmore
482be0362f Handle HP300bsd. 1991-08-22 07:09:55 +00:00
K. Richard Pixley
6c815bbe31 Three part names, etc. 1991-08-22 07:07:58 +00:00
John Gilmore
4efad21082 Add m68k-tdep.o. 1991-08-22 02:12:30 +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
90125c8596 Roll version to 3.98.2. 1991-08-21 04:09:24 +00:00
John Gilmore
0a07b1f9d5 Remove warnings about system assembler for sunos4. 1991-08-20 23:01:50 +00:00
John Gilmore
b142fea5e8 Remove warnings about system assembler. 1991-08-20 23:01:06 +00:00
K. Richard Pixley
f0b9c97662 revisiting error messages 1991-08-20 04:56:47 +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
John Gilmore
5c9878f19c * breakpoint.c (bpstat_do_actions): Use a cleanup to restore
executing_breakpoint_commands if we are interrupted by error.
* coffread.c (init_lineno):  Avoid problem with zero-sized linetab
versus malloc/free.  From: john@labtam.labtam.oz.au (John Carey).
* core.c (solib_add_stub, core_open):  Call SOLIB_ADD inside a
catch_errors() so we can setup the frame regardless of whether
the shared libs work.
* ieee-float.c (double_to_ieee_extended):  Get exponent from
right place in little-endian systems.  From John Carey.
1991-08-19 20:55:06 +00:00
John Gilmore
361bf6eee5 Minor bug fixes from BSD Net2 gdb:
* blockframe.c (get_prev_frame_info):  If FRAME_CHAIN_COMBINE
returns 0, there is no previous frame.
* breakpoint.c (commands_command):  If !from_tty, don't call
input_from_terminal_p().
* dbxread.c (record_misc_function):  Speed up slightly.
(compare_psymbols):  Ditto.
* infcmd.c (do_registers_info):  Take a second argument to
determine whether to print float registers.  "info registers"
does not do so anymore.  "info all-registers" does, now.
* mips-tdep.c, pyr-tdep.c (xxx_do_registers_info):  Take second
arg and ignore it.
* tm-mips.h, tm-pyr.h (DO_REGISTERS_INFO):  Pass second arg.
* inflow.c (initialize_inflow):  Set tflags_ours correctly.
1991-08-19 20:54:03 +00:00
Michael Tiemann
7ce3bf92ca Describe C++ fixes. 1991-08-19 17:02:17 +00:00
Michael Tiemann
9404978d0b Fixed two C++ related bugs. 1991-08-19 14:40:50 +00:00
K. Richard Pixley
f9584c6dcd Allow yacc to be passed in as BISON. 1991-08-16 21:47:14 +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
b6de2014a1 Add ignored target argument to child_xfer_memory. 1991-08-14 00:23:08 +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
John Gilmore
715d2e0649 * inflow.c (new_tty_prefork, new_tty): New prefork routine
modifies static state in the parent process; new_tty itself
        runs in the child and modifies the child's file descriptors
        to match the saved static state.
        * infrun.c (child_create_inferior):  Call new_tty_prefork,
        fork, then new_tty.
1991-08-14 00:09:58 +00:00
John Gilmore
8f1f2a72bd * core.c, exec.c, inftarg.c, remote-eb.c, remote-nindy.c,
remote-vx.c, remote.c, target.c, target.h:  Remove add_syms vector
        from target_ops.  It's the same on all targets.  Add two section
        pointers to target_ops.
1991-08-14 00:09:04 +00:00
John Gilmore
5ac449d90c * solib.c (solib_add): New argument is the target_ops whose
section list is to be added to, if any.  Reallocate the
        sections in that target to add any that come from shared libs.
        (throughout) so_sections renamed to sections.
        (solib_xfer_memory):  Deleted.
        * tm-sunos.h (SOLIB_ADD):  Add target argument.
        (SOLIB_XFER_MEMORY):  Delete.

        * xm-sun3os4.h, xm-sun4os4.h:  Define BROKEN_LARGE_ALLOCA,
        and add comment explaining shared library screw.
1991-08-14 00:02:26 +00:00
John Gilmore
c561ca5dfb * core.c (core_open, core_close, core_xfer_memory): Move
section table pointers and bfd* into the target_ops.
        (core_open):  Allow errors in shared lib reading, etc.
        (core_files_info):  Describe shared library sections.

        * exec.c (exec_open, exec_close, exec_xfer_memory, xfer_memory,
        exec_files_info, set_section_command):  Move section table
        pointers and bfd* into the target_ops.
        (add_to_section_table):  Add BFD to section table.

        * target.c (target_xfer_memory, target_info):  Pass target to
        xfer_memory and target_info functions.
        * target.h:   ''

        * gdbcore.h:  Move struct section_table.
        * target.h:  New home of struct section_table.
1991-08-14 00:01:20 +00:00
John Gilmore
5259796be2 * blockframe.c (frameless_look_for_prologue): Speed up by
calling SKIP_PROLOGUE_FRAMELESS_P if it's defined.
        * tm-sparc.h (SKIP_PROLOGUE, SKIP_PROLOGUE_FRAMELESS_P):
        Define two variants, one faster.
        * sparc-tdep.c (sparc_frame_chain):  Use target_read_memory
        and return zero, rather than giving an error.
        (setup_arbitrary_frame):  Initialize the PC in the new frame.
        (skip_prologue):  Add a second arg saying whether we're just
        checking for a frameless function or not.
1991-08-14 00:00:25 +00:00
John Gilmore
807e8e4ece Add in Rich's changes for three-stage builds. 1991-08-07 07:51:22 +00:00
Roland Pesch
274862ad9e Default rdl-apps.texinfo, for people who don't think to use the
Makefile; this one will work if this dir is in the default relative position
to the readline directory in the GNU libraries-and-includes distribution.
1991-08-07 02:15:57 +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
Roland Pesch
73dfae8d22 Makefile: GDB documentation nos has its own Makefile
.Sanitize: add Makefile; recognize renamed refcard.tex (formerly gdbrc.tex)
gdbint.texinfo: add markup in "Cleanups" chapter
1991-08-07 00:15:02 +00:00
K. Richard Pixley
4101d86838 Host-level GNUmakefiles. 1991-08-06 19:12:55 +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
John Gilmore
18a00f0885 Pass Make flags down to lower level when building tar file. 1991-08-01 00:32:22 +00:00
John Gilmore
c45c19f8b1 For final (?) 3.98 release 1991-08-01 00:11:16 +00:00
Roland Pesch
cf4964159d Surrounded table of renamed commands (version within @ifinfo) with
@example/@end example.  Without this it formatted fine by
texinfo-format-buffer in Emacs, but makeinfo insisted on paragraphing
it!

Also removed "gdb/" from in front of one instance of libiberty...
1991-08-01 00:02:27 +00:00
John Gilmore
2ee6233fbc Handle gdb-all.texinfo properly when M4 doesn't exist or crashes 1991-07-31 23:44:59 +00:00
Roland Pesch
5bff26001a *** empty log message *** 1991-07-31 23:37:41 +00:00
Roland Pesch
3d3ab54002 Last cleanups for release 3.98:
Minor typo and formatting fixes; incorporated most fixes remaining from
filed mail commenting on earlier drafts.

Added warnings: pipes don't work in run command;
	conditions are converse of assertions;
	step over fn without debug info goes to next fn;
	vars may have "wrong" values near fn entrance, exit

Added example from Kingston on printing repeated nonadjacent values

Added explicit mention that in Emacs gdb mode C-c and C-z are like
shell mode for signals

Improved installation directions in appendix, added manual formatting
instructions

Renamed "Stepping and Continuing" to "Continuing and Stepping" so it
doesn't sound so much like its parent "Stopping and Continuing"; also
moved entries on continue to top of section, so they don't get lost.
1991-07-31 23:35:22 +00:00
John Gilmore
adf2bb5864 Update for 3.98 release. 1991-07-31 19:08:36 +00:00
John Gilmore
40dc32e580 Set file permissions the same for everyone before making tar file.
(This clobbers the files' existing permissions.)
1991-07-31 18:08:33 +00:00
John Gilmore
72b1b275ec Move building and configuring stuff from .Sanitize to "make gdb.tar.Z". 1991-07-31 07:09:02 +00:00
John Gilmore
55b32c02a8 Remove config.gdb. Restore alldeps.mak, depend, and expread.tab.c
to the RCS archives.  Update .Sanitize for this.
1991-07-31 04:15:12 +00:00
John Gilmore
92cd1aab08 Update for gdb-3.98. 1991-07-31 03:10:30 +00:00
John Gilmore
dc0c3f64b6 Tighten up for gdb-3.98 release. 1991-07-31 00:34:07 +00:00
Roland Pesch
07d06baa0f Updated list of files to keep to reflect reintegration of most fragments
into gdb.texinfo.
1991-07-29 22:38:53 +00:00
Roland Pesch
a56a0f68ba *** empty log message *** 1991-07-29 22:21:57 +00:00
Roland Pesch
54e6b3c33a Fixed a variety of small typos that prevented info from formatting cleanly;
altered too-long heading for GPL Appendix, as discussed w/RMS;
Changed date on cover to July 91.
1991-07-29 22:20:33 +00:00
Roland Pesch
a8b765617e *** empty log message *** 1991-07-27 00:52:01 +00:00
Roland Pesch
7463aadd5b (1) Applied some fixes due to comments from Larry Breed (easier ones
through chapsec 5.2)

(2) Eliminated use of @footnote---had my doubts about it anyways, and
it's broken in latest texinfo

(3) Introduced *some* use of [] for optional arguments, where
explanation is not simpler by listing cmd w arg and cmd w/out arg
separately.  Still not using @deffn.

(4) Dropped in GPL-2.  NOTE: one of GPL-2 or texinfo is broken; a
couple of headings are too long.  Need patches to texinfo or revision
to GPL-2.
1991-07-27 00:49:54 +00:00
Roland Pesch
170d0c8527 Partial update to README for new configure script and new
documentation make targets.
1991-07-26 20:22:41 +00:00
Roland Pesch
70b887611a (1) Re-incorporated former M4 fragments into this file; GNU m4 >=0.84
no longer crashes on long docs.

(2) Included some improvements based on Larry Breed's comments.
1991-07-25 19:35:27 +00:00
John Gilmore
614541045c Another bugfix (NS32K_SVC_IMMED_OPERANDS) from Rune Nerg}rd. 1991-07-24 13:46:54 +00:00
John Gilmore
ccef841ce1 Bugfix from Rune Nerg}rd to "sfsr" opcode. 1991-07-24 13:43:56 +00:00
Roland Pesch
920ba794a7 *** empty log message *** 1991-07-24 01:55:18 +00:00
Roland Pesch
16e58d9172 Turned $Id: from m4 comment into texinfo comment, allowing fragment
boundaries to be recognized in post-m4 texinfo source.
1991-07-24 01:51:32 +00:00
Roland Pesch
271895931a 1) turned $Id: from m4 into texinfo comment
2) disabled @group where no longer supported by texinfo.tex
1991-07-24 01:50:33 +00:00
Roland Pesch
8734fc33eb 1) moved author email addresses and manual version info back onto copyright
page (had crept onto front of title page w/ other stuff migrating between
gdb.texinfo and gdb.top-m4).

2) gdb.top-m4: added Detailed Node Listing to main menu.
               made $Id: for fragment into texinfo comment.
1991-07-24 01:43:47 +00:00
Roland Pesch
5dac81188a Fix braces in example (@{ @} not {}), spotted by makeinfo.
Allow fragment's $Id: to be texinfo comment.
1991-07-24 01:40:47 +00:00
Roland Pesch
ff2e4391f7 1) Added conditionals around node structure, giving clean nodes for either
generic or cross-debugging manual.

2) Allowed $Id: to be texinfo comment.
1991-07-24 01:37:46 +00:00
Roland Pesch
54e4cbe8f0 1) Added conditional markup around node transitions, so node structure correct
for either generic manual (material near back, in "targets"), or for special
cross-debugging manuals (material near front, in "invocation").

2) Allowed $Id: tag to appear as texinfo comment.
1991-07-24 01:36:11 +00:00
Roland Pesch
0e1b12ce0d Tried allowing $Id: to appear in final output, but it confuses makeinfo
(the texinfo comment appears inside a menu).  Revisit someday.
1991-07-24 01:34:39 +00:00
Roland Pesch
1190271968 1) "dots{}" -> "@dots{}" (spotted by makeinfo)
2) $Id: tag appears in post-m4 text
1991-07-24 01:30:45 +00:00
Roland Pesch
9d40ea3c82 1) Inserted missing @end table/@table spotted by makeinfo;
2) allowed $Id: tag to appear in post-M4 file by turning it into texinfo
   rather than m4 comment;
3) Disabled @group where no longer supported by texinfo
1991-07-24 01:28:51 +00:00
Roland Pesch
26c03ddfee Enabled target gdb.info 1991-07-24 01:25:02 +00:00
Roland Pesch
42078e7901 Added call to "make info", to generate:
-- gdb-all.texinfo (texinfo source after M4 processing)
  -- gdb.info (file compiled by makeinfo from texinfo-2 release)
1991-07-24 01:23:41 +00:00
John Gilmore
ef98d5ac06 Mostly MIPS symbol-reading and general symbol-reading fixups. 1991-07-21 13:02:48 +00:00
John Gilmore
eb752e4e4e Add information about the symbol-reading interface. 1991-07-21 12:16:38 +00:00
John Gilmore
101f259c8f Make mipsread.c handle static symbols, both in psymtabs and symtabs. 1991-07-19 07:09:41 +00:00
John Gilmore
c3a2180180 Eliminate LOC_EXTERNAL. Improve select_source_symtab. Bug fixes. 1991-07-19 06:45:19 +00:00
John Gilmore
36b9d39cf4 * findvar.c (find_var_value): Handle &function better.
* TODO:  Document work needed on &fn and &array.
        * printcmd.c (print_address_symbolic):  New arg is the prefix
        to print if a name is printed.
        (print_address_demangle):  Honor "set print address" now.
        Use new arg above to improve spacing of output.
        * valprint.c (val_print):  When printing function pointers,
        print symbolic form too.
        * breakpoint.c (breakpoint_1):  Use new print_address_symbolic.
1991-07-14 07:48:06 +00:00
John Gilmore
b8c50f0918 * core.c (memory_error): Reword error msg to mislead less.
* mips-pinsn.c (print_insn_arg 'd'):  Print $ with reg name.

        * mipsread.c (read_mips_symtab, read_the_mips_symtab,
        parse_partial_symbols): Use newer BFD internals (external_filehdr
        and external_aouthdr), byte-swap the fields that we care about
        before using them, and make the file header data local to
        read_the_mips_symtab rather than global.
1991-07-09 02:08:13 +00:00
John Gilmore
d2ca8714e7 *** empty log message *** 1991-07-07 05:29:03 +00:00
John Gilmore
f4b13194e1 Bugfix from Rune Nerg}rd <runene@ifi.uio.no> on 5 Jul 1991 17:33:45 +0200,
fixing opcodes movmw, movmd.
1991-07-07 05:27:54 +00:00
John Gilmore
2a8afebabf * main.c (command_line_input): Flush stdout and stderr
before every call to readline.  This reportedly fixes a bug
        that comes up in Sys V running emacs-gdb and/or xxgdb,
        when stdin/out are pipes or sockets.
1991-07-06 08:36:34 +00:00
John Gilmore
391e5612c6 Fix bug in configure when iterating targets.
Depend on alldeps.mak, not ${srcdir}/alldeps.mak, so it can be found
in either spot.
1991-07-06 04:35:51 +00:00
John Gilmore
6988f5c0ae Thu Jul 4 14:47:06 1991 John Gilmore (gnu at cygint.cygnus.com)
* configure.in, Makefile.in:  Avoid rebuilding "depend" as much.
        Avoid declaring Makefile dependencies, because GNU Make stupidly
        tries to update it if we do.

        * coffread.c:  Revise for minor changes to bfd internal coff
        indexes.

        * configure:  If -template= is given a relative path, make it
        absolute before recurring in subdirectories.
1991-07-05 00:04:59 +00:00
John Gilmore
4eda21f2f6 * Add dec3100 as equivalent to littlemips. Indicate in all host &
target config files that they are for the host.  When the lines
        get copied into the Makefile, this makes it more obvious what's
        up.
1991-07-04 21:56:20 +00:00
John Gilmore
dfb12287fe Initial revision 1991-07-04 21:55:36 +00:00
John Gilmore
6617e3464b Add dec3100 as equivalent to littlemips.
Indicate in all host config files that they are for the host.  When the
lines get copied into the Makefile, this makes it more obvious what's up.
1991-07-04 21:51:41 +00:00
John Gilmore
bdf3621b9e Make gdb work with configure. Only thing that doesn't work is the -list
option (as far as I know).
1991-07-04 15:59:47 +00:00
John Gilmore
76b4be1296 * sparc-opcode.h (trap opcodes): Avoid leading spaces or
tabs, which end up in the disassembler output inadvertently.
1991-06-25 06:50:31 +00:00
John Gilmore
33cc288d6b Reverse entropy. Inhale bit rot, exahle graceful compilation. 1991-06-07 07:45:16 +00:00
John Gilmore
9f39617566 *** empty log message *** 1991-06-07 07:03:40 +00:00
John Gilmore
eb2022d7dd Move all the #msg's from the xconfig files into the tconfig files for Suns. 1991-06-04 08:59:39 +00:00
John Gilmore
b775aef041 Remove copyrights from these tiny files rather than update them to the
GPL version 2.  It isn't worth copyrighting two lines of file names.
1991-06-04 08:58:38 +00:00
John Gilmore
7a6876d1dc Remove copyrights from these tiny files, rather than update them to
GPL version 2.  Two lines of file names aren't worth copyrighting.
1991-06-04 08:47:23 +00:00
John Gilmore
609756e250 More updating to GPL-2. 1991-06-04 08:16:28 +00:00
John Gilmore
99a7de40cb Change GDB over to GNU General Public License version 2. 1991-06-04 07:31:55 +00:00
John Gilmore
4ffd30479f Further wacking to make sanitize and "make gdb.tar.Z" agree. 1991-05-30 10:04:21 +00:00