Commit Graph

730 Commits

Author SHA1 Message Date
Steve Chamberlain c02e12c0ec Initial revision 1991-11-04 01:25:42 +00:00
John Gilmore c9bd6710ad * mipsread.c (read_mips_symtab, read_the_mips_symtab): Use real
filename with error messages.
* stack.c (frame_select_command):  Rename to select_frame_command
to avoid "fr" and "fra" having nonunique completions.
* symfile.c (sort_symtab_syms):  Ignore sort of zero symtab *.
(symfile_init):  Print file format name when unable to handle it.
(free_named_symtabs):  Use BLOCKVECTOR rather than obsolete BLOCKLIST.
* symmisc.c (free_symtab):  Only free linetable if nonzero.
* symtab.h:  Remove obsolete BLOCKLIST macros.
1991-11-01 19:12:35 +00:00
Stu Grossman d7d1098dca * infrun.c (wait_for_inferior): another stepi/nexti fix. Ensure
that stop_step is 1 at bottom of main loop.  I don't know why this
needs to be done, but it helps me sleep better at night.
1991-11-01 02:16:20 +00:00
Stu Grossman 8b3c897ae9 * main.c (initialize_history): Read history after reading all
init files.
1991-10-28 02:20:47 +00:00
John Gilmore b90c4f33cd * c-exp.y (yyerror): Pass error message if given.
* configure.in:  Add rs6000 host and target.
* inflow.c (new_tty):  O_NOCTTY kludge for RS/6000.
* symfile.h (entry_point):  Add.
1991-10-27 22:27:15 +00:00
John Gilmore a23075bc5a * blockframe.c: Pass fromleaf to INIT_EXTRA_FRAME_INFO.
* tm-29k.h, tm-88k.h, tm-i960.h, tm-irix3.h, tm-mips.h, tm-pyr.h,
tm-sparc.h:  Accept fromleaf parameter.
1991-10-27 22:26:52 +00:00
John Gilmore 4137c5fc0d * buildsym.c: Break out initial malloc sizes.
(record_line):  Record directly in a subfile.  Alloc on demand.
(compare_line_numbers):  Add from xcoffread.c.
(end_symtab):  New params say whether to sort pendings and
linetable.  Patch block stabs if defined.  Shrink linetable before
allocating the symtab.
* buildsym.h:  Delete line_vector* and prev_line_number.  Add
global_stabs and file_stabs for xcoffread.
* dbxread.c (start_subfile):  Move to buildsym.  Change above calls.
* symtab.h:  LINETABLE(symtab) can now be null.  Zap LINELIST.
* symmisc.c, symtab.c:  Cope with null LINETABLEs.
1991-10-27 22:26:02 +00:00
John Gilmore d47d5315c8 * symfile.c (syms_from_bfd): New routine.
(add_symbol_file):  Call it to do the real work.
(syms_from_bfd):  Initialize entry_point before calling symfile_init.
* symtab.h, symfile.c, coffread.c, mipsread.c, dwarfread.c:
Avoid declaring or setting entry_point (symfile.h & symfile.c cope).
1991-10-26 08:02:23 +00:00
John Gilmore 2ce38c6d29 Add buildsym.c and buildsym.h. 1991-10-26 07:22:46 +00:00
John Gilmore c030245775 Break out symbol-table-building routines
from dbxread.c, so they can be shared with xcoffread.c.
1991-10-26 07:21:30 +00:00
Per Bothner bcccec8c8d Various fixes to improve g++ debugging. See ChangeLog. 1991-10-26 02:05:14 +00:00
Stu Grossman 5ab580ccf8 * tm-sparc.h, tm-68k.h (EXTRACT_RETURN_VALUE): fix output of
short return values for sparc and 68k.  Patch from Paul Eggert.
1991-10-26 01:06:16 +00:00
Stu Grossman eb3f3e5c6a *** empty log message *** 1991-10-26 00:57:08 +00:00
Stu Grossman 159a075e55 * coffread.c, coredep.c, i386-xdep.c: install patches for
SysV/386 3.2 from Mauro DePalma.
1991-10-25 23:10:12 +00:00
John Gilmore c58215f248 * core.c (core_file_info), exec.c (exec_file_info): Print file
type.  Use printf_filtered.
1991-10-25 09:32:06 +00:00
John Gilmore 9cb602e111 (value_fetch_lazy): Avoid 0-length fetches. 1991-10-25 09:03:36 +00:00
Fred Fish c8c0a2bd59 Add casts to remove compiler warnings from native Sun cc. 1991-10-25 06:47:13 +00:00
Fred Fish 84d82b1ccd Remove locally duplicated code for calling functions in the inferior. The
only differences were in the specific trap vectors used and whether or not
an fpu was present.  These are now handled by appropriate definitions of
BPT_VECTOR and HAVE_68881 respectively.  Other minor obvious cleanups.
Minor spelling correction in valops.c.
1991-10-25 06:29:23 +00:00
Fred Fish ed317bb309 Remove local BSD/USG hacks that are now in libiberty. 1991-10-25 06:13:22 +00:00
Fred Fish b662acae40 Remove prototype for dwarfwarn(). Breaks with <varargs.h>. 1991-10-25 06:09:15 +00:00
John Gilmore b00771232f frame-select command. Cross funcalls to sun3. Build *.tab.c files in
target dir.
1991-10-25 04:29:01 +00:00
Fred Fish 811348f23b Add "amix". 1991-10-24 18:09:34 +00:00
Fred Fish 6fccdaf496 Add new DWARF, ELF, SVR4 /proc, Amiga UNIX, etc files. 1991-10-24 18:07:57 +00:00
John Gilmore 313fdead0e Use <varargs.h>, since <stdarg.h> is not portable. 1991-10-24 16:34:56 +00:00
John Gilmore 54154111c5 Roll VERSION to 4.2.2. 1991-10-24 16:24:23 +00:00
Fred Fish d10861fdda Initial revision 1991-10-24 11:32:42 +00:00
Fred Fish 35f5886ebb New files for DWARF debugging format support, ELF object file support, SVR4
/proc (process file system) support, Amiga UNIX target and host defines, SVR4
target and host defines, and m68k hosts defines.
1991-10-24 11:28:54 +00:00
Fred Fish bb4ff69408 Add dwarfread.c, dwarfread.o, elfread.c, elfread.o to source and object
file macros.  Other obvious dwarf/elf tweaks.
1991-10-24 11:11:12 +00:00
Fred Fish 2f068b0dd5 Add "elf" to list of supported debugging formats in comment. 1991-10-24 11:09:46 +00:00
Fred Fish e2aab0314f Add three new builtin types (builtin_type_long_double, builtin_type_complex,
and builtin_type_double_complex).  Also add and use various TARGET_<TYPE>_BIT
macros to indicate the sizes of various types on the target machine.
1991-10-24 10:58:41 +00:00
Fred Fish 020706804b Add machine dependent support routines for SVR4 /proc interface. 1991-10-24 10:48:55 +00:00
Fred Fish 63ac7ef33f When using SVR4 /proc interface, call proc_set_exec_trap() rather than
ptrace(), to arrange for child to stop on first instruction.
1991-10-24 10:47:11 +00:00
Fred Fish 2bc2e684ad Add new function warning() which behaves the same as error() but returns
rather than jumping back to command level.  Modules that want to print
their own warnings without calling warning() can call warning_setup() to
handle the terminal compatibly with warning() and error().
1991-10-24 10:38:56 +00:00
Fred Fish eaa1ef1df1 Make internal errors produce more useful messages. 1991-10-24 10:29:07 +00:00
Fred Fish dcd15e5e7a Move code duplicated in almost every single m68k based machine to the
common target file tm-68k.h.  Duplications still need to be removed (FIXME).
1991-10-24 10:21:41 +00:00
Fred Fish 150f543625 System V versions must call setpgrp() with no arguments, to comply with
prototyping typically in <unistd.h>.  Otherwise the compile fails, at
least with gcc.
1991-10-24 09:26:05 +00:00
Fred Fish cb17dfb1c0 Add support for SVR4 style nm output. Not claimed to be optimal, I'm not
a sed hacker.  It does seem to work fine.
1991-10-24 08:54:58 +00:00
Fred Fish 4a35d6e91b Remove the object file specific fields from the partial symbol table
structure and replace them with a pointer to private data for each
different flavor of object file reader to initialize appropriately.
1991-10-24 08:42:20 +00:00
John Gilmore e89b8910fc Add note about strstr botch on sunos4.0.3c and previous. 1991-10-23 18:12:20 +00:00
Stu Grossman 2e393ce478 * infrun.c (wait_for_inferior): Check return value from
find_pc_line.
1991-10-23 01:06:36 +00:00
Stu Grossman 0d3e7f607f *** empty log message *** 1991-10-23 01:05:57 +00:00
Stu Grossman bc6c937d0b *** empty log message *** 1991-10-22 00:51:28 +00:00
Stu Grossman b3b39c0c76 * infrun.c (wait_for_inferior): fix stepi/nexti that was broken
by my last edit to this routine.
1991-10-22 00:50:58 +00:00
Steve Chamberlain 44e4e473f8 * configure.in: added ebmon target. 1991-10-21 17:06:59 +00:00
John Gilmore b1dcd6ac3f Final touchups for release 1991-10-17 06:51:00 +00:00
John Gilmore 785ce19c33 More last minute gdb-4.2 changes. 1991-10-17 05:58:34 +00:00
John Gilmore b53d3945ed * coredep.c: Add <sys/types.h> for SCOnix.
* dbxread.c (read_dbx_symntab):  Avoid coredump on malformed file.
* printcmd.c (print_formatted):  Flush output before disassembly.
* xm-mips.h:  Update KERNEL_U_ADDR for new scheme.  Cleanup a bit.
1991-10-17 05:57:51 +00:00
John Gilmore c5a475c86d * xconfig/i386sco: Add HAVE_STRSTR to avoid ANSI bdeath.
* xconfig/tahoe:  Add REGEX, which seems to be missing.
1991-10-17 05:57:02 +00:00
Roland Pesch 9e0906a6b2 *** empty log message *** 1991-10-16 22:11:28 +00:00
Roland Pesch 092678655c More updates due to Picard refcard comments. 1991-10-16 22:08:33 +00:00
John Gilmore a1b8c5d69d GDB-4.2 release!
* Makefile.in:  Roll VERSION to 4.2.

