Commit graph

18372 commits

Author SHA1 Message Date
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
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
John Gilmore
1dbe1ef797 Add info about porting to new hosts and targets. 1991-08-23 23:13:03 +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
fad60036f7 generate "gdb-all.texi" rather than "gdb-all.texinfo" 1991-08-23 22:46:53 +00:00
Roland Pesch
ee4196dc5d *** empty log message *** 1991-08-23 22:39:16 +00:00
K. Richard Pixley
8b204e6ea4 add email address for bugs and additions. 1991-08-23 22:38:25 +00:00
Roland Pesch
b9def3d9df Reflect name change (doc/rdl-apps.texi) 1991-08-23 22:37:49 +00:00
Roland Pesch
8b5d2c4e96 * rdl-apps.texi: renamed from rdl-apps.texinfo
* Makefile, .Sanitize, gdb.texinfo: reflect above name change
1991-08-23 22:35:42 +00:00
K. Richard Pixley
cb3e10f3fe Minor vintage gcc lints. 1991-08-23 21:42:01 +00:00
Roland Pesch
d7c2f2ddd5 * WHATS.NEW: correct pointer to refcard. 1991-08-23 21:10:02 +00:00
Roland Pesch
d98259f8ac * doc/gdb.texinfo: update New Features, Installing
* doc/gdbint.texinfo: add short description of configure +template
1991-08-23 21:09:33 +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
K. Richard Pixley
69e87de278 Minor config polish. 1991-08-23 04:50:56 +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
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
John Gilmore
f4240b0806 A little bit more sanity. 1991-05-30 09:22:16 +00:00
John Gilmore
d11c44f1ee Roll in Tiemann changes for gcc -ansi. Fix assorted bugs. See ChangeLog. 1991-05-30 08:52:52 +00:00
John Gilmore
dcc355360e Update bfd_h_get{short,long} to bfd_h_get{_16,_32} for basic type size
independence.
1991-05-29 00:13:44 +00:00
K. Richard Pixley
eeadf5c220 First cut. 1991-05-23 22:06:18 +00:00
K. Richard Pixley
2d797c084b Initial revision 1991-05-23 22:05:24 +00:00
K. Richard Pixley
a3e6538284 First cut. 1991-05-23 21:57:03 +00:00
Roland Pesch
59500745a4 * Makefile.dist, doc/gdb.texinfo, doc/*-m4.texinfo: split up GDB
docn into separate sections---basically chapters, plus two loose
	pieces that can be configured to go in different places.  This
	allows GNU m4 to preprocess the manual without coredumping.

	* Makefile.dist: tell TeX where to find texinfo.
1991-05-23 01:22:06 +00:00
Roland Pesch
0e0fa7cea4 Move definition of \manvers back into gdb.texinfo (had been captured
in gdb.top-m4 when files were split), for continuity in version
numbering: the version of the manual is the version of the layout file.
(By R. Pesch fiat).
1991-05-23 00:35:54 +00:00
Roland Pesch
9bcc06ef16 *** empty log message *** 1991-05-23 00:14:26 +00:00
Roland Pesch
bce4bf525f * Makefile.dist, doc/gdb.texinfo: respectively create, and use,
the new target "rdl-apps.texinfo" which captures the Makefile
	variable that records where to find the Readline libraries.
1991-05-20 19:19:41 +00:00
Roland Pesch
a02da681db *** empty log message *** 1991-05-20 19:17:48 +00:00
John Gilmore
b3ac5b76d4 The one that shipped with 3.5. 1991-05-20 01:37:08 +00:00
John Gilmore
d6cbb709ae Final versions used to make gdb-3.95 release. 1991-05-20 01:25:36 +00:00
John Gilmore
918f653c3e More prep for final 3.95 release. 1991-05-20 00:15:48 +00:00
John Gilmore
0c54008256 Fix nits found in attempting a Tahoe port. 1991-05-20 00:08:39 +00:00
John Gilmore
17563ca1e1 Update for release 3.95. Readline is independent. Add assorted
files that were missed since the last release.
1991-05-19 17:18:55 +00:00
John Gilmore
b232294fd2 Update comment; these are for SVR3.2, not SVR2. 1991-05-19 17:13:32 +00:00
John Gilmore
cacbbaa890 Add tahoe and i386sco targets; update comments in i386v32 targets. 1991-05-19 17:11:52 +00:00
John Gilmore
90c2206d37 Initial revision 1991-05-19 17:11:51 +00:00
John Gilmore
32ce076dc6 Add rev # 1991-05-19 16:09:01 +00:00
John Gilmore
361cc81add update for release 1991-05-19 16:01:39 +00:00
John Gilmore
9a7c775f1c * config.gdb: Don't create readline dir in subdir builds.
* main.c:  Include with "..." form for non-system include files,
        so "gcc -MM" for "make depend" works.
        Include readline files with "...h" rather than <readline/...h>.
1991-05-19 15:21:15 +00:00
John Gilmore
477cf2a958 Update from Rich's damage and try for a releasable directory.
Minor Bothner changes.
1991-05-19 15:08:57 +00:00
John Gilmore
1513b950f2 Check in one built with "config.gdb none" rather than "config.gdb sparc".
Also includes a few changes around readline dependencies.
1991-05-19 14:58:25 +00:00
John Gilmore
e73dbe5d3b * Makefile.dist: Fix Rich damage; undo "configure" changes in
favor of keeping the (working) config.gdb.  Move readline
        library up a notch.
1991-05-19 14:57:22 +00:00
John Gilmore
de55ca0ee7 Undo rich's "avoid compiling the module that doesn't compile, so I
can claim that it configures and builds" change.
1991-05-19 12:51:09 +00:00
John Gilmore
69f29a86f0 * sparc-xdep.c (deferred_stores): Repair minor damage by Rich.
Move deferred_stores to top of file, but don't separate its
        #define's from its variable.  Add commentary.
1991-05-19 12:49:37 +00:00
K. Richard Pixley
d39a9543a6 Config polish. 1991-05-19 08:44:48 +00:00
K. Richard Pixley
beff312ea7 configure changes and -opcode.h movement. 1991-05-19 07:27:02 +00:00
K. Richard Pixley
912e0732be Configure for gdb. 1991-05-19 00:16:46 +00:00
Roland Pesch
2ec11e91b5 *** empty log message *** 1991-05-17 23:19:08 +00:00
Roland Pesch
42e0255e85 Added readline/inc-readline.texinfo and readline/inc-history.texinfo
to the list of dependencies for the target "gdb.dvi".
1991-05-17 23:17:56 +00:00
Roland Pesch
2e4fd3d631 *** empty log message *** 1991-05-17 22:53:05 +00:00
Roland Pesch
e9d6f412f0 *** empty log message *** 1991-05-17 21:43:25 +00:00
Roland Pesch
99a99fd253 * doc/gdb.texinfo: finished using all RMS comments, save those for
appendices on readline and cmd history (which are in other source
	files)
1991-05-17 21:43:01 +00:00
John Gilmore
216f330fc1 Bothner 1991-05-17 19:49:37 +00:00
Roland Pesch
8e34c36073 *** empty log message *** 1991-05-17 01:14:04 +00:00
Roland Pesch
04ec2f3010 * doc/gdb.texinfo: (1) Updated w/ref to RMS comments through
chapter 9; (2) documented 'break' command's menu mode for
	overloaded names, in response to hgs problem report C++ p-31
1991-05-17 01:10:52 +00:00
Roland Pesch
0f98282646 *** empty log message *** 1991-05-16 04:09:54 +00:00
Roland Pesch
bfda3f2ee9 Divert specialized startup
instructions to "Targets" chapter for generic manuals, while
	leaving them up front for manuals specific to specialized
	environments; apply fixes from RMS comments through chapter 4.
1991-05-16 04:09:30 +00:00
Roland Pesch
55a64af6ea *** empty log message *** 1991-05-16 02:20:20 +00:00
Roland Pesch
a3bb247ef0 (1) new Appendix, Renamed Commands;
(2) new leading subsection, Contributors to GDB
1991-05-16 02:16:27 +00:00
Roland Pesch
d84e045fc7 *** empty log message *** 1991-05-16 00:46:44 +00:00
Roland Pesch
9c3ad54799 * gdb.texinfo: (1) better introductory example; (2) more
consistent use of @code, @samp, @file, @kbd throughout; small
	cleanups to first three nodes.
1991-05-16 00:46:09 +00:00
Roland Pesch
8dc805ad84 *** empty log message *** 1991-05-15 18:11:10 +00:00
Roland Pesch
92d3036028 Wed May 15 11:02:48 1991 Roland H. Pesch (pesch at fowanton.cygnus.com)
* pretex.m4: modify explanatory text slightly (and redefine
	"regexp") to keep GNU m4 from complaining.  (It still crashes
	later, but one step at a time...)
1991-05-15 18:10:40 +00:00
John Gilmore
a37c68f7a2 readline update 1991-05-15 17:36:32 +00:00
John Gilmore
68cf97936e Fix duplicated entry in ChangeLog. 1991-05-15 17:30:02 +00:00
Roland Pesch
72f6386b5f * Makefile.dist: put gdb.dvi stuff (updated to use M4 preprocessor
stuff for config manual) here where it counts; updated
	to use new subdir structure (gdb/doc/).

	* Makefile: generated from above via
		    config.gdb none
	before checkin
1991-05-14 23:34:41 +00:00
Roland Pesch
9c416cbdb8 (1) removed "gdb.info*" files (just introduced) from CVS;
(2) instead,
	* gdbint.texinfo: added instructions on generating gdb.info* files
	locally for release.
1991-05-14 22:34:12 +00:00
Roland Pesch
2c85a5a97b * gdb.info*: added to distribution. These are ordinary info
files, formatted from gdb.texinfo (via gdb-all.texinfo, see
	Makefile)---but due to use of texinfo 2, can't count on makeinfo
	to generate these, so we distribute them already formatted.

	* gdb.texinfo: included full Info node and menu crud (as generated
	by C-u M-x texinfo-master-menu using the texinfo-2 elisp code).

	* Makefile: updated "gdb.dvi" target to use M4 preprocessor;
	put in comments-for-future gdb.info target (one day makeinfo will
	work again).
1991-05-14 22:07:52 +00:00
Roland Pesch
022cb4c5e1 *** empty log message *** 1991-05-14 22:01:19 +00:00
Roland Pesch
14719f8df6 *** empty log message *** 1991-05-14 20:55:08 +00:00
K. Richard Pixley
c422030318 see devo/configure 1.11 1991-05-14 14:14:40 +00:00
John Gilmore
852f8c2121 Update "make saber_gdb" a bit. 1991-05-13 23:44:37 +00:00
John Gilmore
e072c73824 * mipsread.c: Rather than keeping count of how many symtabs
and psymtabs we have, for sorting purposes, count them when
        we need to sort.  This fixes bug in rereading of symbol tables.
1991-05-13 21:59:43 +00:00
Roland Pesch
616da99975 *** empty log message *** 1991-05-10 22:46:08 +00:00
Roland Pesch
98088880f3 (1) Updated to reflect renamed commands;
(2) Reorganized, bringing more common commands forward, merging
    "print" and "x" into one section;
(3) New sections: "Essential Commands", "GDB Scripts";
(4) Material on convenience vars and value history added to "Expressions";
(5) Uses PostScript fonts by default, also includes (commented out) alternative
    Computer Modern font definitions that format similarly.
1991-05-07 19:38:33 +00:00
John Gilmore
5594d534a2 Saber C (lint) cleanups, and a few bug fixes. See ChangeLog. 1991-05-04 23:15:02 +00:00
John Gilmore
6281dfd59d Roll version to 3.95. 1991-05-04 18:10:57 +00:00
John Gilmore
77ac93922c See ChangeLog. 1991-05-04 05:07:07 +00:00
John Gilmore
591cd7a6f4 Jim Kingdon's port to m88k on his last day at Cygnus. 1991-05-04 04:41:34 +00:00
John Gilmore
74dcea7b24 Jim Kingdon's port of gdb to m88k on his last day. 1991-05-04 04:40:57 +00:00
Roland Pesch
1722479547 *** empty log message *** 1991-05-03 20:19:18 +00:00
John Gilmore
86bbb439c8 There should be a Makefile in the cvs main directory, configured
for "./config.gdb none", so that things like "make tags" and "make tar"
will work.
1991-05-03 19:57:13 +00:00
Jim Kingdon
8e7457b2aa *** empty log message *** 1991-05-03 06:06:53 +00:00
Jim Kingdon
7b54d319af * mtrace.c: Don't typedef things like size_t, just #define them. 1991-05-03 06:04:13 +00:00
Jim Kingdon
2cb3be2c94 * cplus-dem.c [__STDC__]: Make x{m,re}alloc return void*. 1991-05-03 06:03:54 +00:00
Jim Kingdon
63a463b149 * signame.c: Cast const char* to char* when assigning to sys_siglist. 1991-05-03 06:02:52 +00:00
Jim Kingdon
8aa13b8777 Make it run on wingnut (88k, DGUX). Complete list of changes in the ChangeLog. 1991-05-03 06:02:03 +00:00
John Gilmore
8ffd75c8a9 Mips bringup and general cleanup
* cplus-dem.c:  Move CPLUS_MARKER define to after defs.h.
        * infptrace.c (PT_WRITE_D, PT_READ_D):  Use correct values.
        (This still doesn't seem to make MIPS bkpts work.)
        * mipsread.c:  Remove dup "Reading symbol data..." msg.
        (symbol_file_command, add_file_command):  Remove, obsol.
        * printcmd.c (ptype_command):  Say "an enum" rather than "a enum".
        Wrap output appropriately.
        * stack.c (locals_info, catch_info, args_info):  Check
        selected_frame rather than target_has_stack or coredumping.
        * valprint.c (type_print_varspec_suffix):  Wrap "ptype" output of
        enums appropriately.
1991-05-03 01:07:12 +00:00
Jim Kingdon
2bff8e38bc *** empty log message *** 1991-05-03 00:50:18 +00:00
Jim Kingdon
511a6d0ad6 *** empty log message *** 1991-05-02 06:46:25 +00:00
Jim Kingdon
65c9348236 *** empty log message *** 1991-05-02 04:38:14 +00:00
Jim Kingdon
8c8212900e * xm-sun386.h: Don't define SET_STACK_LIMIT_HUGE. 1991-05-02 04:37:28 +00:00
Jim Kingdon
2d0c090e48 * blockframe.c, breakpoint.c, core.c, command.c, findvar.c,
eval.c, expprint.c, infcmd.c, infrun.c, main.c, printcmd.c,
	remote.c, source.c, stack.c, dbxread.c, coffread.c, symfile.h,
	symfile.c, utils.c, valarith.c, values.c, valops.c, tm-68k.h,
	target.c, inftarg.c, ieee-float.c, environ.c, defs.h,
	command.h, inferior.h, gdbcore.h, symtab.h, expression.h,
	symtab.c, cplus-dem.c, value.h, expread.y, valprint.c,
	copying.awk, solib.c, inflow.c, symmisc.c
	: Lint.  Use read_memory not read_memory_integer on CORE_ADDR's.
	Use {value_as,unpack}_pointer (added to values.c)
	not {value_as,unpack}_long on CORE_ADDR's.
	Use longest_to_int (added to defs.h) instead of cast to int.
	Remove from_tty arg to mod_path.
	Put symfile_bfd in {coff,dbx}read.c not symfile.h.
	Use OP_NULL instead of 0 where dummy enum exp_opcode needed.
1991-05-02 04:36:15 +00:00
Jim Kingdon
e1ce8aa5ed The list of changes is too long to fit in the cvs log (since it truncates!).
Look at the ChangeLog for Apr 30 and May 1.
1991-05-02 04:28:42 +00:00
Jim Kingdon
04a0511c0a * signame.c: Include defs.h and param.h. 1991-05-02 04:17:41 +00:00
John Gilmore
639893384d Merge devo/bfd with GDB's bfd.
Get getopt and obstack from -liberty rather than compiling them here.
* coffread.c: turn a printf into a complain(), and try to deal more
gracefully with botched-looking lineno pointers.
* dbxread.c:  Use bfd_get_symcount rather than bfd_get_symcount_upper_bound.
Don't coredump on files with zero symbols in them (a BFD bug showed this one).
* environ.c:  Pass GNUTARGET into the parent (gdb) as well as the child.
1991-05-02 03:39:15 +00:00
Michael Tiemann
aec4cb918e Tue Apr 30 13:13:33 1991 Michael Tiemann (tiemann at cygint.cygnus.com)
* valprint.c (type_print_base): If the type being printed is a
	struct containing undefined types, print "<undefine type>"
	as the type instead of crashing.
	* values.c (value_headof): Get the vtable pointer taking
	TYPE_VPTR_BASETYPE into account.
	* symtab.c, symtab.h, dbxread.c: Fix various whitespace splotches.
1991-04-30 20:19:02 +00:00
Jim Kingdon
98c1b9e79b *** empty log message *** 1991-04-30 19:51:50 +00:00
Jim Kingdon
39d2bcca7d * sun3-xdep.c, tm-sun3.h, tm-68k.h: Change TARGET_SUN3 to
GDB_TARGET_IS_SUN3.
1991-04-30 19:50:49 +00:00
Jim Kingdon
a416228b53 * Makefile.dist: Add comment about tm-sun3os4.h: tm-sun3.h, etc. 1991-04-30 19:50:07 +00:00
Jim Kingdon
f0ca24b901 * sun386-xdep.c [!GDB_TARGET_IS_SUN386]: Just provide empty
functions which don't do anything.
1991-04-30 19:49:40 +00:00
Jim Kingdon
94ac73c174 * Move BROKEN_LARGE_ALLOCA from tm-sun386.h to xm-sun386.h. 1991-04-30 19:49:22 +00:00
Jim Kingdon
79043f9ee8 * infrun.c: Don't include sys/user.h and friends (wrong for
cross-debugging and not necessary anymore (see IN_SIGTRAMP in
	xm-vax.h)).
	[SET_STACK_LIMIT_HUGE]: Include <sys/{resource,time}.h>.
	xm-tahoe.h: Don't define _DIRENT_.

	* xm-tahoe.h: Remove USE_OLD_TTY (not needed now that terminal.h
	includes sgtty.h before sys/ioctl.h).
1991-04-29 20:54:42 +00:00
Jim Kingdon
192040b131 {x,t}m-tahoe.h, tahoe-pinsn.c, tahoe-opcode.h: New files. 1991-04-29 05:28:47 +00:00
Jim Kingdon
cb173f45df Initial revision 1991-04-29 05:28:45 +00:00
Jim Kingdon
122ad9abf2 * param-no-tm.h: Make BITS_BIG_ENDIAN defined to 0/1, not defined
or not defined.  Don't define it based on TARGET_BYTE_ORDER if
	it's already defined (in the tm.h file).
	mips-opcode.h (BIT_FIELDS_*),
	values.c (modify_field, unpack_field_as_long):
	Use #if BITS_BIG_ENDIAN not #ifdef BITS_BIG_ENDIAN.
1991-04-29 05:27:04 +00:00
Jim Kingdon
5d98a45f63 * tm-sparc.h: Add comments about gcc version 2 and structure passing. 1991-04-26 23:09:53 +00:00
Jim Kingdon
689f801a79 *** empty log message *** 1991-04-26 23:09:52 +00:00
Jim Kingdon
b011df5246 * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type.
Return void not int. (also declarations in symfile.h and value.h).
1991-04-26 23:07:03 +00:00
Jim Kingdon
d166df9b4e defs.h (TARGET_LONG_LONG_BIT): New macro. 1991-04-26 23:05:38 +00:00
Jim Kingdon
ea9cdf62c6 * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_long
regardless of LONG_LONG.
	symtab.c, symtab.h (allocate_stub_method): New function.
1991-04-26 23:05:17 +00:00
Jim Kingdon
b99f250bf9 * values.c, value.h: New functions value_{headof,from_vtable_info}.
* value.h: Remove redundant declaration of value_static_field.
1991-04-26 23:04:32 +00:00
Jim Kingdon
71b16efa43 * values.c (check_stub_method): Do lookup_method_type and stuff
rather than smash_to_method_type.
	* values.c (check_stub_method): Deal with operator names.
	* values.c: Move declaration of cplus_demangle to top of file.
	* values.c (baseclass_addr): If can't read memory, set *ERRP
	rather than calling error().
	* values.c (value_static_field): Recursively check all baseclasses.
	Return NULL if not found.
	* values.c, value.h: New functions value_{headof,from_vtable_info}.
	values.c (value_virtual_fn_field):
	Don't bother to do anything with
	return value from fill_in_vptr_fieldno.CVS: Modified Files:
1991-04-26 23:04:10 +00:00
Jim Kingdon
0dce377401 * valprint.c (val_print): Print out first element of vtbl
specially.
	* valprint.c: Move print controls to top and add objectprint.
	Add command "set print object on/off".
	* valprint.c (value_print, is_vtbl_member): Put things in local
	variables rather than continually doing VALUE_TYPE (val), etc.
1991-04-26 23:02:38 +00:00
Jim Kingdon
d3bab255c7 * valops.c (typecmp): If t2 == 0, return 1.
* valops.c (value_struct_elt_for_address): Call check_stub_method.
	* valops.c (value_struct_elt): Remove found, arg1_as_ptr.
	* valops.c (search_struct_method): Give error if j > 0 && args == 0.
	* valops.c (search_struct_field): New argument looking_for_baseclass.
	Give error if value_static_field or value_primitive_field
	return NULL.
	valops.c (various): Call search_struct_field with extra parameter.
1991-04-26 23:02:15 +00:00
Jim Kingdon
d96b54ea7a * symtab.c, symtab.h: Have a builtin_type_{,unsigned_}long_long
regardless of LONG_LONG.
	symtab.c, symtab.h (allocate_stub_method): New function.
	* symtab.c (decode_line_1): Deal with operators specified as
	"operator" <optional whitespace> <symbols for operator>.
	(operator_chars): Help do it.
	* symtab.c (lookup_struct_elt_type): Call check_stub_type.
	Take additional argument noerr.
	Don't dump core if TYPE_FIELD_NAME is NULL.
	Check the baseclasses recursively.
1991-04-26 23:01:36 +00:00
Jim Kingdon
7cc4387940 * symfile.c (fill_in_vptr_fieldno): Don't call check_stub_type.
Return void not int. (also declarations in symfile.h and value.h).
	Deal with multiple inheritance.
1991-04-26 23:00:55 +00:00
Jim Kingdon
3577f9b469 * printcmd.c (x_command): Dereference references.
* printcmd.c (print_command_1): Add if (objectprint) code.
1991-04-26 23:00:32 +00:00
Jim Kingdon
5f00ca54af * eval.c (evaluate_subexp, case UNOP_LOGNOT): If following opcode
is OP_SCOPE, give an error.
	* eval.c (evaluate_subexp): Pass third arg to lookup_struct_elt_type.
	* eval.c (evaluate_subexp), values.c (value_virtual_fn_field):
	Don't bother to do anything with
	return value from fill_in_vptr_fieldno.
	* eval.c (evaluate_subexp): If value_static_field returns NULL,
	give an error.
1991-04-26 22:59:54 +00:00
Jim Kingdon
62c4f98b2b dbxread.c (read_type): If we get "##", don't lookup_function_type
and start clobbering it; allocate_stub_method instead.
	* dbxread.c (read_struct_type): Put "op$" instead of "operator"
	in the symbol table.
	* dbxread.c (read_struct_type): Set fcontext to 0 for normal member
	function.
	* dbxread.c (read_struct_type): Initialize name to 0.
	* dbxread.c (read_ofile_symtab, N_CATCH): Add offset to bufp->n_value.
	* dbxread.c (dbx_create_type): Zero TYPE_VPTR_BASETYPE.
	(read_struct_type): Don't bother to set TYPE_VTPR_{BASETYPE,FIELDNO}
	if it's just going to be {0,1}.

	* dbxread.c (virtual_context): Use TYPE_BASECLASS starting at 0
	(yes, it's #if 0, but just in case...).
1991-04-26 22:59:00 +00:00
Jim Kingdon
55838914fd * cplus-dem.c (optable): Add "nw", "dl", "compound".
(cplus_mangle_opname): New function.
	(do_type): Add case 'Q'.
	* vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
	things "const".
1991-04-26 22:58:14 +00:00
Jim Kingdon
5cced18459 * expread.y (abs_decl): Accept '&' and '&' abs_decl.
expread.y (typebase): Add {unsigned,} long long {,int}.
	* expread.y (variable): Allow for destructor with foo::~name.
	* vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
	things "const".
1991-04-26 22:57:44 +00:00
Jim Kingdon
81919cc85b * vax-opcode.h, expread.y, expprint.c, cplus-dem.c: Declare some
things "const".
1991-04-26 22:57:07 +00:00
Jim Kingdon
2d3b429559 gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.
* gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize.
1991-04-26 22:56:08 +00:00
Jim Kingdon
1dcabdbc6a * xconfig/i386v{,32}{,-g}: Add XM_CFLAGS=-Dgetpagesize()=4096.
gmalloc.c: #if 0 out !HAVE_GETPAGESIZE code.
1991-04-26 22:55:42 +00:00
Jim Kingdon
a36f604047 This is the last one I gave to Telebit, minus all the print_msg's. 1991-04-24 19:33:31 +00:00
Jim Kingdon
a1002e9ab0 * WHATS.NEW: Remove mention of readline and more paging (in 3.5).
Try to keep command names up to date with renaming.
1991-04-24 19:30:10 +00:00
Jim Kingdon
be11d1119a * gmalloc.c [!HAVE_GETPAGESIZE]: Try to figure out the pagesize. 1991-04-24 19:18:42 +00:00
Jim Kingdon
a71d17b1ac * infun.c (resume, resume_cleanups): New functions.
(wait_for_inferior, proceed, child_create_inferior): Use resume
	not target_resume.
1991-04-24 19:17:58 +00:00
Jim Kingdon
eb7ba50c7c * remote.c (getpkt): Don't set immediate_quit. 1991-04-24 17:14:10 +00:00
Jim Kingdon
2403f49b37 * blockframe.c, frame.h (reinit_frame_cache): New function.
solib.c (solib_add), symfile.c ({,add_}symbol_file_command):
	Use it.
1991-04-24 16:56:40 +00:00
Jim Kingdon
b039ac3a20 * symtab.c (lookup_symbol): Add 3 more of those loops through
the symtabs which we all know and love: (1) Look in the
	STATIC_BLOCK for mangled symbols right after we check the blocks,
	(2, 3) Look in the STATIC_BLOCK for all the symtabs and psymtabs
	at the end.
1991-04-24 02:23:40 +00:00
Jim Kingdon
e532974c43 values.c (value_virtual_fn_field): If there is no fcontext,
then do things the way GDB 3.x did.
	valops.c (search_struct_method): Add type to value_virtual_fn_field
	arguments.
1991-04-24 01:01:09 +00:00
Jim Kingdon
9107291db4 * main.c (cd_command): Call dont_repeat.
* dbxread.c (read_struct_type): If const/volatile character is
	missing, don't complain, just continue.

	* dbxread.c (read_struct_type): Only try to read the fcontext if
	it is there.  Also change "error_type " to "return error_type ".
	values.c (value_virtual_fn_field): If there is no fcontext,
	then do things the way GDB 3.x did.
	valops.c (search_struct_method): Add type to value_virtual_fn_field
	arguments.

	* dbxread.c (read_struct_type): Fix typo: *pp != '\0' -> **pp != '\0'.
1991-04-24 00:08:50 +00:00
Jim Kingdon
19b7c2a49e * printcmd.c (print_scalar_formatted): Add 't' for binary. 1991-04-23 17:27:49 +00:00
Jim Kingdon
269c301158 Use unpush_target not pop_target in core_open. 1991-04-23 02:19:43 +00:00
Jim Kingdon
9a822037b1 *** empty log message *** 1991-04-23 01:11:11 +00:00
Jim Kingdon
25a40b004d Restore Schauer's version of ADD_SOLIB in core_open(). 1991-04-23 00:43:20 +00:00
Jim Kingdon
d0237a54e5 * Shared libaray/corefile changes from Peter Schauer:
core.c (core_close): Call CLEAR_SOLIB.
	(core_open): Remove comment about "should deal with shared lib".
	(core_xfer_memory): If we can't xfer the usual way, try the
	shared libraries.
	solib.c (so_list): New fields so_bfd and so_sections{,_end}.
	(find_solib): Use solib_map_sections to get ld_text.
	(solib_map_sections, solib_xfer_memory): New functions.
	(clear_solib): Free so_sections and close so_bfd.
	tm-sunos.h: Add solib_xfer_memory, solib_add.
1991-04-23 00:05:24 +00:00
Jim Kingdon
192cbba944 * sparc-tdep.c (skip_prologue): Don't skip anything unless there
is a "save" instruction in there somewhere.
1991-04-22 21:40:42 +00:00
Jim Kingdon
8683547484 Initial revision 1991-04-22 20:36:28 +00:00
Jim Kingdon
5730a14e76 Fix the fix to the appearance of the ChangeLog 1991-04-22 20:12:14 +00:00
Jim Kingdon
0e000acdc9 Fix appearance of ChangeLog. 1991-04-22 20:11:42 +00:00
Jim Kingdon
b3fdaf3d36 * symfile.c (symbol_file_add): Add comment.
solib.c (solib_add): Don't malloc name passed to symbol_file_add.
1991-04-22 20:09:26 +00:00
Jim Kingdon
777bef06cd Check for NULL selected_frame in various places. 1991-04-22 20:08:53 +00:00
Jim Kingdon
fcb887ffcd * breakpoint.c (bpstat_print): Try all elements on the bpstat
chain before giving up with an internal error.

Sun Apr 21 21:43:10 1991  Jim Kingdon  (kingdon at cygint.cygnus.com)

	* value.h, values.c (value_{,free_to_}mark): New functions.
	breakpoint.c (bpstat_stop_status): Use them.
1991-04-22 07:08:07 +00:00
Jim Kingdon
33614d0fc6 * tm-i386v{,-g}.h: Remove N_SET_MAGIC define. 1991-04-22 04:45:26 +00:00
Jim Kingdon
2b325024a8 * i386-tdep.c: Remove unnecessary #includes. 1991-04-21 05:59:53 +00:00
Jim Kingdon
b203fc1803 * coffread.c (find_linenos): Use LINESZ not sizeof (struct lineno).
* coffread.c (end_symtab): Initialize language, dirname, and
	fullname fields.
1991-04-21 05:17:05 +00:00
Jim Kingdon
98885d766e infrun.c (start_remote): Also call wait_for_inferior & normal_stop. 1991-04-20 03:59:44 +00:00
Jim Kingdon
f2ebc25fc2 * findvar.c (read_register_gen): Add "target byte-order" comment.
Wed Apr 17 17:09:48 1991  Jim Kingdon  (kingdon at cygint.cygnus.com)

	* i386-tdep.c (i386_get_frame_setup): Use SWAP_TARGET_AND_HOST
	before returning locals or slocals.

	* i386-tdep.c (i386_follow_jump): Do not add data16 to pos in
	call to codestream_seek; add one to pos if (and only if)
	we are dealing with a jump with data16 == 1 (i.e. 0x66, 0xe9).

Mon Apr 15 12:04:32 1991  Jim Kingdon  (kingdon at cygint.cygnus.com)

	* valops.c (call_function_by_hand): Put dummy1 in target order
	before FIX_CALL_DUMMY.

	* tm-i386v.h (FIX_CALL_DUMMY): Don't depend on host byte order.

Sun Apr 14 11:55:19 1991  Jim Kingdon  (kingdon at cygint.cygnus.com)

	* valops.c (push_word): Add SWAP_TARGET_AND_HOST.

	* remote.c (remote_open): Send '+' before calling putpkt().

	* tm-i386v.h (REGISTER_VIRTUAL_TYPE): Return pointer to void,
	not int, for pc, fp, and sp.

	* remote.c (remote_open): Call start_remote after putpkt("?");
1991-04-20 03:57:50 +00:00
Jim Kingdon
961b4908e9 * mipsread.c (parse_symbol): Set startup_file_{start,end} if
entry_point is in current file.
1991-04-20 03:27:04 +00:00
Jim Kingdon
9d62cbd23a * stddef.h (size_t): Let either _SIZE_T or _SIZE_T_ guard it. 1991-04-20 03:25:09 +00:00
Jim Kingdon
ff8aef1993 signame.c: Change #ifdef SYS_SIGLIST_MISSING to #if.
param-no-tm.h: Define SYS_SIGLIST_MISSING from USG.
1991-04-20 01:02:34 +00:00
Jim Kingdon
ab8f22a975 Fix comment (coff-encap -> dbx-in-coff). 1991-04-20 00:41:55 +00:00
Jim Kingdon
696d660be0 * tm-68k.h (NUM_REGS): Conditionalize on TARGET_SUN3 not sun.
tm-sun3.h: Define TARGET_SUN3.
1991-04-20 00:31:01 +00:00
Jim Kingdon
f88e7af831 * utils.c: Use CPLUS_MARKER not '$'.
* cplus-dem.c: Use CPLUS_MARKER not '$'.  If CPLUS_MARKER isn't
	defined, define it to '$'.
1991-04-19 23:50:06 +00:00
Jim Kingdon
9ba8a5a46b * arm-opcode.h: New file (same contents as before; it had
just been left out of the distribution for a long time).
1991-04-19 23:37:10 +00:00
Jim Kingdon
98a5cd0393 Initial revision 1991-04-19 23:37:08 +00:00
Jim Kingdon
de6060deb1 * tm-68k.h: Put declaration of ext_format_68881 outside the macros. 1991-04-19 22:04:24 +00:00
Jim Kingdon
d566d62a5a * main.c: New HAVE_SIGSETMASK #ifdefs. 1991-04-19 21:49:27 +00:00
Jim Kingdon
8714ff355d * coffread.c (read_coff_symtab): Check for "LF%" with all the
other L*% things.

	* coffread.c (SDB_TYPE): New macro.
	various: Use it instead of checking against T_NULL.
1991-04-19 21:48:55 +00:00
Jim Kingdon
c1ace5b596 * Makefile.dist (cplus-dem.o): Hack in an #include "param.h"
before we compile it.
	defs.h: Protect against multiple inclusion.
	param.h: Include defs.h.
1991-04-19 17:28:32 +00:00
Jim Kingdon
c93a350722 * i386-pinsn.c (OP_E): Change %d to 0x%x for consistency. 1991-04-19 07:06:13 +00:00
Jim Kingdon
15a4241049 *** empty log message *** 1991-04-19 04:42:29 +00:00
Jim Kingdon
31ef19fc7f *** empty log message *** 1991-04-19 03:22:12 +00:00
Jim Kingdon
b6a3c755c7 Initial revision 1991-04-19 03:22:06 +00:00
John Gilmore
3ead667539 One more time 1991-04-19 02:01:49 +00:00
Jim Kingdon
9136fe4948 *** empty log message *** 1991-04-19 01:58:50 +00:00
John Gilmore
3ba6a043d4 * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New
defines for the blocks of a blockvector that contain global and
        file-static symbols and the first of the smaller scope contours.
        * symtab.c (lookup_symbol, find_pc_symtab, find_pc_line,
        decode_line_1, make_symbol_completion_list):  Use the above.

        * symtab.c (list_symbols):  Process the first symbol of the
        static psymbols list.
        (types_info):  Restore this function from its untimely #if 0.
        It's not perfect, but it is better than nothing.
        (_initialize_symtab):  Restore "info types".
1991-04-19 01:55:07 +00:00
John Gilmore
dcf5473aff * symfile.h (free_named_symtabs): Rename from free_named_symtab. 1991-04-19 01:52:40 +00:00
Jim Kingdon
a7d50b0adf *** empty log message *** 1991-04-19 01:45:22 +00:00
Jim Kingdon
e74d7b43a8 * symfile.c: Rename add_syms_command to add_symbol_file_command.
(_initialize_symfile, add_syms_addr_command):
	Rename add-syms to add-symbol-file.
1991-04-19 01:38:55 +00:00
Jim Kingdon
d1343a2a72 * source.c: Rename directories_info to show_directories.
(_initialize_values): Rename "info directories" to "show directories".
1991-04-19 01:38:14 +00:00
Jim Kingdon
f2fc6e7a5c * target.h: Add to_doc and target_preopen.
target.c: Add target_preopen and target_command.
	Remove target_info.
	(add_target): Call add_cmd and mess with targetlist->doc.
	core.c, exec.c, remote-eb.c, remote-nindy.c, remote-vx.c,
	remote-vx.68.c, inftarg.c, remote.c: Add doc field to target struct.
	Call target_preopen from open routine.
1991-04-19 01:36:57 +00:00
Jim Kingdon
70dcc196e1 * inftarg.c (child_open), remote-vx{,.68}.c (vx_proc_open):
New function to give correct error message.
1991-04-19 01:34:30 +00:00
Jim Kingdon
f266e5641b *** empty log message *** 1991-04-19 01:32:08 +00:00
John Gilmore
543e29f11a Update for Jim Kingdon to merge his stuff in. 1991-04-19 01:22:24 +00:00
John Gilmore
fc47a10d9b * target.c (dummy_target): Permit add_syms_addr_command. 1991-04-19 01:21:29 +00:00
John Gilmore
3f83182d58 * dbxread.c (end_symtab, end_psymtab): Change comments.
(initialize_dbxread):  Call dbx_new_init() in case the first
        command is add-symbols.
1991-04-19 01:19:15 +00:00
John Gilmore
5c43db6b38 * symtab.c (free_symtab): Declare as exported void fn now. 1991-04-19 01:17:26 +00:00
John Gilmore
029981e273 * symfile.c (clear_symtab_users_once, cashier_psymtab,
free_named_symtabs):  Move these routines from symmisc.c.
        * symmisc.c (same):  same.
1991-04-19 01:10:52 +00:00
John Gilmore
9d19971230 * symfile.c (clear_symtab_users_once, cashier_psymtab,
free_named_symtabs):  Move these routines from symmisc.c.
1991-04-19 01:09:45 +00:00
K. Richard Pixley
0df06ca031 Now handles multiple hosts and targets. 1991-04-15 23:46:50 +00:00
Roland Pesch
6df47a7407 Minor adjustments for clean info-formatting. 1991-04-15 20:30:47 +00:00
John Gilmore
0ef6f0192d Permit symbols to be superseded when new symbol files have
been read in, particularly for VxWorks.

        * symfile.c (symbol_file_add):  Use filtered printing and wrap it.
        If we have wiped out any old symbol tables, clean up at end of
        symbol reading.
        (symbol_file_command):  Don't reference symfile_fns if it's zero.
1991-04-13 22:37:48 +00:00
John Gilmore
d219db0133 * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New
defines for the blocks of a blockvector that contain global and
        file-static symbols and the first of the smaller scope contours.
	* mipsread.c:  Use them.

        * coffread.c (end_psymtab):  Free named symtabs and psymtabs for
        a file, once a new symtab has been read for it.
        * mipsread.c:  FIXME.  We need to do the same for MIPS, but it
        looks harder to determine the top-level block before it's been
        queued to the psymtab list.
1991-04-13 22:31:54 +00:00
John Gilmore
a6e2b4241e * coffread.c (end_psymtab): Free named symtabs and psymtabs for
a file, once a new symtab has been read for it.
        * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):  New
        defines for the blocks of a blockvector that contain global and
        file-static symbols and the first of the smaller scope contours.
        * symtab.c (lookup_symbol, find_pc_symtab, find_pc_line,
        decode_line_1, make_symbol_completion_list):  Use the above.
        * coffread.c (end_symtab, patch_opaque_types):  Ditto.
1991-04-13 22:29:36 +00:00
John Gilmore
92a29b47d7 * symtab.h (GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK): New
defines for the blocks of a blockvector that contain global and
        file-static symbols and the first of the smaller scope contours.
1991-04-13 22:21:23 +00:00
John Gilmore
f96238813e Permit symbols to be superseded when new symbol files have
been read in, particularly for VxWorks.

        * dbxread.c (read_dbx_symtab): Allow N_SOL to cleanly take us back
        to the main file, as well as to include files.  Also, put global
        functions into the global psymtab, to make "i fun" work.
        (end_psymtab):  Free named symtabs and psymtabs for a file, once a
        new psymtab for it has been read.
1991-04-13 21:51:28 +00:00
John Gilmore
bd313dad25 Initial revision 1991-04-11 11:23:14 +00:00
K. Richard Pixley
5d98a5cd94 Initial revision 1991-04-11 03:07:16 +00:00
John Gilmore
447b99fa65 * exec.c (exec_ops): Add_syms_addr is valid in our tvec.
(set_section_command):  New command ("section xxx yyy" -- should
	be renamed to "set section xxx yyy" FIXME) which sets the
	base address of a section of the exec file, overriding the
	virtual address that BFD reports.
1991-04-09 07:04:22 +00:00
John Gilmore
66eeea27cc *** empty log message *** 1991-04-06 02:11:43 +00:00
John Gilmore
be2c3f354c *** empty log message *** 1991-04-06 01:18:22 +00:00
John Gilmore
64e5222463 *** empty log message *** 1991-04-06 01:14:30 +00:00
Roland Pesch
b48914e1e0 Repair missing xrefs. 1991-04-06 00:46:23 +00:00
Roland Pesch
efd784ca05 Added John Gilmore's advice on subdirs to installation appendix. 1991-04-06 00:13:19 +00:00
Roland Pesch
52d9ccbbae RENAMES: "demangle" and "asm-demangle" now "set print" subcmds. 1991-04-06 00:00:46 +00:00
Roland Pesch
413130bd46 ADDED:
show copying
show warranty
1991-04-05 23:54:17 +00:00
Roland Pesch
41d786f7a5 Changes agreed w/gnu, summarized in mail of Tue Apr 2 15:52:44 1991
RENAMES:
 add-syms -> add-symbol-file
 info->show convenience
 info->show directories
 info editing->show commands
 info->help targets
 info->show values
 info->show version
 set subcommands:
  addressprint->print address
  arrayprint->print array
  prettyprint->print pretty
  screen-height->height
  screen-width->width
  unionprint->print union
  vtblprint->print vtbl
DELETED: info history (syn "show values" remains)
ADDED: help target BLAH
1991-04-05 23:35:32 +00:00
Roland Pesch
c989dc8e6f General editing pass. Highlights:
Update stuff on option flags, full text, mention -help;
Better localization of target-specific stuff;
introduce 'path' command and discussion of exec path as opp src path;
document which commands don't repeat w RTN;
update and improve several examples, eg deleting (...)
Throughout: attempts to clarify etc.
1991-04-05 22:48:39 +00:00
John Gilmore
847fd51966 *** empty log message *** 1991-04-05 09:11:18 +00:00
John Gilmore
3f2e006b77 *** empty log message *** 1991-04-05 09:02:10 +00:00
John Gilmore
07d021a6ae Initial revision 1991-04-05 09:01:15 +00:00
Roland Pesch
8922ff76e3 (1) fix macro invocation of _GDBN__ that didn't expand due to adjacent 's';
(2) attempt better text for when register relativization makes no diff.
1991-04-04 00:33:18 +00:00
Roland Pesch
08665207c0 Corrections due to RMS.
(and improvements).
1991-04-03 23:49:07 +00:00
Roland Pesch
d008dd076c Added VxWorks subsection to chapter on getting in/out 1991-04-02 01:07:13 +00:00
Roland Pesch
01b25dab88 (1) further restructuring;
(2) fix two bugs reported by Per Bothner;
    (in markup for makeinfo)
(3) eliminate info structural information that can be generated
    by texinfo-master-menu.
1991-04-01 23:52:17 +00:00
Roland Pesch
fe3f5fc828 Restructured manual; introduced introductory sample session. 1991-03-30 02:13:24 +00:00
Roland Pesch
1695733e8a Corrections to:
(1) back of title page---show title next to rev number;
(2) DOSish examples for 29K
1991-03-28 21:26:03 +00:00
K. Richard Pixley
dd3b648e8b Johns release 1991-03-28 16:28:29 +00:00
K. Richard Pixley
bd5635a1e2 Initial revision 1991-03-28 16:26:26 +00:00
Roland Pesch
5a131cc7f0 (1) small cleanups on intro sections
(2) introduce M4 configuration macros
1991-03-28 01:03:49 +00:00
Roland Pesch
cb9d20492a (1) bring in material on 29K from 2.8.1.2 branch;
first stab at updating it for "target amd-eb" rather than "attach".
(2) some minor massaging for @smallbook format.
1991-03-27 01:22:25 +00:00
Roland Pesch
c81e78d17f Fix typos in descriptions of asm-demangle, attach, and load;
fix index entry for detach.
1991-03-09 01:16:32 +00:00
Roland Pesch
616875fdef add @finalout to turn off DRAFT flags (this is distributable 3.94 doc) 1991-03-08 23:46:53 +00:00
Roland Pesch
9d7c0513e4 (1) document fg, revise 'attach' docn;
(2) assorted corrections and clarifications.
1991-03-08 23:04:15 +00:00
Roland Pesch
469ddd56b0 Fix screwed up xref. 1991-03-08 01:54:15 +00:00
Roland Pesch
369a6ade1c (1) Drag various bits and pieces into a "Starting GDB" chapter at the front;
1a) Isolate Nindy-960 stuff into subsection of above, and expand it;
(2) Expand GDB-under-Emacs chapter;
(3) Minor cosmetics, including small free software blurb at front to
    make RMS feel better about GPL moved to back.
1991-03-08 01:39:43 +00:00
Roland Pesch
23e2e5e133 Document "info set"; minor cosmetic fixes;
document transmutation of add-file into sym-file and new meaning for
"load" (dynamic link/download, target-rel); document "info target" and
warn about similarity with "info targets"; document target strata rather
than stack; document "up-silently" and "down-silently"; add text about
when value history discarded.
1991-03-07 00:32:12 +00:00
Roland Pesch
ca714d0352 Add texinfo wrappers 1991-03-05 00:14:55 +00:00
Roland Pesch
54e4a398e3 (1) formatting cleanup to permit @smallbook
(2) moved GPL to end
(3) @index{foo} -> @cindex{foo}
1991-02-20 01:57:12 +00:00
John Gilmore
056c1b2c3b Add copyright and contributor line. 1991-02-14 17:38:06 +00:00
John Gilmore
46bc46ebd7 * gdb-int.texinfo: Add text on how to define a new host or target
architecture, prompted by Per Bothner's questions about MIPS
        support.
1991-02-05 23:47:22 +00:00
John Gilmore
d62719de80 * gdb.texinfo: Document "complaints". Change doc of -q since
gdb no longer prints the copyright and blurb if you specify a file
        name to be debugged (just like Emacs).  Add doc for Nindy-specific
        command line flags for specifying target serial port and such.
        Update copyright to 1991.
1991-02-05 22:05:25 +00:00
John Gilmore
bbb5013f21 Allow gdb functions to specify where a line should wrap if it
exceeds the size of a terminal line.  Use it to make the output
        prettier.
1991-01-20 03:59:13 +00:00
John Gilmore
a58d77add9 Document "set demangle", line wrapping, and expanded addressprint. 1991-01-20 03:53:48 +00:00
Roland Pesch
bca4316904 Initial revision 1991-01-03 16:28:29 +00:00
Roland Pesch
1bc93cb7a0 Use different 1st chapter name from manual title
(manual: Using GDB; chap 1: GDB Commands and Displays)
(both were "using..."
1991-01-02 11:27:17 +00:00
Roland Pesch
880d228b30 Fixed a few spelling errors. 1990-12-31 16:45:38 +00:00
Roland Pesch
26376b06b8 Minor adjustments and corrections. 1990-12-31 16:22:45 +00:00
Roland Pesch
d2e0842135 Merge in pesch improvements, comments from tiemann and gnu. 1990-12-29 21:38:34 +00:00
John Gilmore
7f27984ee0 * gdb-int.texinfo: Add minor sections on configuring gdb for
release, and about the README file.
1990-12-28 01:12:03 +00:00
Roland Pesch
9da601bfb7 Include last new commands for current gdb release.
This version is TeX clean, and only fails info formatting in the
Appendix (Brian Fox's include docs for readline).
1990-12-19 22:37:41 +00:00
Roland Pesch
4afc600204 Fix TeX bugs introduced in last pass. 1990-12-19 15:56:47 +00:00
Roland Pesch
9c91ee3eef Incorporate changes from J. Gilmore on targets; also Pesch cosmetic
changes and corrections based on feedback from "BLEWIS" at Sun.
1990-12-19 13:30:35 +00:00
John Gilmore
cfddbd02bf gdb-int.texinfo: New file, for GDB internals documentation.
Very simple, unformatted doc of cleanups is there for now.
1990-12-19 12:51:23 +00:00
Roland Pesch
6ad6aa5225 Merge in Tiemann's October 1990 updates from Sun with this line of updates;
introduce version-number output on copyright page.
1990-12-17 18:23:17 +00:00
John Gilmore
0bed999441 Merge directory changes from 1.3 with Laura's diffs in 1.4. 1990-12-13 17:32:56 +00:00
John Gilmore
f222d23d35 Initial revision 1990-12-13 15:49:06 +00:00
John Gilmore
96a816c5b8 Laura's version 1990-11-09 18:30:56 +00:00
John Gilmore
845dbc2a16 * gdb.texinfo (directory command): Doc new dir command. 1990-10-02 19:17:55 +00:00
John Gilmore
45007746d3 Merge in 3.91.11 changes 1990-09-05 19:19:18 +00:00
John Gilmore
831c851165 Initial revision 1990-09-05 17:54:31 +00:00
gdb-3.5
7a67dd45ca gdb-3.5 2012-06-03 15:36:32 +01:00
gdb-3.4
1c997a4ae8 gdb-3.4 2012-06-03 15:36:32 +01:00
gdb-3.3
4187119d59 gdb-3.3 2012-06-03 15:36:32 +01:00
gdb-3.1
e91b87a368 gdb-3.1 2012-06-03 15:36:31 +01:00
gdb-2.8.1
bb7592f010 gdb-2.8.1 2012-06-03 15:36:31 +01:00
gdb-2.8
3bf57d2108 gdb-2.8 2012-06-03 15:36:31 +01:00
gdb-2.5.3
7c75bab3d3 gdb-2.5.3 2012-06-03 15:36:30 +01:00
gdb-2.5.2
6368691e88 gdb-2.5.2 2012-06-03 15:36:30 +01:00
gdb-2.5.1
632ea0ccc5 gdb-2.5.1 2012-06-03 15:36:30 +01:00
gdb-2.4+.aux.coff
7b4ac7e1ed gdb-2.4+.aux.coff 2012-06-03 15:36:30 +01:00