* tm-i386v.h:  #endif guck.
* xconfig/i386*:  Remove -Dgetpagesize()=4096 kludge.
1991-10-16 21:02:31 +00:00
Roland Pesch e0dacfd17a Clarifications and rephrasings, largely due to Pinard's comments on
refcard.
1991-10-16 20:00:20 +00:00
John Gilmore 45e6027024 * core.c (core_open): Improve error message for bad file.
Pass .reg virtual memory address to fetch_core_registers to help
it find the registers in the core-file header.
* coredep.c (fetch_core_registers):  Take new argument, use it,
and pass it to register_addr to locate the block of registers.
1991-10-16 19:42:05 +00:00
John Gilmore a13f8a2f23 Remove -Dgetpagesize()=4096 kludge. 1991-10-16 19:41:34 +00:00
John Gilmore 6150cc735f * dbxread.c (read_dbx_symtab, process_one_symbol): Handle
Sequent N_FN_SEQ like everybody else's N_FN.
1991-10-16 19:38:56 +00:00
Roland Pesch 5dfddc7fc6 * doc/refcard.tex (sec "Working Files"): consistent metavars, due
to Franc,ois Pinard (pinard@iro.umontreal.ca)
1991-10-16 06:35:14 +00:00
Roland Pesch d9800dbbf3 Fix error spotted by Francois Pinard (pinard@iro.umontreal.ca): several
instances of *name* in "Working Files" s.b. *file*.
1991-10-16 06:32:57 +00:00
Roland Pesch e251e76736 Another revision of "Installing" appendix, for GDB 4.2. Table of config
name segments now updated.
1991-10-16 06:27:06 +00:00
Roland Pesch 93ae2e889a * doc/gdb.texinfo (appendix "Installing GDB"): changes in configure. 1991-10-16 03:13:36 +00:00
Roland Pesch c7637ea643 Update appendix "Installing GDB". (not yet updated: list of host-vendor-os). 1991-10-16 03:11:28 +00:00
John Gilmore 3dfb315ebd Further evolution. Remove hp-include pending real HP support. 1991-10-16 02:14:39 +00:00
John Gilmore 7ff46684f8 Configure isn't here any more. 1991-10-16 01:54:31 +00:00
John Gilmore 7534367a51 Remove configure and config.sub to ../ 1991-10-16 01:42:56 +00:00
John Gilmore 5d2cfefe93 * configure.in, tconfig/decstation, xconfig/decstation: Rename
dec3100 to decstation.
1991-10-16 01:06:01 +00:00
John Gilmore afe4ca159b Changes from Fred Fish:
* tm-68k.h (FPI_REGNUM):  Add.
* infrun.c (child_create_inferior):  flush stdout and stderr
before forking.
* configure.in:  Handle amigados, amix hosts and targets.
* inflow.c:  Handle TIOCGLTC_BROKEN for Amiga.

From Andreas Schwab:
* values.c (show_convenience):  Use printf_filtered.
* main.c (define_command):  Check result of lookup_command for
exact match.
(echo_command):  Use printf_filtered, and force output out.

* dbxread.c (read_enum_type):  Avoid Modula-2 kludge that breaks C
programs.
* i387-tdep.c (double_to_i387):  Fix typo for double_to_ieee_extended.
* utils.c (_initialize_utils):  If !ISATTY, don't paginate.
1991-10-15 23:29:34 +00:00
Roland Pesch 2109a7b736 * doc/gdb.texinfo
(nodes Continuing and Stepping; Memory; Targets) clarifications
	due to Larry Breed
1991-10-15 00:46:39 +00:00
Roland Pesch cedaf8bca5 Clarifications to "stepping", "Displaying Memory", and "Targets" due largely
to Larry Breed
1991-10-15 00:43:31 +00:00
Roland Pesch 440d983441 Catch up to changes recorded in GDB ChangeLog, to wit:
1) "show copying" and "show warranty" in sample output (instead of obs. "info")
2) new command "printpsyms"
3) Complaint "const/volatile indicator missing" re-enabled
4) Complaint "C++ type mismatch..." now "info mismatch..."
1991-10-14 20:36:50 +00:00
John Gilmore 3c6c67143a Assorted patches from Fred Fish, Peter Schauer. 1991-10-12 07:19:13 +00:00
John Gilmore df6335e19f * tm-{irix3,mips,nindy960,pn,symmetry,vx960}.h: Move
REGISTER_U_ADDR to corresponding xm- file.  Sugg. by Peter Schauer.
1991-10-12 07:11:48 +00:00
John Gilmore 9e77ff161f * copying.awk: Filter formfeeds out of copying & warrantee.
Make them available as `show copying' and `show warrantee' also.
1991-10-12 06:28:15 +00:00
John Gilmore 074274252f Read cross-core files on Mach 386. 1991-10-11 00:27:41 +00:00
John Gilmore 912456a503 * mipsread.c, coffread.c: initialise TYPE_VPTR_FIELDNO to -1.
This avoids coredumps under `set print object on' in value_headof
(called erroneously by value_from_vtable_info) for `p &struct'
or `p *struct'.  From Peter Schauer.
1991-10-10 00:05:52 +00:00
Roland Pesch 5298a14b49 (ORIG: date: 1991/09/27 22:47:20; author: pesch; state: Exp; lines: +3 -4)
Stop talking about obsolete "sharedlibrary" command in whats-new section.
1991-10-09 00:31:51 +00:00
Roland Pesch c728f1f0ef (ORIG: date: 1991/09/21 05:15:13; author: pesch; state: Exp; lines: +19 -18)
(1) fix typo ('_if_' and '_fi_' for '_if__' and '_fi__'!)
(2) prepare for semi-auto xref updating by rejoining xrefs broken across lines
1991-10-09 00:31:02 +00:00
Roland Pesch 7d7ff5f6dd (ORIG: date: 1991/09/21 03:59:06; author: pesch; state: Exp; lines: +12 -7)
Formatting updates to "installing" appendix.
1991-10-09 00:30:17 +00:00
Roland Pesch d7b569d59b (ORIG: date: 1991/09/21 02:59:57; author: gnu; state: Exp; lines: +32 -28)
Rearrange "how to install" and "how to print the doc" stuff so it drops
easier into README.
1991-10-09 00:29:37 +00:00
Roland Pesch f2857bd903 (ORIG: date: 1991/09/21 02:55:37; author: pesch; state: Exp; lines: +4 -2)
add missing index entries for set/show print sevenbit-strings.
1991-10-09 00:28:39 +00:00
Roland Pesch c338a2fdf2 (ORIG: date: 1991/09/21 02:01:41; author: pesch; state: Exp; lines: +175 -110)
Update configs table.
1991-10-09 00:27:09 +00:00
Roland Pesch 3e0d0a27fc (ORIG: date: 1991/09/20 22:43:47; author: pesch; state: Exp; lines: +47 -46)
Extract GDB version number from main GDB dir Makefile.in.
1991-10-09 00:26:15 +00:00
Roland Pesch c2bbbb2275 (ORIG: date: 1991/09/20 21:43:15; author: pesch; state: Exp;)
Merged in new doc on language setting, C, and Mod-2 by Andrew Beers;
cleanups to node structure.
1991-10-09 00:22:44 +00:00
Roland Pesch 0c81306bb4 Merged in new doc on language setting, C, and Mod-2 by Andrew Beers;
cleanups to node structure.

(RELEASE 4.1)
1991-10-09 00:17:27 +00:00
Roland Pesch b80282d52a RELEASE 4.0 docn. (Recovered from GDB 4.0 distribution; intervening
versions lost by cvs over system crash).
1991-10-09 00:06:58 +00:00
John Gilmore d1630095c4 First stage of coff-encap work. 1991-10-07 07:23:08 +00:00
John Gilmore e7a6fb0120 oops 1991-10-05 05:38:12 +00:00
John Gilmore c888e9cf5c Intel 386 Mach host port 1991-10-05 05:35:21 +00:00
John Gilmore 6617b94e06 Intel 386 Mach host port. 1991-10-05 05:35:06 +00:00
John Gilmore 634df4a653 Initial revision 1991-10-05 05:34:05 +00:00
Per Bothner a18e791707 More patches from Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
* mips-xdep.c (store_inferior_registers):  Don't try to
	write the (pseudo) FP.
	* mipsread.c (parse_partial_symbols):  Improved algorithm for
	setting pst->texthigh.
1991-10-05 00:25:09 +00:00
Roland Pesch 6e08f6d398 *** empty log message *** 1991-10-04 23:48:16 +00:00
Roland Pesch 60ba926295 Improve TEXINPUTS var set on calling TeX, so that things work even if
old value didn't specify current dir for input...
1991-10-04 23:46:57 +00:00
John Gilmore 7cefc05e6a * coffread.c, dbxread.c, symfile.c, symmisc.c, symtab.h: Remove
vestiges of typevectors, which were for symsegs and are no longer
used.  (From a question by Eliot Dresselhaus
<dresselh@RFT30.nas.nasa.gov>).
1991-10-04 07:40:21 +00:00
John Gilmore 9bba3334a0 * dbxread.c, coffread.c: static-ize functions that were
gratuitiously external.  (From Fred Fish.)
1991-10-04 06:46:30 +00:00
John Gilmore 5b0a744f98 * c-exp.y: sym->class to SYMBOL_CLASS (sym).
* dbxread.c (dbx_lookup_type):  Keep doubling size of typevector
until it is large enough.
1991-10-04 03:17:46 +00:00
John Gilmore 5bc757e244 * dbxread.c (read_type): Handle error case slightly better.
Make complaint message not C++-specific.

* symtab.c (lookup_symtab_1, lookup_symbol):  "fatal" errors
between symtabs and psymtabs become ordinary error()s.

* dbxread.c (read_dbx_symtab):  Relocate end_of_text_addr
properly, making "end pc" correct in shared lib psymtabs.
(From Guy Harris <guy@auspex.com>.)
1991-10-03 16:35:17 +00:00
Stu Grossman a03c8dc452 *** empty log message *** 1991-10-03 00:28:29 +00:00
K. Richard Pixley f1eb48b62e no more configure on which to depend 1991-10-02 07:24:45 +00:00
K. Richard Pixley 5a168a17ee resync 1991-10-02 04:15:56 +00:00
K. Richard Pixley b9fe720d06 steves h8 patches 1991-10-02 04:01:08 +00:00
K. Richard Pixley bcb14db549 exploit the new executable config.status 1991-10-01 21:00:50 +00:00
John Gilmore 9bb3045288 * dbxread.c: Enable, but soften, const_vol_complaint.
(read_dbx_symtab):  N_STSYM and N_LCSYM define static vars.
Ditto Gould N_NBSTS and N_NBLCS.  Also, all types in the psymtab
should be file-scope, not global.
(read_struct_type):  Remove ancient multiple-inheritance warning.
(read_range_type):  Check base type, complain & patch if undefined.
1991-10-01 13:29:10 +00:00
John Gilmore a187ef68c1 * stack.c (frame_info): Demangle the function name in `info stack'.
(From Peter Schauer)
1991-10-01 12:25:38 +00:00
John Gilmore dc9894c8b1 * symtab.c (lookup_method_type): Arguments were swapped in all
callers, so fix it here.  I'm amazed this worked at all!
1991-09-28 17:13:08 +00:00
John Gilmore 03e826bb51 * eval.c (evaluate_subexp_for_address): Don't use
TYPE_POINTER_TYPE directly (it might be zero if this type has
never had a pointer created before); use lookup_pointer_type.
1991-09-28 17:09:07 +00:00
John Gilmore b7f81b5781 * infrun.c (wait_for_inferior): Don't check if the PC is in a
call_dummy if we were stopped by a random signal that is being
passed to the program.  This produced wierd results when calling
functions in the inferior and signals (e.g. SIGALRM) were in use.
1991-09-28 11:26:43 +00:00
John Gilmore a65bb55d7a * nindy-tdep.c (nindy_frame_chain_valid): Use lookup_misc_func.
(Reported by Mark Peek <mark@imagen.com>.)
1991-09-28 02:20:09 +00:00
John Gilmore d8ce13268e * coffread.c (coff_symfile_read): Use xmalloc, not malloc.
* language.c, printcmd.c:  Lint.
        * language.h (get_frame_language):  Declare.
        * saber.suppress:  update.
        * stack.c (find_relative_frame):  Remove complex code that was
        #if 0'd, stick with simple code.  Lint.
	* saber.suppress:  Update a bit.
        * symfile.c (add_symbol_file_command):  Add "?" to question.
        * utils.c (parse_escape):  Avoid \a due to bdead compilers.
        * value.h:  Declare typedef_print.

        * valprint.c (val_print, type_print_base):  TYPE_CODE_RANGE less
        kludgey.
1991-09-28 01:35:29 +00:00
John Gilmore dad0e12d57 * core.c (core_files_info): Shorten output.
* exec.c (exec_files_info):  Ditto.
(build_section_table):  Ignore zero-length sections.
1991-09-28 01:31:23 +00:00
John Gilmore 39bf59520b * c-exp.y, m2-exp.y: Define more yysymbols that happen to be
"bss" rather than "data" symbols, but which still conflict.
* m2-exp.y:  Lint.
1991-09-28 01:30:41 +00:00
Roland Pesch c022837644 Stop talking about obsolete "sharedlibrary" command in whats-new section. 1991-09-27 22:47:20 +00:00
John Gilmore be3bc7ad7a iVS: Modified Files:
Print 9 digits for IEEE floats.
1991-09-25 01:18:59 +00:00
John Gilmore 680c9dfa72 IN_SIGTRAMP bugfix. 1991-09-25 01:09:15 +00:00
Roland Pesch ccca276c7e (1) fix typo ('_if_' and '_fi_' for '_if__' and '_fi__'!)
(2) prepare for semi-auto xref updating by rejoining xrefs broken across lines
1991-09-21 05:15:13 +00:00
Roland Pesch 7609651972 Formatting updates to "installing" appendix. 1991-09-21 03:59:06 +00:00
John Gilmore 24db5b8775 Doc updates for 4.1. 1991-09-21 03:41:23 +00:00
John Gilmore 0476df731c rtpc->romp 1991-09-21 03:29:09 +00:00
John Gilmore 6066cdfc0d Rearrange "how to install" and "how to print the doc" stuff so it drops
easier into README.
1991-09-21 02:59:57 +00:00
Roland Pesch 432ae9a94b add missing index entries for set/show print sevenbit-strings. 1991-09-21 02:55:37 +00:00
Roland Pesch 513c6e2bc1 *** empty log message *** 1991-09-21 02:03:09 +00:00
Roland Pesch 376de38d61 Update configs table. 1991-09-21 02:01:41 +00:00
John Gilmore 080193ca60 Update for gdb-4.1. 1991-09-21 01:52:39 +00:00
John Gilmore aeb62c7b50 Roll in information from README. 1991-09-21 01:50:26 +00:00
John Gilmore dc4a4b2e6a Update for gdb-4.1 release. 1991-09-21 00:19:51 +00:00
John Gilmore 0b7984094d * language.c (set_language_command): Print useful help message,
and restore the language string after giving help.
* valprint.c (typedef_print):  Print typedef in C or M2.
* symtab.c (list_symbols):  Use it.
1991-09-20 23:59:13 +00:00
John Gilmore 5f3d478e7d * main.c (main): Avoid any output before (gdb) prompt when -q.
* language.c (set_language_command):  Handle errors by restoring
the language string to its current state (fix from A. Beers).
1991-09-20 23:17:32 +00:00
Roland Pesch 14e2990a5f *** empty log message *** 1991-09-20 22:51:22 +00:00
Roland Pesch b7ced3225a Fri Sep 20 15:46:00 1991 Roland H. Pesch (pesch at cygnus.com)
* doc/Makefile: generate aux version-no file doc/gdbVN.m4
	from main Makefile.in version definition
	doc/gdb.texinfo: use version recorded in doc/gdbVN.m4 for current
	GDB version no refs
	Makefile.in (setup-to-dist): generate doc/gdbVN.m4
1991-09-20 22:50:11 +00:00
Roland Pesch 1c484dd7cb Extract GDB version number from main GDB dir Makefile.in. 1991-09-20 22:43:47 +00:00
Per Bothner ab1e12a22e Kludge to allow compilation by non-ANSI compilers. 1991-09-20 22:03:49 +00:00
Roland Pesch 73c9796dac Merged in new doc on language setting, C, and Mod-2 by Andrew Beers;
cleanups to node structure.
1991-09-20 21:43:19 +00:00
John Gilmore 1fea803977 * dbxread.c (read_dbx_symtab, process_one_symbol): N_FN and
N_WARNING are the same except for the N_EXT bit, so just use their
values alone, rather than OR-ing them with N_EXT.
1991-09-20 20:37:17 +00:00
Stu Grossman a4c53fb006 Sign extend extended line offsets in parse_lines correctly. 1991-09-20 20:15:20 +00:00
Stu Grossman 9ce7cb7c52 #define yyerrflag and yynerrs to avoid global name conflicts. 1991-09-20 19:30:36 +00:00
Stu Grossman e9f82257cf *** empty log message *** 1991-09-20 19:29:41 +00:00
John Gilmore a3a9ba23bc .gdbinit: move set complaints 1 to top. 1991-09-20 19:26:09 +00:00
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
John Gilmore 006774c48a Remove rcfonts.tex after building refcard. 1991-09-20 08:18:16 +00:00
John Gilmore 531dca4989 (HFILES): Add minimon.h.
(VERSION):  Roll version number to 4.0.95.
1991-09-20 06:35:16 +00:00
Roland Pesch 613d64489a doc/gdbint.texinfo 1991-09-20 00:42:12 +00:00
Roland Pesch 97f3cb7275 Reorder contents; reorganize new-host, new-target, and new-config
chapters; fix minor typos; come closer to usual GNU markup conventions
for @file @samp @code @var.
1991-09-20 00:40:36 +00:00
Per Bothner c44582c81a Various mips changes from Peter Schauer. 1991-09-20 00:17:30 +00:00
Per Bothner 4cf73f0475 Define HAVE_STRSTR. 1991-09-20 00:15:19 +00:00
John Gilmore ef08856f62 Add language.h. 1991-09-19 22:48:16 +00:00
John Gilmore c82e8a491c Minor fixes 1991-09-19 22:39:58 +00:00
John Gilmore e5fa3486b1 * mipsread.c (_initialize_mipsread): Avoid using
builtin_type_void at initialize time.
(mipscoff_symfile_read):  use it now.
1991-09-19 22:39:39 +00:00
John Gilmore f24adda313 * c-exp.y, m2-exp.y: Lint.
* m2-exp.y:  Avoid using yytname[] which is a Bison-ism.
1991-09-19 22:16:40 +00:00
John Gilmore cd93283c87 Circumvent Sun Make bug on *-exp.tab.o. 1991-09-19 22:16:24 +00:00
John Gilmore 9dffe475b5 Lint 1991-09-19 11:51:26 +00:00
John Gilmore 0def21a0f2 Andrew Beers' changes for Modula-2 support. 1991-09-19 11:48:49 +00:00
John Gilmore c8023e6630 * language.h, language.c: New files for language-specific macros,
declarations, and definitions.
1991-09-19 11:43:22 +00:00
John Gilmore 91ec58ee5c Eliminate uses of working_lang. 1991-09-19 11:42:25 +00:00
John Gilmore bee3c1a1ec * 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.
1991-09-19 10:44:20 +00:00
John Gilmore 94d86c7cb5 Add M2 to what's new. 1991-09-19 10:40:34 +00:00
John Gilmore 56d921a893 Cope with new files and removed files for Modula-2 support. 1991-09-19 10:40:03 +00:00
John Gilmore 3d6b6a9075 * 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.
1991-09-19 10:31:00 +00:00
John Gilmore 997a978c5d * 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.)
1991-09-19 10:27:17 +00:00
John Gilmore ec99961f8a Output hex with local_hex_string for Modula-2 support. 1991-09-19 09:13:50 +00:00
John Gilmore bd09940765 * 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.
1991-09-19 08:51:16 +00:00
John Gilmore 89e0bbcd4f * 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.
1991-09-19 08:31:37 +00:00
John Gilmore 2ccb38371a Use parse_expression and parse_exp_1 rather than
parse_c_expression and parse_c_1.
1991-09-19 07:40:51 +00:00
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