aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog2629
1 files changed, 1415 insertions, 1214 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 7099697..8a68eed 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,1603 +1,1804 @@
-Sat Sep 3 12:05:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
+Tue Jan 31 12:56:01 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * Version 2.8 released.
+ * values.c (modify_field): Changed test for endianness to assign
+ to integer and reference character (so that all bits would be
+ defined).
- * valprint.c: include param.h.
+Mon Jan 30 11:41:21 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * inflow.c (store_inferior_registers): Fix typo and missing decl.
+ * news-dep.c: Deleted inclusion of fcntl.h; just duplicates stuff
+ found in sys/file.h.
-Thu Sep 1 13:18:22 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
+ * i386-dep.c: Included default definition of N_SET_MAGIC for
+ COFF_FORMAT.
- * Version 2.7 released.
+ * config.gdb: Added checks for several different operating
+ systems.
- * m-hp9k320bsd.h: New file supports BSD on hp9000 series 300.
+ * coffread.c (read_struct_type): Put in a flag variable so that
+ one could tell when you got to the end of a structure.
-Tue Aug 30 17:54:50 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
+ * sun3-dep.c (core_file_command): Changed #ifdef based on SUNOS4
+ to ifdef based on FPU.
- * m-news.h ({EXTRACT,STORE}_RETURN_VALUE): Handle floating pt values.
+ * infrun.c (restore_inferior_status): Changed error message to
+ "unable to restore previously selected frame".
- * inflow.c (store_inferior_registers) [usual case]:
- Handle registers longer than one word.
+ * dbxread.c (read_dbx_symtab): Used intermediate variable in error
+ message reporting a bad symbol type. (scan_file_globals,
+ read_ofile_symtab, read_addl_syms): Data type of "type" changed to
+ unsigned char (which is what it is).
+ * i386-dep.c: Removed define of COFF_FORMAT if AOUTHDR is defined.
+ Removed define of a_magic to magic (taken care of by N_MAGIC).
+ (core_file_command): Zero'd core_aouthdr instead of setting magic
+ to zero.
+ * i386-pinsn.c: Changed jcxz == jCcxz in jump table.
+ (putop): Added a case for 'C'.
+ (OP_J): Added code to handle possible masking of PC value on
+ certain kinds of data.
+ m-i386gas.h: Moved COFF_ENCAPSULATE to before inclusion of
+ m-i386.h and defined NAMES_HAVE_UNDERSCORE.
-Sat Aug 27 00:19:32 1988 Richard Stallman (rms at spiff)
+ * coffread.c (unrecrod_misc_function, read_coff_symtab): Added
+ symbol number on which error occured to error output.
- * inflow.c (create_inferior): Use execve to avoid NEWSOS bug in execle.
+Fri Jan 27 11:55:04 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Wed Aug 10 20:36:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
+ * Makefile: Removed init.c in make clean. Removed it without -f
+ and with leading - in make ?gdb.
- * m-news.h: Define READ_DBX_FORMAT, {EXTRACT,STORE}_RETURN_VALUE.
- (INVALID_FLOAT): Add 2nd argument.
- (vprintf): Define to call _doprnt.
+Thu Jan 26 15:08:03 1989 Randall Smith (randy at gluteus.ai.mit.edu)
-Tue Jul 26 03:05:28 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
+ Changes to get it to work on gould NP1.
+ * dbxread.c (read_dbx_symtab): Included cases for N_NBDATA and
+ N_NBBSS.
+ (psymtab_to_symtab): Changed declaration of hdr to
+ DECLARE_FILE_HEADERS. Changed access to use STRING_TABLE_SIZE and
+ SYMBOL_TABLE_SIZE.
+ * gld-pinsn.c (findframe): Added declaration of framechain() as
+ FRAME_ADDR.
- * symmisc.c: (print_symtabs) Check the status of the fopen and
- call perror_with_name if needed.
+ * coffread.c (read_coff_symtab): Avoided treating typedefs as
+ external symbol definitions.
-Sat Jul 23 00:14:20 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
+Wed Jan 25 14:45:43 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * printcmd.c: (delete_display) Check for existence of display
- chain before deleting anything.
+ * Makefile: Removed reference to alloca.c. If they need it, they
+ can pull alloca.o from the gnu-emacs directory.
-Thu Jul 7 08:47:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
+ * version.c, gdb.texinfo: Updated version to 3.1 (jumping the gun
+ a bit so that I won't forget when I release).
- * main.c: New vars win_argv, win_argc, win_prgm to talk to xgdb.
+ * m-sun2.h, m-sun2os2.h, m-sun3os4.h, config.gdb: Modified code so
+ that default includes new sun core, ptrace, and attach-detach.
+ Added defaults for sun 2 os 2.
-Thu Jul 7 02:05:29 1988 Pete TerMaat (pete at frosted-flakes.ai.mit.edu)
+ Modifications to reset stack limit back to what it used to be just
+ before exec. All mods inside of #ifdef SET_STACK_LIMIT_HUGE.
+ * main.c: Added global variable original_stack_limit.
+ (main): Set original_stack_limit to original stack limit.
+ * inflow.c: Added inclusion of necessary files and external
+ reference to original_stack_limit.
+ (create_inferior): Reset stack limit to original_stack_limit.
- * dbxread.c: (define_symbol) store static functions ('f') in the
- same way as global functions ('F') -- that is, as `function of
- type X' rather than as `X'.
+ * dbxread.c (read_dbx_symtab): Killed PROFILE_SYMBOLS ifdef.
-Mon Jul 4 17:07:31 1988 Pete TerMaat (pete at frosted-flakes.ai.mit.edu)
+ * sparc-dep.c (isabranch): Multiplied offset by 4 before adding it
+ to addr to get target.
- * dbxread.c: (read_dbx_symtab) Avoid reading symbol tables of
- libraries by checking for symbols which begin with "-l" (in
- addition to those which end with ".o").
+ * Makefile: Added definition of SHELL to Makefile.
-Mon Jun 27 23:27:51 1988 Pete TerMaat (pete at frosted-flakes.ai.mit.edu)
+ * m-sun2os4.h: Added code to define NEW_SUN_PTRACE, NEW_SUN_CORE,
+ and ATTACH_DETACH.
+ * sun3-dep.c: Added code to avoid fp regs if we are on a sun2.
- * dbxread.c: (define_symbol) and coffread.c: (process_coff_symbol)
- If the current symbol is a function, assign its type to be
- `function of type X' rather than `X'. TYPE_TARGET_TYPE (symbol)
- is `X'
+Tue Jan 24 17:59:14 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * findvar.c: (locate_var_value, read_var_value) got rid of checks
- for LOC_BLOCK which called `lookup_function_type'. These checks
- are no longer needed because of the change to dbxread.c.
+ * dbxread.c (read_array_type): Added function.
+ (read_type): Added call to above instead of inline code.
- * infcmd.c: (finish_command) Now uses target_type instead of type
- for functions, in keeping with the change to dbxread.c.
+ * Makefile: Added ${GNU_MALLOC} to the list of dependencies for
+ the executables.
-Sat Jun 25 00:24:09 1988 Pete TerMaat (pete at corn-chex.ai.mit.edu)
+Mon Jan 23 15:08:51 1989 Randall Smith (randy at plantaris.ai.mit.edu)
- * infrun.c: (normal_stop) Added a check for permissions on the
- exec file before printing the "You have encountered a bug in sh"
- message. Apparently on some systems an attempt by the shell to
- exec an unexecutable file had resulted in the "You have
- encountered" message.
+ * gdb.texinfo: Added paragraph to summary describing languages
+ with which gdb can be run. Also added descriptions of the
+ "info-methods" and "add-file" commands.
-Wed Jun 22 00:00:02 1988 Pete TerMaat (pete at corn-chex.ai.mit.edu)
+ * symseg.h: Commented a range type as having TYPE_TARGET_TYPE
+ pointing at the containing type for the range (often int).
+ * dbxread.c (read_range_type): Added code to do actual range types
+ if they are defined. Assumed that the length of a range type is
+ the length of the target type; this is a lie, but will do until
+ somebody gets back to me as to what these silly dbx symbols mean.
+
+ * dbxread.c (read_range_type): Added code to be more picky about
+ recognizing builtins as range types, to treat types defined as
+ subranges of themselves to be subranges of int, and to recognize
+ the char type idiom from dbx as a special case.
- * config.gdb: installed shell script to make the proper links to
- param.h, m-init.h, opcode.h, and pinsn.c, given a machine name.
+Sun Jan 22 01:00:13 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Tue Jun 21 23:55:09 1988 Pete TerMaat (pete at corn-chex.ai.mit.edu)
+ * m-vax.h: Removed definition of FUNCTION_HAS_FRAME_POINTER.
+ * blockframe.c (get_prev_frame_info): Removed default definition
+ and use of above. Instead conditionalized checking for leaf nodes
+ on FUNCTION_START_OFFSET (see comment in code).
+
+Sat Jan 21 16:59:19 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * m-suninit.h, m-isi-ov.h, m-news800.h: moved to m-sun3init.h,
- m-isi.h, m-news.h for consistency.
+ * dbxread.c (read_range_type): Fixed assumption that integer was
+ always type 1.
-Fri Jun 17 21:24:48 1988 Pete TerMaat (pete at lucky-charms.ai.mit.edu)
+ * gdb.texinfo: Fixed spelling mistake and added a note in the
+ running section making it clear that users may invoke subroutines
+ directly from gdb.
- * m-umax.h: (FIX_CALL_DUMMY): fixed typo (the last `flipped' was
- `fliped')
+ * blockframe.c: Setup a default definition for the macro
+ FUNCTION_HAS_FRAME_POINTER.
+ (get_prev_frame_info): Used this macro instead of checking
+ SKIP_PROLOGUE directly.
+ * m-vax.h: Overroad definition; all functions on the vax have
+ frame pointers.
- * m-pn.h, m-npl.h: added #define gould, since this is needed in
- core.c.
+Fri Jan 20 12:25:35 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Tue Jun 14 04:07:50 1988 Pete TerMaat (pete at lucky-charms.ai.mit.edu)
+ * core.c: Added default definition of N_MAGIC for COFF_FORMAT.
- * Removed unused variables from m-pn.h, m-npl.h in
- FRAME_FIND_SAVED_REGS, PUSH_DUMMY_FRAME, and POP_FRAME.
+ * xgdb.c: Installed a fix to keep the thing from dying when there
+ isn't any frame selected.
-Mon Jun 13 05:57:47 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
+ * core.c: Made a change for the UMAX system; needs a different
+ file included if using that core format.
- * inflow.c (create_inferior): Allow two macros SHELL_FILE and
- SHELL_COMMAND_CONCAT, if defined, to customize how the shell is run.
+ * Makefile: Deleted duplicate obstack.h in dbxread.c dependency.
-Thu Jun 9 05:42:20 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
+ * munch: Modified (much simpler) to cover (I hope) all cases.
- * breakpoint.c (ignore_command): P was used before initialized.
+ * utils.c (save_cleanups, restore_cleanups): Added functions to
+ allow you to push and pop the chain of cleanups to be done.
+ * defs.h: Declared the new functions.
+ * main.c (catch_errors): Made sure that the only cleanups which
+ would be done were the ones put on the chain *after* the current
+ location.
-Fri Jun 3 06:52:25 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
+ * m-*.h (FRAME_CHAIN_VALID): Removed check on pc in the current
+ frame being valid.
+ * blockframe.c (get_prev_frame_info): Made the assumption that if
+ a frame's pc value was within the first object file (presumed to
+ be /lib/crt0.o), that we shouldn't go any higher.
+
+ * infrun.c (wait_for_inferior): Do *not* execute check for stop pc
+ at step_resume_break if we are proceeding over a breakpoint (ie.
+ if trap_expected != 0).
+
+ * Makefile: Added -g to LDFLAGS.
+
+ * m-news.h (POP_FRAME) Fixed typo.
- * dbxread.c (read_dbx_symtab): Change handling of N_NBTEXT (Gould).
+ * printcmd.c (print_frame_args): Modified to print out register
+ params in order by .stabs entry, not by register number.
-Mon May 30 22:48:48 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
+ * sparc-opcode.h: Changed declaration of (struct
+ arith_imm_fmt).simm to be signed (as per architecture manual).
+ * sparc-pinsn.c (fprint_addr1, print_insn): Forced a cast to an
+ int, so that we really would get signed behaivior (default for sun
+ cc is unsigned).
- * main.c (main, disconnect): Handle SIGHUP by killing inferior.
- * inflow.c (kill_inferior_fast): New function used to do that.
+ * i386-dep.c (i386_get_frame_setup): Replace function with new
+ function provided by pace to fix bug in recognizing prologue.
- * utils.c (printchar): New 3rd arg is the string's delimiter,
- which is the char that needs backslashing.
- * valprint.c (value_print, val_print): Pass new arg.
- * expprint.c (print_subexp): Pass new arg.
+Thu Jan 19 11:01:22 1989 Randall Smith (randy at plantaris.ai.mit.edu)
+
+ * infcmd.c (run_command): Changed error message to "Program not
+ restarted."
+
+ * value.h: Changed "frame" field in value structure to be a
+ FRAME_ADDR (actually CORE_ADDR) so that it could survive across
+ calls.
+
+ * m-sun.h (FRAME_FIND_SAVED_REGS): Fixed a typo.
+
+ * value.h: Added lval: "lval_reg_frame_relative" to indicate a
+ register that must be interpeted relative to a frame. Added
+ single entry to value structure: "frame", used to indicate which
+ frame a relative regnum is relative to.
+ * findvar.c (value_from_register): Modified to correctly setup
+ these fields when needed. Deleted section to fiddle with last
+ register copied on little endian machine; multi register
+ structures will always occupy an integral number of registers.
+ (find_saved_register): Made extern.
+ * values.c (allocate_value, allocate_repeat_value): Zero frame
+ field on creation.
+ * valops.c (value_assign): Added case for lval_reg_frame_relative;
+ copy value out, modify it, and copy it back. Desclared
+ find_saved_register as being external.
+ * value.h: Removed addition of kludgy structure; thoroughly
+ commented file.
+ * values.c (free_value, free_all_values, clear_value_history,
+ set_internalvar, clear_internavars): Killed free_value.
-Mon May 23 14:54:54 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+Wed Jan 18 20:09:39 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * source.c (print_source_lines): New arg NOERROR nonzero means
- if file is not found just print message and return (don't throw).
- Callers changed here and in stack.c.
+ * value.h: Deleted struct partial_storage; left over from
+ yesterday.
-Sun May 22 14:22:54 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * findvar.c (value_from_register): Added code to create a value of
+ type lval_reg_partsaved if a value is in seperate registers and
+ saved in different places.
- * source.c (identify_source_line): Set defaults for `list' command.
+Tue Jan 17 13:50:18 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * value.h: Added lval_reg_partsaved to enum lval_type and
+ commented enum lval_type. Commented value structure.
+ Added "struct partial_register_saved" to value struct; added
+ macros to deal with structure to value.h.
+ * values.c (free_value): Created; special cases lval_reg_partsaved
+ (which has a pointer to an array which also needs to be free).
+ (free_all_values, clear_value_history, set_internalvar,
+ clear_internalvars): Modified to use free_values.
+
+ * m-sunos4.h: Changed name to sun3os4.h.
+ * m-sun2os4.h, m-sun4os4.h: Created.
+ * config.gdb: Added configuration entries for each of the above.
+ * Makefile: Added into correct lists.
+
+ * Makefile: Added dependencies on a.out.encap.h. Made
+ a.out.encap.h dependent on a.out.gnu.h and dbxread.c dependent on
+ stab.gnu.h.
+
+ * infrun.c, remote.c: Removed inclusion of any a.out.h files in
+ these files; they aren't needed.
+
+ * README: Added comment about bug reporting and comment about
+ xgdb.
+
+ * Makefile: Added note to HPUX dependent section warning about
+ problems if compiled with gcc and mentioning the need to add
+ -Ihp-include to CFLAGS if you compile on those systems. Added a
+ note about needing the GNU nm with compilers *of gdb* that use the
+ coff encapsulate feature also. * hp-include: Made symbolic link
+ over to /gp/gnu/binutils.
+
+ * Makefile: Added TSOBS NTSOBS OBSTACK and REGEX to list of things
+ to delete in "make clean". Also changed "squeakyclean" target as
+ "realclean".
+
+ * findvar.c (value_from_register): Added assignment of VALUE_LVAL
+ to be lval_memory when that is appropriate (original code didn't
+ bother because it assumed that it was working with a pre lval
+ memoried value).
+
+ * expread.y (yylex): Changed to only return type THIS if the
+ symbol "$this" is defined in some block superior or equal to the
+ current expression context block.
+
+Mon Jan 16 13:56:44 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * m-*.h (FRAME_CHAIN_VALID): On machines which check the relation
+ of FRAME_SAVED_PC (thisframe) to first_object_file_end (all except
+ gould), make sure that the pc of the current frame also passes (in
+ case someone stops in _start).
+
+ * findvar.c (value_of_register): Changed error message in case of
+ no inferior or core file.
+
+ * infcmd.c (registers_info): Added a check for inferior or core
+ file; error message if not.
+
+ * main.c (gdb_read_line): Modified to take prompt as argument and
+ output it to stdout.
+ * infcmd.c (registers_info, signals_info), main.c (command_loop,
+ read_command_lines, copying_info), symtab.c (decode_line_2,
+ output_source_filename, MORE, list_symbols): Changed calling
+ convention used to call gdb_read_line.
+
+ * infcmd.c, infrun.c, main.c, symtab.c: Changed the name of the
+ function "read_line" to "gdb_read_line".
+ * breakpoint.c: Deleted external referenced to function
+ "read_line" (not needed by code).
+
+Fri Jan 13 12:22:05 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * i386-dep.c: Include a.out.encap.h if COFF_ENCAPSULATE.
+ (N_SET_MAGIC): Defined if not defined by include file.
+ (core_file_command): Used N_SET_MAGIC instead of assignment to
+ a_magic.
+ (exec_file_command): Stuck in a HEADER_SEEK_FD.
+
+ * config.gdb: Added i386-dep.c as depfile for i386gas choice.
+
+ * munch: Added -I. to cc to pick up things included by the param
+ file.
+
+ * stab.gnu.def: Changed name to stab.def (stab.gnu.h needs this name).
+ * Makefile: Changed name here also.
+ * dbxread.c: Changed name of gnu-stab.h to stab.gnu.h.
+
+ * gnu-stab.h: Changed name to stab.gnu.h.
+ * stab.gnu.def: Added as link to binutils.
+ * Makefile: Put both in in the distribution.
+
+Thu Jan 12 11:33:49 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * dbxread.c: Made which stab.h is included dependent on
+ COFF_ENCAPSULATE; either <stab.h> or "gnu-stab.h".
+ * Makefile: Included gnu-stab.h in the list of files to include in
+ the distribution.
+ * gnu-stab.h: Made a link to /gp/gnu/binutils/stab.h
+
+ * Makefile: Included a.out.gnu.h and m-i386gas.h in list of
+ distribution files.
+ * m-i386gas.h: Changed to include m-i386.h and fiddle with it
+ instead of being a whole new file.
+ * a.out.gnu.h: Made a link to /gp/gnu/binutils/a.out.gnu.h.
+
+ Chris Hanson's changes to gdb for hp Unix.
+ * Makefile: Modified comments on hpux.
+ * hp9k320-dep.c: #define'd WOPR & moved inclusion of signal.h
+ * inflow.c: Moved around declaratiosn of <sys/fcntl.h> and
+ <sys/ioctl.h> inside of USG depends and deleted all SYSV ifdef's
+ (use USG instead).
+ * munch: Modified to accept any number of spaces between the T and
+ the symbol name.
+
+ Pace's changes to gdb to work with COFF_ENCAPSULATE (robotussin):
+ * config.gdb: Added i386gas to targets.
+ * default-dep.c: Include a.out.encap.h if COFF_ENCAPSULATE.
+ (N_SET_MAGIC): Defined if not defined by include file.
+ (core_file_command): Used N_SET_MAGIC instead of assignment to a_magic.
+ (exec_file_command): Stuck in a HEADER_SEEK_FD.
+ * infrun.c, remote.c: Added an include of a.out.encap.h if
+ COFF_ENCAPSULATE defined. This is commented out in these two
+ files, I presume because the definitions aren't used.
+ * m-i386gas.h: Created.
+ * dbxread.c: Included defintions for USG.
+ (READ_FILE_HEADERS): Now uses HEADER_SEEK_FD if it exists.
+ (symbol_file_command): Deleted use of HEADER_SEEK_FD.
+ * core.c: Deleted extra definition of COFF_FORMAT.
+ (N_MAGIC): Defined to be a_magic if not already defined.
+ (validate_files): USed N_MAGIC instead of reading a_magic.
- * dbxread.c (sort_syms): If not sorting the block, reverse it, so
- that for a parm declared register the register comes before the parm.
+Wed Jan 11 12:51:00 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * defs.h: declare alloca.
+ * remote.c: Upped PBUFSIZ.
+ (getpkt): Added zeroing of c inside loop in case of error retry.
-Fri May 20 15:02:50 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * dbxread.c (read_dbx_symtab, process_symbol_for_psymtab): Removed
+ code to not put stuff with debugging symbols in the misc function
+ list. Had been ifdef'd out.
- * values.c (value_of_internalvar): `return' stmt was missing.
+ * gdb.texinfo: Added the fact that the return value for a function
+ is printed if you use return.
-Tue May 10 23:03:29 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
+ * infrun.c (wait_for_inferior): Removed test in "Have we hit
+ step_resume_breakpoint" for sp values in proper orientation. Was
+ in there for recursive calls in functions without frame pointers
+ and it was screwing up calls to alloca.
+
+ * dbxread.c: Added #ifdef COFF_ENCAPSULATE to include
+ a.out.encap.h.
+ (symbol_file_command): Do HEADER_SEEK_FD when defined.
+ * dbxread.c, core.c: Deleted #ifdef ROBOTUSSIN stuff.
+ * robotussin.h: Deleted local copy (was symlink).
+ * a.out.encap.h: Created symlink to
+ /gp/gnu/binutils/a.out.encap.h.
+ * Makefile: Removed robotussin.h and included a.out.encap.h in
+ list of files.
+
+ * valprint.c (val_print, print_scalar_formatted): Changed default
+ precision of printing float value; now 6 for a float and 16 for a
+ double.
+
+ * findvar.c (value_from_register): Added code to deal with the
+ case where a value is spread over several registers. Still don't
+ deal with the case when some registers are saved in memory and
+ some aren't.
- * source.c ({forward,reverse}_search_command, print_source_lines):
- Line number symtab->nlines is just barely in range.
- (find_source_lines): Newline as last char in file doesn't start a line.
+Tue Jan 10 17:04:04 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Thu May 5 15:04:40 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * xgdb.c (xgdb_create_window): Removed third arg (XtDepth) to
+ frameArgs.
- * Version 2.6.
+ * infrun.c (handle_command): Error if signal number is less or
+ equal to 0 or greater or equal to NSIG or a signal number is not
+ provided.
- * printcmd.c (do_one_display): New fn, display one auto-display.
- (do_displays): Use that fn.
- (display_command): If cmd is from tty, display the new display now.
+ * command.c (lookup_cmd): Modified to not convert command section
+ of command line to lower case in place (in case it isn't a
+ subcommand, but an argument to a command).
- * printcmd.c (do_display): Record # of display being displayed.
- (delete_current_display): New fn: delete that display (if any).
- * main.c (return_to_top_level): Call delete_current_display.
- * infrun.c (normal_stop): Likewise.
+Fri Jan 6 17:57:34 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * main.c (catch_error): New fn: like list `errset'.
- * breakpoint.c (breakpoint_cond_eval): Eval an expression and
- return 1 if the expression is zero.
- (breakpoint_stop_status): Use those two fcns; avoid lossage on error
- in evalling a breakpoint condition.
+ * dbxread.c: Changed "text area" to "data area" in comments on
+ N_SETV.
+
+Wed Jan 4 12:29:54 1989 Randall Smith (randy at gluteus.ai.mit.edu)
+
+ * dbxread.c: Added definitions of gnu symbol types after inclusion
+ of a.out.h and stab.h.
+
+Mon Jan 2 20:38:31 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * eval.c (evaluate_subexp): Binary logical operations needed to
+ know type to determine whether second value should be evaluated.
+ Modified to discover type before binup_user_defined_p branch.
+ Also commented "enum noside".
+
+ * Makefile: Changed invocations of munch to be "./munch".
+
+ * gdb.texinfo: Updated to refer to current version of gdb with
+ January 1989 last update.
+
+ * coffread.c (end_symtab): Zero context stack when finishing
+ lexical contexts.
+ (read_coff_symtab): error if context stack 0 in ".ef" else case.
+
+ * m-*.h (FRAME_SAVED_PC): Changed name of argument from "frame" to
+ "FRAME" to avoid problems with replacement of "->frame" part of
+ macro.
- * infcmd.c (jump_command): Typo in call to `query'.
+ * i386-dep.c (i386_get_frame_setup): Added codestream_get() to
+ move codestream pointer up to the correct location in "subl $X,
+ %esp" case.
-Tue May 3 10:52:08 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+Sun Jan 1 14:24:35 1989 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * core.c (exec_file_command): If no file, pass 0 to display-hook.
+ * valprint.c (val_print): Rewrote routine to print string pointed
+ to by char pointer; was producing incorrect results when print_max
+ was 0.
- * core.c (get_exec_file): New arg ERR says whether to err if no file.
- All callers changed.
+Fri Dec 30 12:13:35 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * main.c (print_prompt): New fn to print the prompt string.
+ * dbxread.c (read_dbx_symtab, process_symbol_for_psymtab): Put
+ everything on the misc function list.
- * xgdb.c: Numerous changes. It now semi-works but the text display
- often gets messed up.
+ * Checkpointed distribution.
-Sun May 1 12:12:43 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * Makefile: Added expread.tab.c to the list of things slated for
+ distribution.
- * wait.h [HAVE_WAIT_STRUCT] (WSETSTOP): Fix typos.
+Thu Dec 29 10:06:41 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Sat Apr 30 10:18:56 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * stack.c (set_backtrace_limit_command, backtrace_limit_info,
+ bactrace_command, _initialize_stack): Removed modifications for
+ limit on backtrace. Piping the backtrace through an interuptable
+ "more" emulation is a better way to do it.
- * expread.y: BLOCK::NAME action called copy_name in wrong place.
+Wed Dec 28 11:43:09 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Fri Apr 15 01:01:40 1988 Chris Hanson (cph at kleph)
+ * stack.c
+ (set_backtrace_limit_command): Added command to set a limit to the
+ number of frames for a backtrace to print by default.
+ (backtrace_limit_info): To print the current limit.
+ (backtrace_command): To use the limit.
+ (_initialize_stack): To initialize the limit to its default value
+ (30), and add the set and info commands onto the appropriate
+ command lists.
- * inflow.c [! TIOCGPGRP]: Do not call `setpgrp' for inferior.
- Instead, disable SIGINT and SIGQUIT while the inferior is running.
- Unfortunately this means that C-c typed while GDB is running will
- cause the inferior to receive SIGINT when it is resumed.
- * utils.c (quit) [! TIOCGPGRP]: Cause quit message to remind user
- that the inferior will see SIGINT.
+ * gdb.texinfo: Documented changes to "backtrace" and "commands"
+ commands.
-Thu Apr 14 23:38:02 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * stack.c (backtrace_command): Altered so that a negative argument
+ would show the last few frames on the stack instead of the first
+ few.
+ (_initialize_stack): Modified help documentation.
- * infrun.c (wait_for_inferior): If step into a function, and
- immediately arrive at start of first line of user code,
- don't step: stop immediately.
- Set prev_pc before, not after, calling `resume'.
+ * breakpoint.c (commands_command): Altered so that "commands" with
+ no argument would refer to the last breakpoint set.
+ (_initialize_breakpoint): Modified help documentation.
- * source.c (identify_source_line): New 3rd arg controls additional
- output datum: `beg' or `middle', saying whether pc is at beg of line.
- * stack.c (print_frame_info): Pass that argument.
+ * infrun.c (wait_for_inferior): Removed ifdef on Sun4; now you can
+ single step through compiler generated sub calls and will die if
+ you next off of the end of a function.
- * main.c (cd_command): Convert any relative pathname to absolute.
- Simplify if `.' or `..' appear.
+ * sparc-dep.c (single_step): Fixed typo; "break_insn" ==> "sizeof
+ break_insn".
-Thu Apr 14 21:17:11 1988 Chris Hanson (cph at kleph)
+ * m-sparc.h (INIT_EXTRA_FRAME_INFO): Set the bottom of a stack
+ frame to be the bottom of the stack frame inner from this, if that
+ inner one is a leaf node.
- * infrun.c: Add new flag `trap_expected_after_continue' to
- compensate for spurious trace trap generated by HP-UX after
- running a stack dummy.
+ * dbxread.c (read_dbx_symtab): Check to make sure we don't add a
+ psymtab to it's own dependency list.
- * inflow.c (term_status_command) [HAVE_TERMIO]: Show all available
- terminal status information.
+ * dbxread.c (read_dbx_symtab): Modified check for duplicate
+ dependencies to catch them correctly.
-Tue Apr 12 19:11:00 1988 Chris Hanson (cph at kleph)
+Tue Dec 27 17:02:09 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * stack.c (print_frame_info): When -fullname is given and
- `identify_source_line' succeeds, do not print real pc even if it
- differs from the start pc for the source line. This information
- is not very useful and tends to screw up gdb-mode in emacs.
+ * m-*.h (FRAME_SAVED_PC): Modified macro to take frame info
+ pointer as argument.
+ * stack.c (frame_info), blockframe.c (get_prev_frame_info),
+ gld-pinsn.c (findframe), m-*.h (SAVED_PC_AFTER_CALL,
+ FRAME_CHAIN_VALID, FRAME_NUM_ARGS): Changed usage of macros to
+ conform to above.
+ * m-sparc.h (FRAME_SAVED_PC), sparc-dep.c (frame_saved_pc):
+ Changed frame_saved_pc to have a frame info pointer as an
+ argument.
-Mon Apr 11 14:22:10 1988 Chris Hanson (cph at kleph)
+ * m-vax.h, m-umax.h, m-npl.h, infrun.c (wait_for_inferior),
+ blockframe.c (get_prev_frame_info): Modified SAVED_PC_AFTER_CALL
+ to take a frame info pointer as an argument.
- * dbxread.c (define_symbol): Don't forget to terminate
- SYMBOL_NAME.
+ * blockframe.c (get_prev_frame_info): Altered the use of the
+ macros FRAME_CHAIN, FRAME_CHAIN_VALID, and FRAME_CHAIN_COMBINE to
+ use frame info pointers as arguments instead of frame addresses.
+ * m-vax.h, m-umax.h, m-sun3.h, m-sun3.h, m-sparc.h, m-pn.h,
+ m-npl.h, m-news.h, m-merlin.h, m-isi.h, m-hp9k320.h, m-i386.h:
+ Modified definitions of the above macros to suit.
+ * m-pn.h, m-npl.h, gould-dep.c (findframe): Modified findframe to
+ use a frame info argument; also fixed internals (wouldn't work
+ before).
- * m-hp9k320.h (CALL_DUMMY): Fix bug -- breakpoint instruction is
- TRAP #1 not TRAP #15.
+ * m-sparc.h: Cosmetic changes; reordered some macros and made sure
+ that nothing went over 80 lines.
- * inflow.c (store_inferior_register_1) [HP9K320]: Ignore `errno',
- as there is a bug in HP-UX which (mistakenly) causes errno to be
- non-zero when writing fp7.
+Thu Dec 22 11:49:15 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Sat Apr 9 01:04:23 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * Version 3.0 released.
- * dbxread.c (symbol_file_command): Check stringtab size by doing `stat'
- and, if it is ridiculous, complain and don't call alloca.
- Don't discard existing symtab until after that check.
+ * README: Deleted note about changing -lobstack to obstack.o.
-Fri Apr 8 16:39:11 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+Wed Dec 21 11:12:47 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * Makefile: Delete `-lg' entirely; not needed now that linking is done
- with $(CC).
+ * m-vax.h (SKIP_PROLOGUE): Now recognizes gcc prologue also.
-Fri Apr 8 13:41:46 1988 Chris Hanson (cph at kleph)
+ * blockframe.c (get_prev_frame_info): Added FUNCTION_START_OFFSET
+ to result of get_pc_function_start.
+ * infrun.c (wait_for_inferior): Same.
- * m68k-opcode.h: Fix operand-string of fmovel insns.
+ * gdb.texinfo: Documented new "step" and "next" behavior in
+ functions without line number information.
- * Makefile: Put "-lg" in CLIBS because there is no such library in
- HPUX. Update the comment for HPUX.
+Tue Dec 20 18:00:45 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Fri Apr 8 03:30:23 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * infcmd.c (step_1): Changed behavior of "step" or "next" in a
+ function witout line number information. It now sets the step
+ range around the function (to single step out of it) using the
+ misc function vector, warns the user, and continues.
- * findvar.c (locate_var_value): For &FCN, do lookup_function_type.
+ * symtab.c (find_pc_line): Zero "end" subsection of returned
+ symtab_and_line if no symtab found.
- * valprint.c (val_print): Fix typo testing whether ptr is a string.
+Mon Dec 19 17:44:35 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Thu Apr 7 21:11:00 1988 Chris Hanson (cph at frosted-flakes.ai.mit.edu)
+ * i386-pinsn.c (OP_REG): Added code from pace to streamline
+ disassembly and corrected types.
+ * i386-dep.c
+ (i386_follow_jump): Code added to follow byte and word offset
+ branches.
+ (i386_get_frame_setup): Expanded to deal with more wide ranging
+ function prologue.
+ (i386_frame_find_saved_regs, i386_skip_prologue): Changed to use
+ i386_get_frame_setup.
+
- * m-hp9k320.h: New file.
+Sun Dec 18 11:15:03 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * main.c (stop_sig, read_line): #ifdef SIGTSTP around uses of SIGTSTP.
+ * m-sparc.h: Deleted definition of SUN4_COMPILER_BUG; was designed
+ to avoid something that I consider a bug in our code, not theirs,
+ and which I fixed earlier. Also deleted definition of
+ CANNOT_USE_ARBITRARY_FRAME; no longer used anywhere.
+ FRAME_SPECIFICATION_DYADIC used instead.
- * wait.h: Fix bug in WSETEXIT.
+ * infrun.c (wait_for_inferior): On the sun 4, if a function
+ doesn't have a prologue, a next over it single steps into it.
+ This gets around the problem of a "call .stret4" at the end of
+ functions returning structures.
+ * m-sparc.h: Defined SUN4_COMPILER_FEATURE.
- * remote.c: If HAVE_TERMIO, use termio and fake it to look like stty.
- Include wait.h
- (remote_wait): Use the wait.h interface.
+ * main.c (copying_info): Seperated the last printf into two
+ printfs. The 386 compiler will now handle it.
- * utils.c (quit): Need HAVE_TERMIO conditional. Also include param.h.
+ * i386-pinsn.c, i386-dep.c: Moved print_387_control_word,
+ print_387_status_word, print_387_status, and i386_float_info to
+ dep.c Also included reg.h in dep.c.
- * inflow.c: If HAVE_TERMIO, use termio and fake it to look like stty.
- Define TERMINAL for data type of terminal data.
- Use of tchars, ltchars, pgrp conditional on existence of the
- ioctls that handle them.
- (terminal_init_inferior, terminal_inferior, terminal_ours,
- term_status_command, initialize):
- Conditionals for HAVE_TERMIO and existence of various ioctls.
- ({fetch,store}_inferior_registers): Separate versions for HP9K320.
+Sat Dec 17 15:31:38 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * m68k-pinsn.c (convert_{to,from}_68881): Alternate asms for HPUX_ASM.
+ * main.c (source_command): Don't close instream if it's null
+ (indicating execution of a user-defined command).
+ (execute_command): Set instream to null before executing
+ commands and setup clean stuff to put it back on error.
- * core.c (register_addr): Change #ifdef to REGISTER_U_ADDR
- (core_file_command) [HP9K320]: Special code to get regs from HPUX
- core file.
+ * inflow.c (terminal_inferior): Went back to not checking the
+ ioctl returns; there are some systems when this will simply fail.
+ It seems that, on most of these systems, nothing bad will happen
+ by that failure.
-Thu Apr 7 01:15:56 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * values.c (value_static_field): Fixed dereferencing of null
+ pointer.
- * dbxread.c (add_symbol_to_list, finish_block, read_enum_type):
- Symbol-lists now hold up to 20 symbols in each `struct pending'
- to save time in malloc. When a `struct pending' becomes free,
- don't call `free'; put it on a free-list `free_pendings'.
- (really_free_pendings): Call `free' for each `struct pending'
- on the free-list, and others that are easily found.
- (symbol_file_command): Set up `really_free_pendings' as a cleanup.
+ * i386-dep.c (i386_follow_jump): Modified to deal with
+ unconditional byte offsets also.
- * dbxread.c (start_symtab, end_symtab, process_one_symbol):
- Context_stack is now contiguous, to save malloc-time.
+ * dbxread.c (read_type): Fixed typo in function type case of switch.
- * dbxread.c (read_enum_type): Allocate the enum const syms
- in the symbol_obstack.
- (obsavestring): New fn, like savestring but alloc in symbol_obstack.
- (obconcat): New fn, like concat but etc.
- Most calls to savestring and concat changed to call these fns.
- (define_symbol): Open-code bcopy; don't bother to zero the symbol.
- (compare_symbols): Compare 1st char of name before calling strcmp.
+ * infcmd.c (run_command): Does not prompt to restart if command is
+ not from a tty.
- * Do explicit buffering to read symtab--don't use stdio.
- Variables symbuf... hold the buffer and indices.
- * dbxread.c (fill_symbuf): Fill the buffer, record how much was read.
- (read_dbx_symbols, next_symbol_text): Fetch data direct from buffer;
- call fill_symbuf when necessary.
+Fri Dec 16 15:21:58 1988 Randy Smith (randy at calvin)
- * dbxread.c (sort_syms): Don't sort blocks with < 40 syms.
- * symtab.c (lookup_block_symbol): Don't binary search such blocks.
- Compare 1st char of name before calling strcmp, and other speedups.
+ * gdb.texinfo: Added a third option under the "Cannot Insert
+ Breakpoints" workarounds.
- * symtab.c (sort_block_syms): New fn, sort one block's syms.
- (list_symbols): If block not normally sorted, sort it here.
+ * printcmd.c (display_command): Don't do the display unless there
+ is an active inferior; only set it.
- * dbxread.c (define_symbol): Ignore sym if name is empty.
- (process_one_symbol): Ignore N_ENTRY sym if no N_SO seen yet.
- (read_dbx_symtab): Recognize N_NBTEXT like N_TEXT (if it's defined).
- Set end_of_text_addr from END_OF_TEXT_DEFAULT (if it's defined).
- (NUMBER_OF_SYMBOLS): New macro for # entries in symtab.
- (SYMBOL_TABLE_OFFSET): New macro for file-offset of symtab.
- (STRING_TABLE_OFFSET): New macro for file-offset of string tab.
- (READ_STRING_TABLE_SIZE): New macro to store size of string tab.
- (DECLARE_FILE_HEADERS): New macro to declare vars to hold header info.
- (READ_FILE_HEADERS): New macro to read that info from a descriptor.
- All these macros can be overriden by the m-....h file.
- (symbol_file_command): These macros replace open code.
+ * findvar.c (value_of_register): Added an error check for calling
+ this when the inferior isn't active and a core file isn't being
+ read.
- * values.c (unpack_double): When fetching `double' from memory,
- make it double-aligned, since some machines need that.
+ * config.gdb: Added reminder about modifying REGEX in the
+ makefile for the 386.
- * core.c (exec_file_command): Insert conditionals for `gould'.
+ * i386-pinsn.c, i386-dep.c: Moved m-i386.h helper functions over
+ to i386-dep.c.b
- * m-sun[23].h, m-isi-ov.h, m-news800.h (ABOUT_TO_RETURN):
- Fix typo in opcode number.
+Thu Dec 15 14:04:25 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * main.c (read_line): Ignore backslash-newline.
+ * README: Added a couple of notes about compiling gdb with itself.
-Fri Apr 1 17:37:25 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
+ * breakpoint.c (set_momentary_breakpoint): Only takes FRAME_FP of
+ frame if frame is non-zero.
- * main.c (main): New -c switch specifies current directory.
- Discard trailing slash from arg.
- (pwd_command): Call getwd. Print its result as well as
- current_directory if they differ.
- (cd_command): Leave user's form of path in current_directory.
- Discard trailing slash from arg.
+ * printcmd.c (print_scalar_formatted): Implemented /g size for
+ hexadecimal format on machines without an 8 byte integer type. It
+ seems to be non-trivial to implement /g for other formats.
+ (decode_format): Allowed hexadecimal format to make it through /g
+ fileter.
- * source.c (init_source_path, directory_command):
- Use current_directory rather than calling getwd.
+Wed Dec 14 13:27:04 1988 Randall Smith (randy at gluteus.ai.mit.edu)
-Fri Mar 25 14:51:39 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
+ * expread.y: Converted all calls to write_exp_elt from the parser
+ to calls to one of write_exp_elt_{opcode, sym, longcst, dblcst,
+ char, type, intern}. Created all of these routines. This gets
+ around possible problems in passing one of these things in one ear
+ and getting something different out the other. Eliminated
+ SUN4_COMPILER_BUG ifdef's; they are now superfluous.
- * dbxread.c (read_struct_type): Only ints and enums can be bit-fields.
+ * symmisc.c (free_all_psymtabs): Reinited partial_symtab_list to 0.
+ (_initialize_symmisc): Initialized both symtab_list and
+ partial_symtab_list.
- * command.c (lookup_command): Allow 0 in command name.
+ * dbxread.c (start_psymtab): Didn't allocate anything on
+ dependency list.
+ (end_psymtab): Allocate dependency list on psymbol obstack from
+ local list.
+ (add_psymtab_dependency): Deleted.
+ (read_dbx_symtab): Put dependency on local list if it isn't on it
+ already.
- * valprint.c (value_print): New arg FORMAT. Most callers pass 0.
- Pass FORMAT to val_print.
- (val_print): New arg FORMAT. Most callers pass 0.
- When FORMAT is nonzero, use `print_scalar_formatted' to print a scalar
- and inhibit special treatment of char-pointers and arrays.
+ * symtab.c: Added definition of psymbol_obstack.
+ * symtab.h: Added declaration of psymbol_obstack.
+ * symmisc.c (free_all_psymtabs): Added freeing and
+ reinitionaliztion of psymbol_obstack.
+ * dbxread.c (free_all_psymbols): Deleted.
+ (start_psymtab, end_psymtab,
+ process_symbol_for_psymtab): Changed most allocation
+ of partial symbol stuff to be off of psymbol_obstack.
- * printcmd.c (print_scalar_formatted): Guts of `print_formatted'
- broken out, except for `i', `s' and 0 formats.
- Type and data-address passed separately.
+ * symmisc.c (free_psymtab, free_all_psymtabs): Deleted
+ free_psymtab subroutine.
- * valprint.c (val_print): Any array of 1-byte ints is a string;
- any 1-byte int is a character.
+ * symtab.h: Removed num_includes and includes from partial_symtab
+ structure; no longer needed now that all include files have their
+ own psymtab.
+ * dbxread.c (start_psymtab): Eliminated initialization of above.
+ (end_psymtab): Eliminated finalization of above; get
+ includes from seperate list.
+ (read_dbx_symtab): Moved includes from psymtab list to
+ their own list; included in call to end_psymtab.
+ * symmisc.c (free_psymtab): Don't free includes.
-Thu Mar 24 23:01:24 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
+Tue Dec 13 14:48:14 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * coffread.c:
- Make read_coff_symtab interruptible.
- Use obstack rather than xmalloc for blocks, blockvectors and symbols.
- Fix error checking for reading the stringtab.
+ * i386-pinsn.c: Reformatted entire file to correspond to gnu
+ software indentation conventions.
- * ns32k-pinsn.c (fbit_extract): New function.
- (print_insn_arg): Use it for immediate floating args.
- Also print float reg args as `f<digit>', not `r<digit>'.
+ * sparc-dep.c (skip_prologue): Added capability of recognizign
+ stores of input register parameters into stack slots.
- * m68k-opcode.h: mulu and muluw had wrong arg-format-string.
+ * sparc-dep.c: Added an include of sparc-opcode.h.
+ * sparc-pinsn.c, sparc-opcode.h: Moved insn_fmt structures and
+ unions from pinsn.c to opcode.h.
+ * sparc-pinsn.c, sparc-dep.c (isabranch, skip_prologue): Moved
+ this function from pinsn.c to dep.c.
- * valprint.c (value_print): Any pointer to 1-byte ints
- is printed as a string.
+ * Makefile: Put in warnings about compiling with gcc (non-ansi
+ include files) and compiling with shared libs on Sunos 4.0 (can't
+ debug something that's been compiled that way).
- * inflow.c (attach, detach): Change conditional on these to
- ATTACH_DETACH. In a UMAX_PTRACE conditional, define the Sun
- attach/detach names in terms of the Umax ones.
+ * sparc-pinsn.c: Put in a completely new file (provided by
+ Tiemann) to handle floating point disassembly, load and store
+ instructions, and etc. better. Made the modifications this file
+ (ChangeLog) list for sparc-pinsn.c again.
- * m-umax.h: Define ATTACH_DETACH.
+ * symtab.c (output_source_filename): Included "more" emulation hack.
- * infcmd.c (attach_command): `remote' was not being initialized.
+ * symtab.c (output_source_filename): Initialized COLUMN to 0.
+ (sources_info): Modified to not print out a line for
+ all of the include files within a partial symtab (since
+ they have pst's of their own now). Also modified to
+ make a distinction between those pst's read in and
+ those not.
- * m-umax.h: Include defs.h if nec so that CORE_ADDR is defined.
+ * infrun.c: Included void declaration of single_step() if it's
+ going to be used.
+ * sparc-dep.c (single_step): Moved function previous to use of it.
- * m-umax.h, m-vax.h: Define vprintf to use _doprnt.
- * m-isi-ov.h, m-merlin.h: Likewise.
+ * Makefile: Took removal of expread.tab.c out of make clean entry
+ and put it into a new "squeakyclean" entry.
- * inflow.c [UMAX_PTRACE]: Don't include user.h; do include sys/ptrace.h
+Mon Dec 12 13:21:02 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * m-umax.h: Rename `n32k...' to `ns32k...'.
- * ns32k-pinsn.c: Likewise.
+ * sparc-pinsn.c (skip_prologue): Changed a struct insn_fmt to a
+ union insn_fmt.
- * stack.c (print_block_frame_locals): Mention static locals as well.
+ * inflow.c (terminal_inferior): Checked *all* return codes from
+ ioctl's and fcntl's in routine.
- * main.c (validate_comname): Allow 0 in a command name.
+ * inflow.c (terminal_inferior): Added check for sucess of
+ TIOCSPGRP ioctl call. Just notifies if bad.
- * core.c (myread): If successful, return # chars read.
+ * dbxread.c (symbol_file_command): Close was getting called twice;
+ once directly and once through cleanup. Killed the direct call.
- * blockframe.c (find_pc_misc_function): Don't die due to index -1
- if there are no misc functions.
+Sun Dec 11 19:40:40 1988 & Smith (randy at hobbes.ai.mit.edu)
-Sun Mar 20 17:52:00 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
+ * valprint.c (val_print): Deleted spurious printing of "=" from
+ TYPE_CODE_REF case.
- * m-isiinit.h: New file needed on ISI machines.
- Symbol BSD43_ISI40D controls choice of system version.
+Sat Dec 10 16:41:07 1988 Randall Smith (randy at gluteus.ai.mit.edu)
+
+ * dbxread.c: Changed allocation of psymbols from using malloc and
+ realloc to using obstacks. This means they aren't realloc'd out
+ from under the pointers to them.
- * m-isi-ov.h: BSD43_ISI40D affects REGISTER_U_ADDR.
+Fri Dec 9 10:33:24 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Sat Mar 19 17:56:02 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
+ * sparc-dep.c inflow.c core.c expread.y command.c infrun.c
+ infcmd.c dbxread.c symmisc.c symtab.c printcmd.c valprint.c
+ values.c source.c stack.c findvar.c breakpoint.c blockframe.c
+ main.c: Various cleanups inspired by "gcc -Wall" (without checking
+ for implicit declarations).
- * dbxread.c (symbol_file_command): Clear global_sym_chain here
- before read_symsegs
- (read_dbx_symtab): instead of clearing it here.
+ * Makefile: Cleaned up some more.
- * valprint.c (type_print_base): Handle if TYPE is 0.
- (type_print_varspec_{prefix,suffix}): Do nothing if TYPE is 0.
+ * valops.c, m-*.h (FIX_CALL_DUMMY): Modified to take 5 arguments
+ as per what sparc needs (programming for a superset of needed
+ args).
- * main.c (copyright_info): Fix typo in string.
- * symseg.h: Fix typo in struct.
+ * dbxread.c (process_symbol_for_psymtab): Modified to be slightly
+ more picky about what it puts on the list of things *not* to be
+ put on the misc function list. When/if I shift everything over to
+ being placed on the misc_function_list, this will go away.
-Fri Mar 18 01:07:10 1988 Chris Hanson (cph at kleph)
+ * inferior.h, infrun.c: Added fields to save in inferior_status
+ structure.
- * breakpoint.c (commands_command): Flush stdout after printing
- message for benefit of terminals which are pipes.
+ * maketarfile: Deleted; functionality is in Makefile now.
-Tue Feb 16 18:28:24 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * infrun.c (wait_for_inferior): Modified algorithm for determining
+ whether or not a single-step was through a subroutine call. See
+ comments at top of file.
- * dbxread.c (process_one_symbol): Ignore some Fortran symbol types.
+ * dbxread.c (read_dbx_symtab): Made sure that the IGNORE_SYMBOL
+ macro would be checked during initial readin.
-Wed Feb 10 15:48:30 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * dbxread.c (read_ofile_symtab): Added macro GCC_COMPILED_FLAG_SYMBOL
+ into dbxread.c to indicate what string in a local text symbol will
+ indicate a file compiled with gcc. Defaults to "gcc_compiled.".
- * Version 2.5.
+Thu Dec 8 11:46:22 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * symtab.h: Delete free_explicit.
- * symmisc.c (free_all_symtabs): Delete free_explicit case.
+ * m-sparc.h (FRAME_FIND_SAVED_REGS): Cleaned up a little to take
+ advantage of the new frame cache system.
- * symseg.h (struct source): It contains a linetable. Define linetable.
- * symtab.h: Don't define linetable here.
+ * inferior.h, infrun.c, valops.c, valops.c, infcmd.c: Changed
+ mechanism to save inferior status over calls to inferior (eg.
+ call_function); implemented save_inferior_info and
+ restore_inferior_info.
- * symmisc.c (relocate_source): Relocate the linetable it contains.
- * dbxread.c (symbol_file_command): Convert each symseg to one or
- more symtabs according to its sourcevector. Give each symtab
- a linetable that comes from the sourcevector.
+ * blockframe.c (get_prev_frame): Simplified this by a direct call
+ to get_prev_frame_info.
- Free old symtabs and Print "Reading..." before reading symsegs.
+ * frame.h, stack.c, printcmd.c, m-sparc.h, sparc-dep.c: Removed
+ all uses of frame_id_from_addr. There are short routines like it
+ still in frame_saved_pc (m-sparc.h) and parse_frame_spec
+ (stack.c). Eventually the one in frame_saved_pc will go away.
- * dbxread.c (start_symtab): If find a current_symseg, return
- doing nothing more.
- * dbxread.c (end_symtab): If have a current_symseg,
- just zero a couple of variables and return. Delete the rest
- of the if-statement for current_symseg != 0.
+ * infcmd.c, sparc-dep.c: Implemented a new mechanism for
+ re-selecting the selected frame on return from a call.
-Sat Feb 6 12:59:29 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * blockframe.c, stack.c, findvar.c, printcmd.c, m-*.h: Changed
+ all routines and macros that took a "struct frame_info" as an
+ argument to take a "struct frame_info *". Routines: findarg,
+ framechain, print_frame_args, FRAME_ARGS_ADDRESS,
+ FRAME_STRUCT_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
+ FRAME_FIND_SAVED_REGS.
- * findvar.c (locate_var_value): Remove space from middle of `+ ='.
+ * frame.h, stack.c, printcmd.c, infcmd.c, findvar.c, breakpoint.c,
+ blockframe.c, xgdb.c, i386-pinsn.c, gld-pinsn.c, m-umax.h,
+ m-sun2.h, m-sun3.h, m-sparc.h, m-pn.h, m-npl.h, m-news.h,
+ m-merlin.h, m-isi.h, m-i386.h, m-hp9k320.h: Changed routines to
+ use "struct frame_info *" internally.
- * symtab.h (struct symtab): New field `fullname'.
- * source.c: Callers of `openp' store the `fullname' field.
+Wed Dec 7 12:07:54 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * source.c (identify_source_line): New function prints
- ^z^zFILENAME:LINENUM:CHARPOS\n. For Emacs interface (gdb.el).
+ * frame.h, blockframe.c, m-sparc.h, sparc-dep.c: Changed all calls
+ to get_[prev_]frame_cache_item to get_[prev_]frame_info.
- * main.c (main): `-fullname' option sets `frame_file_full_name'.
- * stack.c (print_stack_frame): After printing source line,
- if `frame_file_full_name', call `identify_source_line'.
+ * blockframe.c: Elminated get_frame_cache_item and
+ get_prev_frame_cache_item; functionality now taken care of by
+ get_frame_info and get_prev_frame_info.
-Fri Feb 5 00:07:44 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * blockframe.c: Put allocation on an obstack and eliminated fancy
+ reallocation routines, several variables, and various nasty
+ things.
- * core.c (core_file_command): For UMAX, print the core file's
- program name. For UMAX and Sun, print the signal number.
+ * frame.h, stack.c, infrun.c, blockframe.c, sparc-dep.c: Changed
+ type FRAME to be a typedef to "struct frame_info *". Had to also
+ change routines that returned frame id's to return the pointer
+ instead of the cache index.
- * printcmd.c (decode_format): Don't let size `g' be used for integers.
+ * infcmd.c (finish_command): Used proper method of getting from
+ function symbol to start of function. Was treating a symbol as a
+ value.
- * coffread.c (read_coff_symtab): Don't lose a file
- just because it contains only data and types (no text).
+ * blockframe.c, breakpoint.c, findvar.c, infcmd.c, stack.c,
+ xgdb.c, i386-pinsn.c, frame.h, m-hp9k320.h, m-i386.h, m-isi.h,
+ m-merlin.h, m-news.h, m-npl.h, m-pn.h, m-sparc.h, m-sun2.h,
+ m-sun3.h, m-umax.h: Changed get_frame_info and get_prev_frame_info
+ to return pointers instead of structures.
- * source.c: Rename line_info_default_line to last_line_listed.
- * source.c (*_search_command): Use that as default place to start.
- Set current_source_line so that `list' with no args is centered
- on that line.
+ * blockframe.c (get_pc_function_start): Modified to go to misc
+ function table instead of bombing if pc was in a block without a
+ containing function.
-Thu Feb 4 19:32:31 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * coffread.c: Dup'd descriptor passed to read_coff_symtab and
+ fdopen'd it so that there wouldn't be multiple closes on the same
+ fd. Also put (fclose, stream) on the cleanup list.
- * dbxread.c (end_symtab): Always initialize symtab->free_ptr.
+ * printcmd.c, stack.c: Changed print_frame_args to take a
+ frame_info struct as argument instead of the address of the args
+ to the frame.
- * main.c (main, cd_command): Set up `dirbuf' and `current_directory'
- * main.c (pwd_command): Use `current_directory'.
+ * m-i386.h (STORE_STRUCT_RETURN): Decremented sp by sizeof object
+ to store (an address) rather than 1.
-Wed Feb 3 11:49:10 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * dbxread.c (read_dbx_symtab): Set first_object_file_end in
+ read_dbx_symtab (oops).
- * remote.c: New file, for communication to remote debugger.
+ * coffread.c (fill_in_vptr_fieldno): Rewrote TYPE_BASECLASS as
+ necessary.
- * defs.h (current_directory): New variable.
+Tue Dec 6 13:03:43 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * core.c (core_file_command): Use current_directory instead of getwd.
+ * coffread.c: Added fake support for partial_symtabs to allow
+ compilation and execution without there use.
+ * inflow.c: Added a couple of minor USG mods.
+ * munch: Put in appropriate conditionals so that it would work on
+ USG systems.
+ * Makefile: Made regex.* handled same as obstack.*; made sure tar
+ file included everything I wanted it to include (including
+ malloc.c).
- * inflow.c (callers of ptrace): If remote_debugging, call another
- function named remote_... instead of ptrace.
+ * dbxread.c (end_psymtab): Create an entry in the
+ partial_symtab_list for each subfile of the .o file just read in.
+ This allows a "list expread.y:10" to work when we haven't read in
+ expread.o's symbol stuff yet.
- * infcmd.c (start_inferior): Special things if remote_debugging.
+ * symtab.h, dbxread.c (psymtab_to_symtab): Recognize pst->ldsymlen
+ == 0 as indicating a dummy psymtab, only in existence to cause the
+ dependency list to be read in.
- * infcmd.c (attach_command): If arg starts with a slash,
- call `remote_open' and `start_remote'.
+ * dbxread.c (sort_symtab_syms): Elminated reversal of symbols to
+ make sure that register debug symbol decls always come before
+ parameter symbols. After mod below, this is not needed.
- * infcmd.c (run_command): if remote_debugging,
- don't hassle the args and don't fork.
+ * symtab.c (lookup_block_symbol): Take parameter type symbols
+ (LOC_ARG or LOC_REGPARM) after any other symbols which match.
- * infrun.c, inferior.h (remote_debugging): New variable.
- * infrun.c (wait_for_inferior): If remote_debugging, use remote_wait.
- * infrun.c (start_remote): New function.
+ * dbxread.c (read_type): When defining a type in terms of some
+ other type and the other type is supposed to have a pointer back
+ to this specific kind of type (pointer, reference, or function),
+ check to see if *that* type has been created yet. If it has, use
+ it and fill in the appropriate slot with a pointer to it.
- * symtab.c (find_line_common): Find the linetable entry
- for a specified source line, of the first following line that has one.
- No longer assumes lines are in increasing order.
+Mon Dec 5 11:25:04 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * symtab.c (find_line_pc, find_line_pc_range): Use find_line_common.
+ * symmisc.c: Eliminated existence of free_inclink_symtabs and
+ init_free_inclink_symtabs; they aren't called from anywhere, and
+ if they were they could disrupt gdb's data structure badly
+ (elimination of struct type's which values that stick around past
+ elimination of inclink symtabs).
+
+ * dbxread.c (symbol_file_command): Fixed a return pathway out of
+ the routine to do_cleanups before it left.
+
+ * infcmd.c (set_environment_command), gdb.texinfo: Added
+ capability to set environmental variable values to null.
+
+ * gdb.texinfo: Modified doc on "break" without args slightly.
+
+Sun Dec 4 17:03:16 1988 Randall Smith (randy at gluteus.ai.mit.edu)
+
+ * dbxread.c (symbol_file_command): Added check; if there weren't
+ any debugging symbols in the file just read, the user is warned.
+
+ * infcmd.c: Commented set_environment_command (a little).
+
+ * createtags: Cleaned up and commented.
+
+ * Makefile: Updated dependency list and cleaned it up somewhat
+ (used macros, didn't make .o files depend on .c files, etc.)
+
+Fri Dec 2 11:44:46 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * value.h, values.c, infcmd.c, valops.c, m-i386.h, m-sparc.h,
+ m-merlin.h, m-npl.h, m-pn.h, m-umax.h, m-vax.h, m-hp9k320.h,
+ m-isi.h, m-news.h, m-sun2.h, m-sun3.h: Cleaned up dealings with
+ functions returning structures. Specifically: Added a function
+ called using_struct_return which indicates whether the function
+ being called is using the structure returning conventions or it is
+ using the value returning conventions on that machine. Added a
+ macro, STORE_STRUCT_RETURN to store the address of the structure
+ to be copied into wherever it's supposed to go, and changed
+ call_function to handle all of this correctly.
+
+ * symseg.h, symtab.h, dbxread.c: Added hooks to recognize an
+ N_TEXT symbol with name "*gcc-compiled*" as being a flag
+ indicating that a file had been compiled with gcc and setting a
+ flag in all blocks produced during processing of that file.
+
+Thu Dec 1 13:54:29 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * m-sparc.h (PUSH_DUMMY_FRAME): Saved 8 less than the current pc,
+ as POP_FRAME and sparc return convention restore the pc to 8 more
+ than the value saved.
+
+ * valops.c, printcmd.c, findvar.c, value.h: Added the routine
+ value_from_register, to access a specific register of a specific
+ frame as containing a specific type, and used it in read_var_value
+ and print_frame_args.
+
+Wed Nov 30 17:39:50 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * dbxread.c (read_number): Will accept either the argument passed
+ as an ending character, or a null byte as an ending character.
+
+ * Makefile, createtags: Added entry to create tags for gdb
+ distribution which will make sure currently configured machine
+ dependent files come first in the list.
+
+Wed Nov 23 13:27:34 1988 Randall Smith (randy at gluteus.ai.mit.edu)
+
+ * stack.c, infcmd.c, sparc-dep.c: Modified record_selected_frame
+ to work off of frame address.
+
+ * blockframe.c (create_new_frame, get_prev_frame_cache_item):
+ Added code to reset pointers within frame cache if it must be
+ realloc'd.
+
+ * dbxread.c (read_dbx_symtab): Added in optimization comparing
+ last couple of characters instead of first couple to avoid
+ strcmp's in read_dbx_symtab (recording extern syms in misc
+ functions or not). 1 call to strlen is balanced out by many fewer
+ calls to strcmp.
+
+Tue Nov 22 16:40:14 1988 Randall Smith (randy at cream-of-wheat.ai.mit.edu)
+
+ * dbxread.c (read_dbx_symtab): Took out optimization for ignoring
+ LSYM's; was disallowing typedefs. Silly me.
+
+ * Checkpointed distribution (mostly for sending to Tiemann).
+
+ * expression.h: Added BINOP_MIN and BINOP_MAX operators for C++.
+ * symseg.h: Included flags for types having destructors and
+ constructors, and flags being defined via public and via
+ virtual paths. Added fields NEXT_VARIANT, N_BASECLASSES,
+ and BASECLASSES to this type (tr: Changed types from
+ having to be derived from a single baseclass to a multiple
+ base class).
+ * symtab.h: Added macros to access new fields defined in symseg.h.
+ Added decl for lookup_basetype_type.
+ * dbxread.c
+ (condense_addl_misc_bunches): Function added to condense the misc
+ function bunches added by reading in a new .o file.
+ (read_addl_syms): Function added to read in symbols
+ from a new .o file (incremental linking).
+ (add_file_command): Command interface function to indicate
+ incrmental linking of a new .o file; this now calls
+ read_addl_syms and condense_addl_misc_bunches.
+ (define_symbol): Modified code to handle types defined from base
+ types which were not known when the derived class was
+ output.
+ (read_struct_type): Modified to better handle description of
+ struct types as derived types. Possibly derived from
+ several different base classes. Also added new code to
+ mark definitions via virtual paths or via public paths.
+ Killed seperate code to handle classes with destructors
+ but without constructors and improved marking of classes
+ as having destructors and constructors.
+ * infcmd.c: Modified call to val_print (one more argument).
+ * symtab.c (lookup_member_type): Modified to deal with new
+ structure in symseg.h.
+ (lookup_basetype_type): Function added to find or construct a type
+ ?derived? from the given type.
+ (decode_line_1): Modified to deal with new type data structures.
+ Modified to deal with new number of args for
+ decode_line_2.
+ (decode_line_2): Changed number of args (?why?).
+ (init_type): Added inits for new C++ fields from
+ symseg.h.
+ *valarith.c
+ (value_x_binop, value_binop): Added cases for BINOP_MIN &
+ BINOP_MAX.
+ * valops.c
+ (value_struct_elt, check_field, value_struct_elt_for_address):
+ Changed to deal with multiple possible baseclasses.
+ (value_of_this): Made SELECTED_FRAME an extern variable.
+ * valprint.c
+ (val_print): Added an argument DEREF_REF to dereference references
+ automatically, instead of printing them like pointers.
+ Changed number of arguments in recursive calls to itself.
+ Changed to deal with varibale numbers of base classes.
+ (value_print): Changed number of arguments to val_print. Print
+ type of value also if value is a reference.
+ (type_print_derivation_info): Added function to print out
+ derivation info a a type.
+ (type_print_base): Modified to use type_print_derivation_info and
+ to handle multiple baseclasses.
+
+Mon Nov 21 10:32:07 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * inflow.c (term_status_command): Add trailing newline to output.
+
+ * sparc-dep.c (do_save_insn, do_restore_insn): Saved
+ "stop_registers" over the call for the sake of normal_stop and
+ run_stack_dummy.
+
+ * m-sparc.h (EXTRACT_RETURN_VALUE): Put in parenthesis to force
+ addition of 8 to the int pointer, not the char pointer.
+
+ * sparc-pinsn.c (print_addr1): Believe that I have gotten the
+ syntax right for loads and stores as adb does it.
+
+ * symtab.c (list_symbols): Turned search for match on rexegp into
+ a single loop.
+
+ * dbxread.c (psymtab_to_symtab): Don't read it in if it's already
+ been read in.
+
+ * dbxread.c (psymtab_to_symtab): Changed error to fatal in
+ psymtab_to_symtab.
+
+ * expread.y (parse_number): Fixed bug which treated 'l' at end of
+ number as '0'.
+
+Fri Nov 18 13:57:33 1988 Randall Smith (randy at gluteus.ai.mit.edu)
+
+ * dbxread.c (read_dbx_symtab, process_symbol_for_psymtab): Was
+ being foolish and using pointers into an array I could realloc.
+ Converted these pointers into integers.
+
+Wed Nov 16 11:43:10 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * m-sparc.h (POP_FRAME): Made the new frame be PC_ADJUST of the
+ old frame.
+
+ * i386-pinsn.c, m-hp9k320.h, m-isi.h, m-merlin.h, m-news.h,
+ m-npl.h, m-pn.h, m-sparc.h, m-sun2.h, m-sun3.h, m-umax.h, m-vax.h:
+ Modified POP_FRAME to use the current frame instead of
+ read_register (FP_REGNUM) and to flush_cached_frames before
+ setting the current frame. Also added a call to set the current
+ frame in those POP_FRAMEs that didn't have it.
+
+ * infrun.c (wait_for_inferior): Moved call to set_current_frame up
+ to guarrantee that the current frame will always be set when a
+ POP_FRAME is done.
+
+ * infrun.c (normal_stop): Added something to reset the pc of the
+ current frame (was incorrect because of DECR_PC_AFTER_BREAK).
+
+ * valprint.c (val_print): Changed to check to see if a string was
+ out of bounds when being printed and to indicate this if so.
+
+ * convex-dep.c (read_inferior_memory): Changed to return the value
+ of errno if the call failed (which will be 0 if the call
+ suceeded).
+
+Tue Nov 15 10:17:15 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
+
+ * infrun.c (wait_for_inferior): Two changes: 1) Added code to
+ not trigger the step breakpoint on recursive calls to functions
+ without frame info, and 2) Added calls to distinguish recursive
+ calls within a function without a frame (which next/nexti might
+ wish to step over) from jumps to the beginning of a function
+ (which it generally doesn't).
+
+ * m-sparc.h (INIT_EXTRA_FRAME_INFO): Bottom set correctly for leaf
+ parents.
+
+ * blockframe.c (get_prev_frame_cache_item): Put in mod to check
+ for a leaf node (by presence or lack of function prologue). If
+ there is a leaf node, it is assumed that SAVED_PC_AFTER_CALL is
+ valid. Otherwise, FRAME_SAVED_PC or read_pc is used.
- * symtab.c (lookup_misc_func): New function to return the index
- in misc_function_vector of a specified name.
+ * blockframe.c, frame.h: Did final deletion of unused routines and
+ commented problems with getting a pointer into the frame cache in
+ the frame_info structure comment.
- * symtab.c (decode_line_1): Use `lookup_misc_func'.
+ * blockframe.c, frame.h, stack.c: Killed use of
+ frame_id_from_frame_info; used frame_id_from_addr instead.
- * source.c (forward_search_command, reverse_search_command):
- New functions to search a source file.
+ * blockframe.c, frame.h, stack.c, others (oops): Combined stack
+ cache and frame info structures.
- * source.c (openp): Get dir from `current_directory', not getwd.
+ * blockframe.c, sparc-dep.c, stack.c: Created the function
+ create_new_frame and used it in place of bad calls to
+ frame_id_from_addr.
- * source.c (line_info): 2nd arg to decode_line_spec was missing.
+ * blockframe.c, inflow.c, infrun.c, i386-pinsn.c, m-hp9k320.h,
+ m-npl.h, m-pn.h, m-sparc.h, m-sun3.h, m-vax.h, default-dep.c,
+ convex-dep.c, gould-dep.c, hp9k320-dep.c, news-dep.c, sparc-dep.c,
+ sun3-dep.c, umax-dep.c: Killed use of
+ set_current_Frame_by_address. Used set_current_frame
+ (create_new_frame...) instead.
- * printcmd.c (printf_command): New command to do printf
- with specified string and arguments. Thoroughly rewritten from
- Next's version.
+ * frame.h: Killed use of FRAME_FP_ID.
- * eval.c (parse_to_comma_and_eval): New function.
+ * infrun.c, blockframe.c: Killed select_frame_by_address. Used
+ select_frame (get_current_frame (), 0) (which was correct in all
+ cases that we need to worry about.
- * expread.y (parse_c_1): New arg COMMA means stop parsing at a comma.
- * breakpoint.c (condition_command, break_command): Pass 0 for COMMA.
- * eval.c (parse_and_eval_address_1): Pass 0 for COMMA.
+Mon Nov 14 14:19:32 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * printcmd.c (print_formatted): New arg SIZE so hex nums line up.
- Changed all callers (all in this file).
+ * frame.h, blockframe.c, stack.c, m-sparc.h, sparc-dep.c: Added
+ mechanisms to deal with possible specification of frames
+ dyadically.
- * dbxread.c (symbol_file_command): Error-check result of alloca.
- On some systems it seems it can return zero.
+Sun Nov 13 16:03:32 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
- * dbxread.c (read_dbx_symtab): Make this interruptable.
+ * ns32k-opcode.h: Add insns acbw, acbd.
- * blockframe.c (find_pc_misc_function): Use binary search.
+Sun Nov 13 15:09:58 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Thu Jan 28 08:48:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * breakpoint.c: Changed breakpoint structure to use the address of
+ a given frame (constant across inferior runs) as the criteria for
+ stopping instead of the frame ident (which varies across inferior
+ calls).
- * m68k-pinsn.c (print_insn_arg): For operand type 'd',
- operand value is a register-name.
+Fri Nov 11 13:00:22 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Sat Jan 23 01:04:51 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
+ * gld-pinsn.c (findframe): Modified to work with the new frame
+ id's. Actually, it looks as if this routine should be called with
+ an address anyway.
- * symseg.h: Add `struct sourcevector', etc., for describing
- line number info.
+ * findvar.c (find_saved_register): Altered bactrace loop to work
+ off of frames and not frame infos.
-Fri Jan 15 05:09:18 1988 Richard Stallman (rms at frosted-flakes)
+ * frame.h, blockframe.c, stack.c, sparc-dep.c, m-sparc.h: Changed
+ FRAME from being the address of the frame to being a simple ident
+ which is an index into the frame_cache_item list.
+ * convex-dep.c, default-dep.c, gould-dep.c, hp9k320-dep.c,
+ i386-pinsn.c, inflow.c, infrun.c, news-dep.c, sparc-dep.c,
+ sun3-dep.c, umax-dep.c, m-hp9k320.h, m-npl.h, m-pn.h, m-sparc.h,
+ m-sun3.h, m-vax.h: Changed calls of the form set_current_frame
+ (read_register (FP_REGNUM)) to set_current_frame_by_address (...).
- * valprint.c [IEEE_FLOAT]: New function `is_nan' checks
- whether a double is a nan.
+Thu Nov 10 16:57:57 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * printcmd.c (print_formatted) [IEEE_FLOAT]:
- Detect nans and print specially.
- * valprint.c (val_print) [IEEE_FLOAT]: Same thing.
+ * frame.h, blockframe.c, gld-pinsn.c, sparc-dep.c, stack.c,
+ infrun.c, findvar.c, m-sparc.h: Changed the FRAME type to be
+ purely an identifier, using FRAME_FP and FRAME_FP_ID to convert
+ back and forth between the two. The identifier is *currently*
+ still the frame pointer value for that frame.
- * m68k-pinsn.c (convert_{to,from}_68881): Hand-assemble
- all the assembler code.
+Wed Nov 9 17:28:14 1988 Chris Hanson (cph at kleph)
- * m-newsinit.h, m-news800.h: Two new files.
+ * m-hp9k320.h (FP_REGISTER_ADDR): Redefine this to return
+ difference between address of given FP register, and beginning of
+ `struct user' that it occurs in.
-Thu Jan 7 22:25:16 1988 Richard Stallman (rms at frosted-flakes)
+ * hp9k320-dep.c (core_file_command): Fix sign error in size
+ argument to myread. Change buffer argument to pointer; was
+ copying entire structure.
+ (fetch_inferior_registers, store_inferior_registers): Replace
+ occurrences of `FP_REGISTER_ADDR_DIFF' with `FP_REGISTER_ADDR'.
+ Flush former definition.
- * valops.c (value_assign): Don't coerce the arg being stored in.
- Coercion is not right either for an array or for an enum.
+Wed Nov 9 12:11:37 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
-Tue Jan 5 00:59:29 1988 Richard Stallman (rms at frosted-flakes)
+ * xgdb.c: Killed include of initialize.h.
- * symtab.c (decode_line_1): Don't complain about no symtabs loaded
- until after trying the misc function table.
+ * Pulled in xgdb.c from the net.
-Sat Jan 2 13:16:08 1988 Richard Stallman (rms at frosted-flakes)
+ * Checkpointed distribution (to provide to 3b2 guy).
- * stack.c (record_selected_frame): New fn to access
- the selected frame and its level.
- * infcmd.c (run_stack_dummy): Save and restore the selected
- frame and its level.
+ * coffread.c, dbxread.c, symmisc.c, symtab.c, symseg.h: Changed
+ format of table of line number--pc mapping information. Can
+ handle negative pc's now.
-Wed Dec 30 18:44:41 1987 Richard Stallman (rms at frosted-flakes)
+ * command.c: Deleted local copy of savestring; code in utils.c is
+ identical.
- * valprint.c (type_print_varspec_prefix):
- Treat arrays just like functions.
- * valprint.c (type_print_varspec_{prefix,suffix}):
- When passed_a_ptr is handled, pass 0 for it in the recursive call.
+Tue Nov 8 11:12:16 1988 Randall Smith (randy at plantaris.ai.mit.edu)
-Fri Dec 18 10:24:14 1987 Richard Stallman (rms at frosted-flakes)
+ * gdb.texinfo: Added documentation for shell escape.
- * findvar.c (read_var_value): Share code between values really
- in registers and values in saved registers.
- Register short on a big-endian machine needs a VALUE_OFFSET.
+Mon Nov 7 12:27:16 1988 Randall Smith (randy at sugar-bombs.ai.mit.edu)
- * findvar.c (locate_var_value): Offset the address of a
- saved register variable that's shorter than the register.
+ * command.c: Added commands for shell escape.
-Thu Dec 17 08:26:31 1987 Richard Stallman (rms at lucky-charms)
+ * core.c, dbxread.c: Added ROBOTUSSIN mods.
- * valprint.c (type_print_base): Print nameless bit fields
- to indicate gaps before bit fields.
+ * Checkpointed distribution.
- * source.c (select_source_symtab): Ignore .h files.
- Also, if a function `main' exists, make the default listing line
- the beginning of `main'.
+ * printcmd.c (x_command): Yanked error if there is no memory to
+ examine (could be looking at executable straight).
- * breakpoint.c ({get,set}_breakpoint_commands):
- Commands to examine or set the pending breakpoint-commands.
+ * sparc-pinsn.c (print_insn): Amount to leftshift sethi imm by is
+ now 10 (matches adb in output).
- * infcmd.c (run_stack_dummy): Save and restore the breakpoint
- commands around the function call.
+ * printcmd.c (x_command): Don't attempt to set $_ & $__ if there
+ is no last_examine_value (can happen if you did an x/0).
- * stack.c (return_command): Don't query or print if not interactive.
+Fri Nov 4 13:44:49 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * value.h (COERCE_ENUM): New macro: if arg is enum, convert to int.
- * value.h (COERCE_ARRAY): Do that, as well as old job.
+ * printcmd.c (x_command): Error if there is no memory to examine.
- * valarith.c (value_binop, value_neg, value_lognot):
- Use COERCE_ENUM on the arguments.
- * valops.c (value_arg_coerce): Likewise.
- * valops.c (value_cast): AVOID coercing enums when arrays are.
+ * gdb.texinfo: Added "cont" to the command index.
- * eval.c (evaluate_subexp): In the BINOP_SUB case,
- use evaluate_subexp_with_coercion.
+ * sparc-dep.c (do_save_insn): Fixed typo in shift amount.
- * inflow.c (terminal_ours_1, terminal_inferior):
- Ignore inferior_thisrun_terminal since our terminal
- is the inferior's controlling terminal regardless.
+ * m68k-opcode.h: Fixed opcodes for 68881.
- * m-sun3.h: Fix assembler syntax for kdb macros.
+ * breakpoint.c, infcmd.c, source.c: Changed defaults in several
+ places for decode_line_1 to work off of the default_breakpoint_*
+ values instead of current_source_* values (the current_source_*
+ values are off by 5 or so because of listing defaults).
- * infcmd.c ({attach,detach}_command): New functions from Dave Taylor.
- * inflow.c (attach, detach): New functions from Dave Taylor.
- * infrun.c (attach_process): New function, middle-level.
- Does all the work of attaching a process, assuming there is no
- inferior yet, except for printing and querying.
+ * stack.c (frame_info): ifdef'd out FRAME_SPECIFCATION_DYADIC in
+ the stack.c module. If I can't do this right, I don't want to do
+ it at all. Read the comment there for more info.
- * infrun.c (clear_proceed_status): Clear `stop_after_attach'.
- * infrun.c (wait_for_inferior): Handle `stop_after_attach'.
+Mon Oct 31 16:23:06 1988 Randall Smith (randy at gluteus.ai.mit.edu)
-Sat Dec 12 04:36:39 1987 Richard Stallman (rms at corn-chex)
+ * gdb.texinfo: Added documentation on the "until" command.
- * dbxread.c (end_symtab): The free_code for a symseg got
- from a file should be free_linetable.
+Sat Oct 29 17:47:10 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * dbxread.c: Allocate blockvector, blocks, symbols and symbol names
- from the symbol-obstack, and use free_linetable for all files.
- The typevector is still malloc'd, so put it in the free_ptr
- to get it freed.
+ * breakpoint.c, infcmd.c: Added UNTIL_COMMAND and subroutines of
+ it.
- * symmisc.c (free_symtab): Always free the `free_ptr' if nonzero.
- `free_explicit' therefore now the same as `free_nothing'.
+ * breakpoint.c, infcmd.c, infrun.c: Added new field to breakpoint
+ structure (silent, indicating a silent breakpoint), and modified
+ breakpoint_stop_status and things that read it's return value to
+ understand it.
- * dbxread.c (define_symbol): Handle defn code 'c', used by
- fortran, which defines integer and real constant symbols.
+Fri Oct 28 17:45:33 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * symseg.h: Define LOC_CONST_BYTES for constants longer than a
- word. New `bytes' alternative for the value of a symbol.
+ * dbxread.c, symmisc.c: Assorted speedups for readin, including
+ special casing most common symbols, and doing buffering instead of
+ calling malloc.
- * symtab.h (SYMBOL_VALUE_BYTES): Macro to access `bytes'.
+Thu Oct 27 11:11:15 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * findvar.c ({read,locate}_var_value): Handle LOC_CONST_BYTES.
- * printcmd.c (address_info): Handle LOC_CONST_BYTES.
- * symmisc.c (print_symbol): Handle LOC_CONST_BYTES.
+ * stack.c, sparc-dep.c, m-sparc.h: Modified to allow "info frame"
+ to take two arguments on the sparc and do the right thing with
+ them.
-Tue Dec 8 20:26:37 1987 Richard Stallman (rms at frosted-flakes)
+ * dbxread.c (read_dbx_symtab, process_symbol_for_psymtab): Put
+ stuff to put only symbols that didn't have debugging info on the
+ misc functions list back in.
- * symtab.c (find_line_pc_range): Detection of last line in file
- was erroneous.
+Wed Oct 26 10:10:32 1988 Randall Smith (randy at gluteus.ai.mit.edu)
-Fri Dec 4 21:52:52 1987 Richard Stallman (rms at frosted-flakes)
+ * valprint.c (type_print_varspec_suffix): Added check for
+ TYPE_LENGTH(TYPE_TARGET_TYPE(type)) > 0 to prevent divide by 0.
- * dbxread.c (read_range_type): Accept the typenums as argument.
- Use read_type_number to read the subrange-of type.
- A type defined as a subrange of itself is void.
+ * printcmd.c (print_formatted): Added check for VALUE_REPEATED;
+ value_print needs to be called for that.
-Thu Dec 3 12:45:10 1987 Richard Stallman (rms at frosted-flakes)
+ * infrun.c (wait_for_inferior): Added break when you decide to
+ stop on a null function prologue rather than continue stepping.
- * inflow.c ({fetch,store}_inferior_registers): Support UMAX_PTRACE.
+ * m-sun3.h: Added explanatory comment to REGISTER_RAW_SIZE.
- * m-umax.h: New file, for Encore machines.
+ * expread.y (parse_c_1): Initialized paren_depth for each parse.
- * core.c (exec_file_command, etc): Decode COFF files.
- * core.c (core_file_command): Support UMAX_CORE format.
- * core.c (validate_files, exec_file_command):
- Set exec_mtime in exec_file_command so that COFF vs non-COFF
- differences appear all in one place.
+Tue Oct 25 14:19:38 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * coffread.c: New file from Dave Johnson.
+ * valprint.c, coffread.c, dbxread.c: Enum constant values in enum
+ type now accessed through TYPE_FIELD_BITPOS.
- * core.c (specify_exec_file_hook): New function to specify
- a hook to be called by exec_file_command. Last #ifdef X_WINDOWS gone.
- * xgdb.c (initialize): Specify a hook.
+ * dbxread.c (process_symbol_for_psymtab): Added code to deal with
+ possible lack of a ":" in a debugging symbol (do nothing).
- * infrun.c, inferior.h: Replace stop_r0 and stop_r1 with an array
- `stop_registers' that will hold ALL the registers.
- * infcmd.c (run_stack_dummy): Get the value from `stop_registers'
- and copy all of that into BUFFER.
- * infcmd.c (finish_command): Specify `stop_registers'
- to `value_being_returned'.
- * values.c (value_being_returned): Use the new EXTRACT... macros.
- * values.c (set_return_value): Use new STORE_RETURN_VALUE macro.
- * valops.c (call_function): Allocate retbuf long enough for all regs.
- * m-*.h: New macros EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE and
- EXTRACT_STRUCT_VALUE_ADDRESS that express machine-dependencies
- in where return values are stored.
+ * symtab.c (decode_line_1): Added check in case of all numbers for
+ complete lack of symbols.
- * valops.c (call_function): Flush default for CALL_DUMMY_START_OFFSET.
- Assume it is defined.
- * m-vax.h: Define CALL_DUMMY_START_OFFSET.
+ * source.c (select_source_symtab): Made sure that this wouldn't
+ bomb on complete lack of symbols.
- * ns32k-pinsn.c (ns32k-localcount): Fix decoding of `enter' insn.
- * ns32k-pinsn.c (n32k_get_enter_addr): New fn used from m-umax.h.
+Mon Oct 24 12:28:29 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * m-*.h: Change INVALID_FLOAT to accept 2nd arg which is length
- of the float.
- * values.c (unpack_double): Pass the 2nd arg.
- * vax-pinsn.c (print_insn_arg): Pass the 2nd arg.
- * infcmd.c (registers_info): Pass the 2nd arg.
+ * m-sparc.h, findvar.c: Ditched REGISTER_SAVED_UNIQUELY and based
+ code on REGISTER_IN_WINDOW_P and HAVE_REGISTER_WINDOWS. This will
+ break when we find a register window machine which saves the
+ window registers within the context of an inferior frame.
-Wed Nov 25 15:06:55 1987 Richard Stallman (rms at frosted-flakes)
+ * sparc-dep.c (frame_saved_pc): Put PC_ADJUST return back in for
+ frame_saved_pc. Seems correct.
- * Bug fixes by David Johnson (ddj%cs.brown.edu@relay.cs.net).
+ * findvar.c, m-sparc.h: Created the macro REGISTER_SAVED_UNIQUELY
+ to handle register window issues (ie. that find_saved_register
+ wasn't checking the selected frame itself for shit).
- * symtab.c (list_symbols): Print typedef names, and don't call
- them `static'.
+ * sparc-dep.c (core_file_command): Offset target of o & g register
+ bcopy by 1 to hit correct registers.
- * symmisc.c (print_symtabs): Allow immediate quit, and close the
- output file if that happens.
+ * m-sparc.h: Changed STACK_END_ADDR.
- * stack.c (frame_command): Declare args `unsigned' so a negative
- number is a frame address, not a level number.
+Sun Oct 23 19:41:51 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * source.c: Check for error-return from calls to `getwd'.
+ * sparc-dep.c (core_file_command): Added in code to get the i & l
+ registers from the stack in the corefile, and blew away some wrong
+ code to get i & l from inferior.
- * printcmd.c (address_info): Fix error in case of a function name.
+Fri Oct 21 15:09:19 1988 Randall Smith (randy at apple-gunkies.ai.mit.edu)
- * inflow.c (create_inferior): Return the inferior pid properly.
+ * m-sparc.h (PUSH_DUMMY_FRAME): Saved the value of the RP register
+ in the location reserved for i7 (in the created frame); this way
+ the rp value won't get lost. The pc (what we put into the rp in
+ this routine) gets saved seperately, so we loose no information.
- * inferior.h: Define `inferior_io_terminal'.
- * infrun.c (tty_command): New command to specify inferior_io_terminal.
- * inflow.c (new_tty): Open specified terminal for the inferior.
- * inflow.c (terminal_{ours,inferior}): Do nothing if inferior was
- started with its own terminal.
- * main.c (main): -t switch calls `tty_command'.
+ * sparc-dep.c (do_save_insn & do_restore_insn): Added a wrapper to
+ preserve the proceed status state variables around each call to
+ proceed (the current frame was getting munged because this wasn't
+ being done).
- * expread.y (rule for `block'): `copy_name' was called in wrong
- place and with wrong args.
+ * m-sparc.h (FRAME_FIND_SAVED_REGS): Fix bug: saved registers
+ addresses were being computed using absolute registers number,
+ rather than numbers relative to each group of regs.
- * dbxread.c: Entire file #ifdef READ_DBX_FORMAT.
- * m-*.h: Define READ_DBX_FORMAT.
+ * m-sparc.h (POP_FRAME): Fixed a bug (I hope) in the context
+ within which saved reg numbers were being interpetted. The
+ values to be restored were being gotten in the inferior frame, and
+ the restoring was done in the superior frame. This means that i
+ registers must be restored into o registers.
- * breakpoint.c (initialize): Error in doc string of `info breakpoints'.
+ * sparc-dep.c (do_restore_insn): Modified to take a pc as an
+ argument, instead of a raw_buffer. This matches (at least it
+ appears to match) usage from POP_FRAME, which is the only place
+ from which do_restore_insn is called.
-Wed Nov 11 12:57:28 1987 Richard Stallman (rms at frosted-flakes)
+ * sparc-dep.c (do_save_insn and do_restore_insn): Added comments.
- * ns32k-opcode.h, ns32k-pinsn.c: Two new files.
- * m-merlin.h: New file, for one 32000 box.
+ * m-sparc.h (FRAME_FIND_SAVED_REGS): Modified my code to find the
+ save addresses of out registers to use the in regs off the stack
+ pointer when the current frame is 1 from the innermost.
-Mon Nov 9 10:31:42 1987 Brian Fox (bfox at sugar-smacks)
+Thu Oct 20 13:56:15 1988 & Smith (randy at hobbes.ai.mit.edu)
- * eval.c (evaluate_subexp): Made the case of OP_FUNCALL use
- evaluate_subexp_with_coercion, so that array references would
- get converted into pointer references.
+ * blockframe.c, m-sparc.h: Removed code associated with
+ GET_PREV_FRAME_FROM_CACHE_ITEM. This code was not needed for the
+ sparc; you can always find the previous frames fp from the fp of
+ the current frame (which is the sp of the previous). It's getting
+ the information associated with a given frame (ie. saved
+ registers) that's a bitch, because that stuff is saved relative to
+ the stack pointer rather than the frame pointer.
-Mon Nov 9 05:50:24 1987 Richard Stallman (rms at sugar-smacks)
+ * m-sparc.h (GET_PREV_FRAME_FROM_CACHE_ITEM): Modified to return
+ the frame pointer of the previous frame instead of the stack
+ pointer of same.
- * breakpoint.c (ignore_command): Error if no arg.
+ * blockframe.c (flush_cached_frames): Modified call to
+ obstack_free to free back to frame_cache instead of back to zero.
+ This leaves the obstack control structure in finite state (and
+ still frees the entry allocated at frame_cache).
-Sat Nov 7 13:57:40 1987 Richard Stallman (rms at frosted-flakes)
+Sat Oct 15 16:30:47 1988 & Smith (randy at tartarus.uchicago.edu)
- * main.c (quit_command): Get rid of execfile before the kill_inferior.
+ * valops.c (call_function): Suicide material here. Fixed a typo;
+ CALL_DUMMY_STACK_ADJUST was spelled CAll_DUMMY_STACK_ADJUST on
+ line 530 of the file. This cost me three days. I'm giving up
+ typing for lent.
- * xgdb.c: New file, interface to X windows.
+Fri Oct 14 15:10:43 1988 & Smith (randy at tartarus.uchicago.edu)
- * main.c (main): Look for flag arguments before
- calling the initialization functions. -nw switch sets
- `inhibit_windows' which xgdb.c looks at.
- * main.c (command_loop): Call the window hook function, if any.
+ * m-sparc.h: Corrected a minor mistake in the dummy frame code
+ that was getting the 5th argument and the first argument from the
+ same place.
- * source.c (get_filename_and_charpos): New function
- that interfaces to find_source_lines.
- * source.c (source_line_charpos, source_charpos_line):
- New functions translate source line number to char pos and vice versa.
+Tue Oct 11 11:49:33 1988 & Smith (randy at tartarus.uchicago.edu)
- * breakpoint.c (describe_other_breakpoints): New subroutine
- to list all breakpoints at PC in a message about "other
- breakpoints".
- * breakpoint.c (break_command_1): Use describe_other_breakpoints.
- * breakpoint.c (set_breakpoint): Like break_command_1
- but takes arg predecoded into symtab and line.
+ * infrun.c: Made stop_after_trap and stop_after_attach extern
+ instead of static so that code which used proceed from machine
+ dependent files could fiddle with them.
- * core.c (exec_file_command): Call xgdb_display_exec_file.
+ * blockframe.c, frame.h, sparc-dep.c, m-sparc.h: Changed sense of
+ ->prev and ->next in struct frame_cache_item to fit usage in rest
+ of gdb (oops).
- * valprint.c (type_print_base): For struct bitfields,
- print the bit size.
+Mon Oct 10 15:32:42 1988 Randy Smith (randy at gargoyle.uchicago.edu)
-Thu Aug 20 02:46:47 1987 Richard M. Stallman (rms at prep)
+ * m-sparc.h, sparc-dep.c, blockframe.c, frame.h: Wrote
+ get_frame_cache_item. Modified FRAME_SAVED_PC and frame_saved_pc
+ to take only one argument and do the correct thing with it. Added
+ the two macros I recently defined in blockframe.c to m-sparc.h.
+ Have yet to compile this thing on a sparc, but I've now merged in
+ everything that I received from tiemann, either exactly, or simply
+ effectively.
- * Version 2.4.
+ * source.c: Added code to allocated space to sals.sals in the case
+ where no line was specified.
- * m68k-pinsn.c (print_insn_arg): Implement place = '3'.
+ * blockframe.c, infrun.c: Modified to cache stack frames requested
+ to minimize accesses to subprocess.
- * findvar.c (write_register_bytes): Arg to
- store_inferior_registers should be -1: write all registers.
+Tue Oct 4 15:10:39 1988 Randall Smith (randy at cream-of-wheat.ai.mit.edu)
- * dbxread.c (symbol_file_command): If no arg,
- just discard all symbols.
+ * config.gdb: Added sparc.
- * core.c (myread): Flush the 4th arg (filename).
- * source.c (find_source_lines): Don't pass 4th arg.
- * symmisc.c (read_symsegs): Ditto.
+Mon Oct 3 23:01:22 1988 Randall Smith (randy at cream-of-wheat.ai.mit.edu)
- * dbxread.c (process_one_symbol): One call to `define_symbol'
- lacked 3rd arg.
+ * Makefile, blockframe.c, command.c, core.c, dbxread.c, defs.h,
+ expread.y, findvar.c, infcmd.c, inflow.c, infrun.c, sparc-pinsn.c,
+ m-sparc.h, sparc-def.c, printcmd.c, stack.c, symmisc.c, symseg.h,
+ valops.c, values.c: Did initial merge of sparc port. This will
+ not compile; have to do stack frame caching and finish port.
- * inflow.c (write_inferior_memory): On failure, return the errno value.
- * core.c (write_memory): ditto.
- * breakpoint.c ({insert,remove}_breakpoints): ditto.
- * utils.c (print_sys_errmsg): Like perror_with_name but don't
- signal an error; also, the error code is an arg instead of from
- `errno'.
- * infrun.c : Save the value from insert_breakpoints and pass it to
- print_sys_errmsg.
+ * inflow.c, gdb.texinfo: `tty' now resets the controling terminal.
- * main.c (input_from_terminal_p): Put in omitted `return'.
+Fri Sep 30 11:31:16 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * Makefile (expread.o): Use $(CC).
+ * inferior.h, infcmd.c, infrun.c: Changed the variable
+ stop_random_signal to stopped_by_random signal to fit in better
+ with name conventions (variable is not a direction to the
+ proceed/resume set; it is information from it).
-Sun Jun 7 04:42:51 1987 Richard M. Stallman (rms at prep)
+Thu Sep 29 13:30:46 1988 Randall Smith (randy at cream-of-wheat.ai.mit.edu)
- * version.c: Version 2.3.
+ * infcmd.c (finish_command): Value type of return value is now
+ whatever the function returns, not the type of the function (fixed
+ a bug in printing said value).
- * inflow.c (terminal_ours): Save fcntl flags correctly.
- * inflow.c (term_status_command):
- Print the tchars and ltchars structures, byte by byte.
+ * dbxread.c (read_dbx_symtab, process_symbol_for_psymtab):
+ Put *all* global symbols into misc_functions. This is what was
+ happening anyway, and we need it for find_pc_misc_function.
-Mon May 25 14:37:14 1987 Richard M. Stallman (rms at prep)
+ ** This was eventually taken out, but I didn't mark it in the
+ ChangeLog. Oops.
- * version.c: Version 2.2.
+ * dbxread.c (process_symbol_for_psymtab): Put every debugger
+ symbol which survives the top case except for constants on the
+ symchain. This means that all of these *won't* show up in misc
+ functions (this will be fixed once I make sure it's broken the way
+ it's supposed to be).
- * breakpoint.c (do_breakpoint_commands):
- Advance breakpoint_commands before executing the command,
- in case command is `cont' and it hits another bpt with commands.
+ * dbxread.c: Modified placement of debugger globals onto the hash
+ list; now we exclude the stuff after the colon and don't skip the
+ first character (debugger symbols don't have underscores).
-Sun May 24 20:45:04 1987 Richard M. Stallman (rms at prep)
+ * dbxread.c: Killed debuginfo stuff with ifdef's.
- * value.h: Declare `contents' long and cast its address to char *.
+Wed Sep 28 14:31:51 1988 Randall Smith (randy at cream-of-wheat.ai.mit.edu)
- * expread.y (prefixify_expression): Don't call alloca among the decls.
+ * symtab.h, dbxread.c: Modified to deal with BINCL, EINCL, and
+ EXCL symbols produced by the sun loader by adding a list of
+ pre-requisite partial_symtabs that each partial symtab needs.
- * printcmd.c (print_variable_value): Flush unused local `space'.
+ * symtab.h, dbxread.c, symtab.c, symmisc.c: Modified to avoid
+ doing a qsort on the local (static) psymbols for each file to
+ speed startup. This feature is not completely debugged, but it's
+ inclusion has forced the inclusion of another feature (dealing
+ with EINCL's, BINCL's and EXCL's) and so I'm going to go in and
+ deal with them.
- * main.c (execute_command): Barf on "user" like other class names.
+ * dbxread.c (process_symbol_for_psymtab): Made sure that the class
+ of the symbol made it into the partial_symbol entry.
-Fri May 22 01:34:37 1987 Richard M. Stallman (rms at prep)
+Tue Sep 27 15:10:26 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * m68k-pinsn.c (fetch_arg): New arg position 'j', for movec.
- (print_insn_arg): New arg syntax 'J', for movec.
- * m68k-opcode.h: movec uses 'Jj'. Everything reformatted.
- bf... and cas... insns were corrected.
+ * dbxread.c: Fixed bug; init_psymbol_list was not being called
+ with the right number of arguments (1).
- * inflow.c (create_inferior): Fork and exec with given args and env.
- Call close_exec_file.
- (inferior_died): Record the fact that the inferior no longer exists.
- Call reopen_exec_file.
+ * dbxread.c: Put ifdef's around N_MAIN, N_M2C, and N_SCOPE to
+ allow compilation on a microvax.
- * core.c (close_exec_file): New fn: Close the execchan if it's open.
- (reopen_exec_file): New fn: Reopen execchan if not currently open.
+ * config.gdb: Modified so that "config.gdb vax" would work.
- * infrun.c (wait_for_inferior): Call inferior_died if it exits.
+ * dbxread.c, symtab.h, symmisc.h, symtab.c, source.c: Put in many
+ and varied hacks to speed up gdb startup including: A complete
+ rewrite of read_dbx_symtab, a modification of the partial_symtab
+ data type, deletion of select_source_symtab from
+ symbol_file_command, and optimiztion of the call to strcmp in
+ compare_psymbols.
- * infcmd.c (run_command): Don't fork and exec; call create_inferior.
+Thu Sep 22 11:08:54 1988 Randall Smith (randy at gluteus.ai.mit.edu)
- * findvar.c (read_var_value): For reg var in a convertable reg,
- fetch reg in its own virtual type and then cast to variable's type.
+ * dbxread.c (psymtab_to_symtab): Removed call to
+ init_misc_functions.
- * symtab.h: Declare xmalloc to return char *.
+ * dbxread.c: Fixed enumeration type clash (used enum instead of
+ integer constant).
- * dbxread.c (read_dbx_symtab): Record static text syms as
- misc-functions. But if an assembler symbol supplies the address
- for a debugger symbol, don't record it as a misc-function.
+ * breakpoint.c: Fixed typo; lack of \ at end of line in middle of
+ string constant.
- * utils.c (query): Do clearerr (stdin) frequently in case of C-d.
+ * symseg.h: Fixed typo; lack of semicolon after structure
+ definition.
- * dbxread.c (process_one_symbol, define_symbol):
- Pass the stab's DESC down to define_symbol.
- DESC = 0 means GCC output: if type is "short", believe it.
+ * command.c, breakpoint.c, printcmd.c: Added cmdlist editing
+ functions to add commands with the abbrev flag set. Changed
+ help_cmd_list to recognize this flag and modified unset,
+ undisplay, and enable, disable, and delete breakpoints to have
+ this flag set.
- * dbxread.c (read_enum_type): Don't allocate the type here;
- take it as an argument. (Like read_struct_type.)
- (read_type)): Before call to read_enum_type, allocate the type
- or get the one already allocated.
+Wed Sep 21 13:34:19 1988 Randall Smith (randy at plantaris.ai.mit.edu)
- * printcmd.c (print_frame_args): Print a comma before
- every arg except the first.
+ * breakpoint.c, infcmd.c, gdb.texinfo: Created "unset" as an alias
+ for delete, and changed "unset-environment" to be the
+ "environment" subcommand of "delete".
-Wed May 13 00:36:00 1987 Richard M. Stallman (rms at prep)
+ * gdb.texinfo, valprint.c: Added documentation in the manual for
+ breaking the set-* commands into subcommands of set. Changed "set
+ maximum" to "set array-max".
- * m68k-pinsn.c (convert_{to,from}_68881):
- Hand-assemble the fmoved and fmovex insns.
+ * main.c, printcmd.c, breakpoint.c: Moved the declaration of
+ command lists into main and setup a function in main initializing
+ them to guarrantee that they would be initialized before calling
+ any of the individual files initialize routines.
- * dbxread.c (define_symbol): For case 'p', a parameter,
- if specified type is short or char, change it to int.
- This is for how PCC handles arguments.
- Define new case 'P' that does what 'p' used to do.
- Maybe GCC will use this.
+ * command.c (lookup_cmd): A null string subcommand is treated as
+ an unknown subcommand rather than an ambiguous one (eg. "set $x =
+ 1" will now work).
-Mon May 4 21:52:44 1987 Richard M. Stallman (rms at prep)
+ * infrun.c (wait_for_inferior): Put in ifdef for Sony News in
+ check for trap by INNER_THAN macro.
- * main.c (main): If SET_STACK_LIMIT_HUGE, set the
- run-time stack limit as high as it can go.
- * m-sun3.h, m-vax.h: define SET_STACK_LIMIT_HUGE.
+ * eval.c (evaluate_subexp): Put in catch to keep the user from
+ attempting to call a non function as a function.
-Sun May 3 08:46:23 1987 Richard Mlynarik (mly at prep)
+Tue Sep 20 10:35:53 1988 Randall Smith (randy at oatmeal.ai.mit.edu)
- * command.c, expread.y, findvar.c, infcmd.c, inflow.c, utils.c,
- values.c, defs.h: Various ANSI C compatibility changes
- (fouts@wilbur.arpa <8705010117.AA13112@wilbur.arpa>)
+ * dbxread.c (read_dbx_symtab): Installed code to keep track of
+ which global symbols did not have debugger symbols refering to
+ them, and recording these via record_misc_function.
- * core.c, inflow.c: Fix calls to supply_register.
- * findvar.c (supply_register): Instead of register value as int,
- pass address of buffer in core containing contents in raw form.
+ * dbxread.c: Killed code to check for extra global symbols in the
+ debugger symbol table.
-Sat Apr 18 17:09:42 1987 Richard Mlynarik (mly at prep)
+ * printcmd.c, breakpoint.c: Modified help entries for several
+ commands to make sure that abbreviations were clearly marked and
+ that the right commands showed up in the help listings.
- * main.c (command_loop):
- Do any cleanups made by a executing a command each time around.
+ * main.c, command.c, breakpoint.c, infcmd.c, printcmd.c,
+ valprint.c, defs.h: Modified help system to allow help on a class
+ name to show subcommands as well as commands and help on a command
+ to show *all* subcommands of that command.
- * source.c (directory_command):
- make_cleanup (free, dirname), not
- make_cleanup (free_current_contents, &dirname)
- (rlk <8704180416.AA29572@PARIS.MIT.EDU>)
+Fri Sep 16 16:51:19 1988 Randall Smith (randy at gluteus.ai.mit.edu)
-Mon Apr 13 20:28:26 1987 Leonard H. Tower Jr. (tower at prep)
+ * breakpoint.c (_initialize_breakpoint): Made "breakpoints"
+ subcommands of enable, disable, and delete use class 0 (ie. they
+ show up when you do a help xxx now).
- * gdb.1: fixed typo and italicization errors.
- (<kgk%cs.brown.edu@RELAY.CS.NET> id AA16470;Sun,12 Apr 87 14:30:07 EST)
+ * infcmd.c,printcmd,c,main.c,valprint.c: Changed the set-*
+ commands into subcommands of set. Created "set variable" for use
+ with variables whose names might conflict with other subcommands.
-Sat Apr 11 15:41:01 1987 Richard Mlynarik (mly at prep)
+ * blockframe.c, dbxread.c, coffread.c, expread.y, source.c:
+ Fixed mostly minor (and one major one in block_for_pc) bugs
+ involving checking the partial_symtab_list when a scan through the
+ symtab_list fails.
- * dbxread.c (read_dbx_symtab):
- No name for symbol => "" not 0 (avoid referencing memory 0)
- (tower <8704081854.AA00135@buit3.bu.edu>)
+Wed Sep 14 12:02:05 1988 Randall Smith (randy at sugar-smacks.ai.mit.edu)
-Mon Mar 30 22:24:07 1987 Leonard H. Tower Jr. (tower at prep)
+ * breakpoint.c, gdb.texinfo: Added enable breakpoints, disable
+ breakpoints and delete breakpoints as synonyms for enable,
+ disable, and delete. This seemed reasonable because of the
+ immeninent arrival of watchpoints & etc.
- * gdb.1: Unix style manual page pointing at internal gdb
- documentation, and info sub-system in GNU Emacs.
+ * gdb.texinfo: Added enable display, disable display, and delete
+ display to manual.
-Fri Mar 20 12:07:15 1987 Richard M. Stallman (rms at prep)
+Tue Sep 13 16:53:56 1988 Randall Smith (randy at sugar-smacks.ai.mit.edu)
- * COPYING: Clarifications about distribution fees and mixing.
- * main.c (copying_info): Same changes.
+ * inferior.h, infrun.c, infcmd.c: Added variable
+ stop_random_signal to indicate when a proceed had been stopped by
+ an unexpected signal. Used this to determine (in normal_stop)
+ whether the current display point should be deleted.
-Tue Mar 17 17:40:14 1987 Richard M. Stallman (rms at prep)
+ * valops.c: Fix to value_ind to check for reference before doing a
+ COERCE_ARRAY.
- * values.c (unpack_field_as_long): Avoid >>= operator
- since ISI compiler has a bug.
+Sun Jul 31 11:42:36 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
-Sat Mar 7 12:19:35 1987 Richard M. Stallman (rms at prep)
+ * breakpoint.c (_initialize_breakpoint): Clean up doc for commands
+ that can now apply also to auto-displays.
- * GDB version 2.1.
+ * coffread.c (record_line): Corrected a spazz in editing.
+ Also removed the two lines that assume line-numbers appear
+ only in increasing order.
- * values.c (unpack-field-as-long): Tests for endianness were broken.
- * findvar.c (read_var_value):
- Now we initialize the union as an int and test it as a char.
+Tue Jul 26 22:19:06 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
-Sun Mar 1 16:16:20 1987 Richard M. Stallman (rms at prep)
+ * expression.h, eval.c, expprint.c, printcmd.c, valarith.c,
+ valops.c, valprint.c, values.c, m-*.h: Changes for evaluating and
+ displaying 64-bit `long long' integers. Each machine must define
+ a LONGEST type, and a BUILTIN_TYPE_LONGEST.
- * main.c (define_command): Command class symbols
- must be cast to int.
+ * symmisc.c: (print_symtab) check the status of the fopen and call
+ perror_with_name if needed.
-Mon Feb 23 02:47:44 1987 Richard M. Stallman (rms at prep)
+Thu Jul 21 00:56:11 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * source.c (list_command): Reword error messages.
- New message for case of first arg not just a line-number
- and no symtab specified by it.
+ * Convex: core.c: changes required by Convex's SOFF format were
+ isolated in convex-dep.c.
-Sun Feb 22 21:15:19 1987 Richard M. Stallman (rms at prep)
+Wed Jul 20 21:26:10 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * dbxread.c (compare_misc_functions):
- Compare the addresses as unsigned numbers.
+ * coffread.c, core.c, expread.y, i386-pinsn.c, infcmd.c, inflow.c,
+ infrun.c, m-i386.h, main.c, remote.c, source.c, valops.c:
+ Improvements for the handling of the i386 and other machines
+ running USG. (Several of these files just needed extra header files
+ such as types.h.) utils.c: added bcopy, bcmp, bzero, getwd, list
+ of signals, and queue routines for USG systems. Added vfork macro
+ to i386
-Sun Feb 22 13:11:45 1987 Richard Mlynarik (mly at prep)
+ * printcmd.c, breakpoint.c: New commands to enable/disable
+ auto-displays. Also `delete display displaynumber' works like
+ `undisplay displaynumber'.
- * main.c (define_command, document_command):
- Stuff was being unnecessarily malloced (-and- not freed!)
+Tue Jul 19 02:17:18 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * main.c (execute_command):
- User-defined commands don't take args.
- Don't confuse empty user command with no command.
- Replace bogus `etext' test with a comparison against
- class_user.
+ * coffread.c: (coff_lookup_type) Wrong portion of type_vector was
+ being bzero'd after type_vector was reallocated.
- * main.c (define_command):
- If the command of the specified name is built-in, note that when
- asking whether to redefine it (this is suppressed for class_alias
- -- should it not be?)
+ * printcmd.c: (delete_display) Check for a display chain before
+ attempting to delete a display.
- * main.c (define_command):
- If command was previously built-in, don't preserve its
- documentation (otherwise could get error later when trying to free
- the non-malloced text of built-in documentation strings)
+ * core.c, *-dep.c (*-infdep moved to *-dep): machine-dependent
+ parts of core.c (core_file_command, exec_file_command) moved to
+ *-dep.c.
-Tue Feb 17 16:23:57 1987 Richard Mlynarik (mly at prep)
+Mon Jul 18 19:45:51 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * main.c (echo_command): Don't die if not given any arg.
- * main.c (cd_command): Echo new cwd if interactive.
+ * dbxread.c: typo in read_struct_type (missing '=') was causing a
+ C struct to be parsed as a C++ struct, resulting in a `invalid
+ character' message.
-Thu Feb 12 11:22:56 1987 Richard M. Stallman (rms at prep)
+Sun Jul 17 22:27:32 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * stack.c (initialize): "bt" now appears in help aliases.
+ * printcmd.c, symtab.c, valops.c, expread.y: When an expression is
+ read, the innermost block required to evaluate the expression is
+ saved in the global variable `innermost_block'. This information
+ is saved in the `block' field of an auto-display so that
+ expressions with inactive variables can be skipped. `info display'
+ tells the user which displays are active and which are not. New
+ fn `contained_in' returns nonzero if one block is contained within
+ another.
- * Version 2.0 released.
+Fri Jul 15 01:53:14 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
-Wed Feb 11 17:45:45 1987 Richard M. Stallman (rms at prep)
+ * infrun.c, m-i386.h: Use macro TRAPS_EXPECTED to set number of
+ traps to skip when sh execs the program. Default is 2, m-i386.h
+ overrides this and sets to 4.
- * m68k-opcode.h: Errors corrected in several instructions
- and reordering done for assembler's sake.
+ * coffread.c, infrun.c: minor changes for the i386. May be able
+ to eliminate them with more general code.
- * m-vax.h (POP_FRAME): End with call to set_current_frame.
+ * default-infdep.c: #ifdef SYSTEMV, include header file types.h.
+ Also switched the order of signal.h and user.h, since System 5
+ requires signal.h to come first.
-Tue Feb 10 15:06:07 1987 Richard M. Stallman (rms at prep)
+ * core.c main.c, remote,c, source.c, inflow.c: #ifdef SYSTEMV,
+ include various header files. Usually types.h and fcntl.h.
- * infrun.c (wait_for_inferior): Set stop_print_frame to 1
- after checking breakpoint condition.
+ * utils.c: added queue routines needed by the i386 (and other sys
+ 5 machines).
- * infcmd.c (run_stack_dummy): Save many flags.
+ * sys5.c, regex.c, regex.h: new files for sys 5 systems. (The
+ regex files are simply links to /gp/gnu/lib.)
-Thu Feb 5 07:12:20 1987 Richard Mlynarik (mly at prep)
+Thu Jul 14 01:47:14 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * source.c (directory_command):
- Step over `:'
+ * config.gdb, README: Provide a list of known machines when user
+ enters an invalid machine. New second arg is operating system,
+ currently only used with `sunos4' or `os4'. Entry for i386 added.
-Mon Feb 2 23:40:32 1987 Richard M. Stallman (rms at prep)
+ * news-infdep.c: new file.
- * infcmd.c (set_environment_command): Fix stupid error
- for case where no "=" appears in the string.
+ * m-news.h: new version which deals with new bugs in news800's OS.
-Mon Jan 26 13:46:52 1987 Richard M. Stallman (rms at prep)
+Tue Jul 12 19:52:16 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * printcmd.c (print_frame_args): Round end-of-arg offset
- up rather than down to multiple of int.
+ * Makefile, *.c, munch, config.gdb, README: New initialization
+ scheme uses nm to find functions whose names begin with
+ `_initialize_'. Files `initialize.h', `firstfile.c',
+ `lastfile.c', `m-*init.h' no longer needed.
-Fri Jan 23 15:11:50 1987 Richard M. Stallman (rms at prep)
+ * eval.c, symtab.c, valarith.c, valops.c, value.h, values.c: Bug
+ fixes from gdb+ 2.5.4. evaluate_subexp takes a new arg, type
+ expected. New fn value_virtual_fn_field.
- * source.c (directory_command): If dir is not added cause already
- present, print explanation.
+Mon Jul 11 00:48:49 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * infrun.c (proceed): Use read_pc (), not stop_pc,
- to get current pc to think about. stop_pc could have been
- clobbered by call_function.
+ * core.c (read_memory): xfer_core_file was being called with an
+ extra argument (0) by read_memory.
-Fri Jan 23 15:00:55 1987 Richard Mlynarik (mly at prep)
+ * core.c (read_memory), *-infdep.c (read_inferior_memory),
+ valops.c (value_at): read_memory and read_inferior_memory now work
+ like write_memory and write_inferior_memory in that errno is
+ checked after each ptrace and returned to the caller. Used in
+ value_at to detect references to addresses which are out of
+ bounds. Also core.c (xfer_core_file): return 1 if invalid
+ address, 0 otherwise.
- * source.c (directory_command):
- If dir is already in source_path, don't append another copy of it.
+ * inflow.c, <machine>-infdep.c: removed all calls to ptrace from
+ inflow.c and put them in machine-dependent files *-infdep.c.
-Thu Jan 22 00:31:03 1987 Richard M. Stallman (rms at prep)
+Sun Jul 10 19:19:36 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * Version 2.0.
+ * symmisc.c: (read_symsegs) Accept only format number 2. Since
+ the size of the type structure changed when C++ support was added,
+ format 1 can no longer be used.
- * blockframe.c (get_pc_function_start):
- Understand misc functions.
+ * core.c, m-sunos4.h: (core_file_command) support for SunOS 4.0.
+ Slight change in the core structure. #ifdef SUNOS4. New file
+ m-sunos4.h. May want to change config.gdb also.
- * core.c (core_file_command):
- Copy all register contents into the array `registers'
- Save a.out header of executable file in core_aouthdr.
- Print name of executable file that was running, if we know
- where to find it.
+Fri Jul 8 19:59:49 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * core.c (exec_file_command):
- Save a.out header in exec_aouthdr and file's mtime
- in exec_mtime.
+ * breakpoint.c: (break_command_1) Allow `break if condition'
+ rather than parsing `if' as a function name and returning an
+ error.
- * core.c (validate_files): Check that core file's a.out hdr
- matches exec file's.
+Thu Jul 7 22:22:47 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * New handling of registers:
- Now all registers are fetched once when the program stops or
- when a core file is selected. Their contents are kept in
- `registers', an array of bytes. This is done by
- `fetch_inferior_registers'. `read_register', etc., just look
- there. Writing a register works through
- `store_inferior_registers' which writes one or all registers
- from `registers' back to the inferior.
+ * C++: valops.c, valprint.c, value.h, values.c: merged code to deal
+ with C++ expressions.
- A register now can have a "raw" data format and a "virtual"
- data format, which may require conversion or even be different sizes.
- The conversion can be different for different registers.
- For example, the 68000 cpu registers need no conversion
- and both raw and virtual size is 4, but the 68881 floating point
- registers have raw size 12 (for extended fmt) and virtual size 8
- (for double). Macros in the m- file such as REGISTER_BYTES,
- REGISTER_BYTE, REGISTER_{RAW,VIRTUAL}_SIZE, and
- REGISTER_CONVERT_TO_{RAW,VIRTUAL} control these things.
+Wed Jul 6 03:28:18 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- `read_register' and `write_register' are usable only on registers
- which hold an int and need no conversion (raw fmt = virtual fmt).
- For other registers, `read_register_bytes' is used, or
- `read_relative_register_raw_bytes'.
+ * C++: dbxread.c: (read_dbx_symtab, condense_misc_bunches,
+ add_file_command) Merged code to read symbol information from
+ an incrementally linked file. symmisc.c:
+ (init_free_inclink_symtabs, free_inclink_symtabs) Cleanup
+ routines.
- * m-sun3.h: Define the 68881 fp registers.
- Know how to recognize insns that save them.
- Make dummy frames save them.
+Tue Jul 5 02:50:41 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * core.c (read_register, write_registers): Functions deleted.
- * findvar.c (read_register, write_registers): New functions,
- not the same as the old ones of the same name.
+ * C++: symtab.c, breakpoint.c, source.c: Merged code to deal with
+ ambiguous line specifications. In C++ one can have overloaded
+ function names, so that `list classname::overloadedfuncname'
+ refers to several different lines, possibly in different files.
- * findvar.c (supply_register): Function used by
- fetch_inferior_registers, etc., to install the register
- values fetched from the inferior.
+Fri Jul 1 02:44:20 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
- * findvar.c (read_register_bytes, write_register_bytes):
- Read spec'd number of bytes from the byte-array `registers'.
+ * C++: symtab.c: replaced lookup_symtab_1 and lookup_symtab_2 with
+ a modified lookup_symbol which checks for fields of the current
+ implied argument `this'. printcmd.c, source.c, symtab.c,
+ valops.c: Need to change callers once callers are
+ installed.
- * findvar.c (read_relative_register_raw_bytes):
- Replaces old function `read_relative_register'; accepts
- address of where to store the contents; # bytes stored is size
- of the specified register in raw format.
+Wed Jun 29 01:26:56 1988 Peter TerMaat (pete at frosted-flakes.ai.mit.edu)
- * findvar.c (value_of_register, read_var_value):
- Convert register values and values of register variables
- from raw format to virtual format.
+ * C++: eval.c, expprint.c, expread.y, expression.h, valarith.c,
+ Merged code to deal with evaluation of user-defined operators,
+ member functions, and virtual functions.
+ binop_must_be_user_defined tests for user-defined binops,
+ value_x_binop calls the appropriate operator function.
- * findvar.c (locate_var_value): Like `read_var_value' but
- returns value for variable's address.
+Tue Jun 28 02:56:42 1988 Peter TerMaat (pete at frosted-flakes.ai.mit.edu)
- * value.h: Add new field VALUE_REGNO to each value. It holds
- register number to control virtual-to-raw conversion
- for assignments to the value.
-
- * valops.c (value_assign): Convert data from virtual to raw format
- if value came from a register variable.
- Use read_register_bytes and write_register_bytes.
-
-
- * infcmd.c (continue_command): Subtract 1 from arg
- before setting breakpoint's ignore-count.
-
- * infcmd.c (jump_command): Query if spec'd line is outside
- of the current function.
-
- * infcmd.c (finish_command): Now finish the selected frame,
- and no arg required.
-
- * infcmd.c (set_environment_command): Allow space to separate
- varname and value.
-
- * infcmd.c (registers_info): Print both raw and virtual data
- format if they differ. Allow register name as arg.
- Ask for a Newline each 16 registers.
-
- * inflow.c (kill_inferior): call mark_breakpoints_out.
- * inflow.c ({fetch,store}_inferior_registers for Sun):
- Get the fp registers and store them in right places in
- `registers'.
- * inflow.c ({read,write}_inferior_register): Deleted.
-
- * infrun.c (wait_for_inferior): Single-stepping is not considered
- to have hit a breakpoint unless the pc before the step matches the
- address of the breakpoint. Necessary on machines where
- breakpoints leave the pc incremented.
-
- If shell gets SIGSEGV, pass the signal silently to it.
-
- * m68k-pinsn.c, m68k-opcode.h:
- Add the 68881 instructions. New operand codes `F', `I', `s'
- and `k' are needed for them. New place codes `78tcik'.
- NEXTBYTE now skips a word but fetches just a byte.
- Explicit sign-extension removed from NEXTBYTE and NEXTWORD.
- NEXTSINGLE, NEXTDOUBLE, NEXTEXTEND and NEXTPACKED defined.
- Various changes to implement the new operand and place codes.
- print_index changed because displacement-size codes for
- word and long displacement were interchanged.
-
- * m68k-pinsn.c (convert_{from,to}_68881): Functions added
- to support REGISTER_CONVERT_TO_{RAW,VIRTUAL} on 68000.
-
- * main.c (main): Move around calls to setjmp.
- * main.c (define_command, document_command):
- Accept a from_tty argument instead of calling input_from_terminal_p.
-
- * printcmd.c (address_info): Print info on class and address
- of a specified symbol. For register symbols, gives name of register.
-
- * printcmd.c (print_command): Remember explicitly whether
- `make_cleanup' was called.
-
- * printcmd.c (print_frame_args): Know how arg-addresses vary with
- data type on big-endian machines.
-
- * source.c (directory_command): Detect `:' in arg and reject it.
- Free the old directory-path. Simplify things like `/.' in
- dirname.
-
- * source.c (openp): Simplify `./' in specified name.
-
- * source.c (find_source_lines): Compare source mtime against
- `exec_mtime' and warn if source is newer.
-
- * source.c (line_info): No arg means use last line listed
- or line following last one this command was used on.
- If from tty, clear out argument so Return is like `i li' without
- arg.
-
- * stack.c (frame_info): Print addresses registers are saved at.
-
- * stack.c (return_command): When asking for confirmation, give
- name of function that will be made to return.
-
- * valops.c (call_function): If function type is
- pointer-to-function, dereference it to compute return type.
- If pointer-to-object, assume function returns int.
- If char, assume that the value's address is the function address
- (because it's a misc functon). If int, the value itself is the
- function address.
-
- * dbxread.c (compare_symbols): Sort register symbols
- before all others.
-
- * eval.c (evaluate_subexp_for_address): New function like
- `evaluate_subexp' but returns a value for the address where
- the subexpression's value would be located.
-
- * eval.c (evaluate_subexp_for_sizeof): New function like
- `evaluate_subexp' but returns a value for the size of the subexp.
-
- * eval.c (evaluate_subexp_with_coercion): Like `evaluate_subexp'
- but coerces arrays to pointers (without taking the time to
- read the array contents).
-
- * eval.c (evaluate_subexp): Use the three new functions above
- when appropriate instead of calling self recursively.
-
-Wed Jan 14 17:00:03 1987 Richard Mlynarik (mly at prep)
-
- * core.c (core_file_command):
- Use correct file in calls to perror_with_name
-
-Mon Jan 12 03:34:35 1987 Richard Mlynarik (mly at prep)
-
- * breakpoint.c (map_breakpoint_numbers):
- Err if no args not supplied, otherwise would get mpv.
-
- * main.c (main):
- Command-line arg "-d dir" adds dir to source-file directory
- search-list.
-
-Sun Jan 11 19:19:52 1987 Richard Mlynarik (mly at prep)
-
- * symmisc.c (free_all_symtabs):
- Don't call free on 0.
-
- * core.c (exec_file_command):
- Use correct name in call to perror_with_name.
- Record absolute pathname.
- Don't savestring an arg to concat.
-
- * dbxread.c (symbol_file_command):
- Record absolute name of pathname opened.
- Print a message if file doesn't have a symbol-table.
- Don't savestring an arg to concat.
-
- * source.c (openp):
- Add new arg filename_opened, which if non-zero will be set to a
- malloced string of the absolute name of the actual filename opened.
-
- * breakpoint.c (clear_command):
- If from_tty or cleared more than one breakpoint at location,
- print which bpts were deleted.
-
- * breakpoint.c (break_command_1, break_command, tbreak_command):
- If from_tty, mention any other breakpoints set at same location.
-
- * symtab.c (decode_line_1):
- If no symtabs, err mentioning `symbol-file' command rather than
- saying "function foo not defined"
-
-Fri Jan 9 01:25:19 1987 Richard Mlynarik (mly at prep)
-
- * main.c (set_prompt_command):
- Add support command "set-prompt"
-
- * printcmd.c (undisplay_command):
- Fix paren error to make "undisplay <number>" work.
-
-Wed Jan 7 12:06:09 1987 Richard Mlynarik (mly at prep)
-
- * main.c (print_gdb_version, gdb_version_info):
- Add command "info version" to report the version
- of gdb for use in bug reports.
-
- * infcmd.c:
- Ensure inferior_args always points to string starting with a space
- and is never 0.
-
- * printcmd.c: (clear_displays, undisplay_command):
- Fix bug in clear_displays which led to looping.
- Make undisplay_command call it instead of wrong-looking code which
- looked at (display->number == 0) instead of (display == 0) to
- determine if it were at the end of the chain.
-
-Mon Dec 15 20:57:06 1986 Richard M. Stallman (rms at prep)
-
- * utils.c (query): Don't ignore a second line if given a null line.
-
- * infrun.c (normal_stop): Print "bug in shell" message
- only for a segmentation fault.
-
- * main.c (main): Read init file from home directory if any,
- before init file from current directory.
-
-Thu Dec 4 09:05:35 1986 Richard M. Stallman (rms at prep)
-
- * source.c (select_source_symtab): Don't ref thru arg if null.
-
- * m68k.opcode.h: For trap instruction code, use type T.
- * m68k-pinsn.c (print_insn_arg): Recognize new arg-code T
- and print the trap vector properly.
-
- * m-sun[23].h (FRAME_FIND_SAVED_REGS): Recognize a movl REG,-(sp)
- as a way to save one register. Recognize clrw -(sp); movw -(sp)
- after saving regs as a way to save the PS register. Adjust the
- way to find the starting pc of a stack dummy frame for the fact
- that these frames now save the PS.
-
- * m-sun[23].h (POP_FRAME): Restore PS register if frame saved it.
-
- * m-sun[23].h (PUSH_DUMMY_FRAME): Push the old PS register.
-
- * m-sun[23].h (CALL_DUMMY, etc.): Fix erroneous binary code for
- the addl #nnn,sp instruction. Insert clrw -(sp); movw -(sp)
- to indicate that the PS has been saved.
-
- * infrun.c (wait_for_inferior): If inferior exits, call
- mark_breakpoints_out so it works to delete breakpoints afterward.
-
- * infrun.c (normal_stop): After popping a stack dummy frame,
- select the frame that we get to.
-
- * dbxread.c (process_one_symbol): Store new `depth' field
- in all context_stack elements created. For N_RBRAC, test
- that depth matches that in the context_stack; if not, error.
-
- * dbxread.c (all callers of error): Make all error messages
- start "Invalid symbol data: " and end with value of symnum.
- Also change a few aborts to errors.
-
-Mon Dec 1 20:20:37 1986 Richard M. Stallman (rms at prep)
-
- * version.c: Version 1.11.
-
- * breakpoint.c (condition_command): If no condition spec'd,
- print "breakpoint N now unconditional".
-
- * breakpoint.c (commands_command): Give different error messages
- for cases of args not containing a breakpoint number
- and args containing anything after the breakpoint number.
-
- * commands.c (lookup_command): Don't store a zero in *p
- if have an undefined subcommand that is not an error.
-
- * commands.c (lookup_command): For recursive call,
- pass subcommand list properly. Was passing the address
- of the word containing the list.
-
- * core.c ({core,exec}_file_name): If no arg, tell user
- what the effect is.
-
- * dbxread.c (define_symbol): Accept class code 'v'
- for static variable within a function.
-
- * dbxread.c (read_type): Now allow any plain number or
- pair of numbers in parens, with no code letter. This means
- define new type same as type with specified number, or define
- it as void if specified number's type is not yet mentioned.
-
- * m68k-pinsn.c (print_insn_arg): Case of general operand
- in byte insn that happened to be immediate used wrong arg-size.
-
- * printcmd.c (set_next_address): Set next_address from arg
- and also set value of `$_' from it.
-
- * printcmd.c (do_examine): Save address in last_examine_address
- and value fetched to examine in last_examine_value.
-
- * printcmd.c (x_command): Copy last_examine_{address,value}
- into values of `$_' and `$__'. Change `x' documentation string.
-
- * source.c (directory_command): Query when no args now says
- what new value it wants use for the path.
-
- * source.c (list_command): Don't die in cases like `list ,+30'.
-
- * source.c (line_info): Call `set_next_address' to make `x'
- display the text of the line. Change `info list' doc string.
-
-Sat Nov 29 07:59:29 1986 Richard M. Stallman (rms at prep)
-
- * printcmd.c (undisplay_command): If get no arg,
- rather than crashing, query and then delete undisplay everything.
-
-Fri Nov 28 15:43:52 1986 Richard M. Stallman (rms at prep)
-
- * dbxread.c (process_one_symbol): If N_LBRAC sym
- has a greater value that N_RBRAC, ignore the
- N_LBRAC value and give the block zero length.
-
-Tue Nov 25 03:10:12 1986 Richard M. Stallman (rms at prep)
-
- * dbxread.c (process_one_symbol): Ignore N_NSYMS symbols
- that appear in Ultrix.
-
-Sat Nov 22 22:49:06 1986 Richard M. Stallman (rms at prep)
-
- * version.c: version 1.10.
-
- * valprint.c (type_print*):
- SHOW < 0 now means abbreviate struct/union members
- or enum values with `...'. SHOW now decremented on
- each recursion in type_print_base. Several places
- that used to check !show now check show <= 0.
-
- * valprint.c (val_print): Pass -1 for SHOW to type_print
- when printing typename inside parens or braces.
-
- * printcmd.c (print_command): If no value specified to print,
- print the value of $.
-
- * expression.h, expread.y, eval.c, expprint.c:
- OP_MEMVAL renamed UNOP_MEMVAL
- and now allows any expression, not just an integer address.
- It now has same format as UNOP_CAST and works almost like it.
- Each place that referred to it has been rewritten
- starting with a copy of the code that handles UNOP_CAST.
- Doc for `print' command changed for this.
-
- * source.c (init_source_path):
- Free and zero out any line_charpos's saved in source symtabs.
-
- * breakpoint.c (condition_command):
- Parse the condition in the environment of the code where the
- breakpoint is set. This requires finding the breakpoint
- before parsing, so code is rearranged.
-
- * dbxread.c (dbx_alloc_type):
- New function given typenums returns the type for those typenums
- or allocates a new, empty type for those typenums and returns it.
-
- * symtab.c (smash_type_to_{pointer,function}):
- New functions modify an already-allocated type object
- to be a pointer to or function returning some given type.
-
- * dbxread.c (read_type): Uses dbx_alloc_type in many cases.
- Reading a pointer or function type now works by doing that,
- then reading the value type or type pointed to, then smashing
- it into the type already allocated. This makes some fwd refs win.
- Likewise for structs and unions.
-
- * dbxread.c (read_struct_type): Now receives the type object
- as args. Used to get typenums as args and look up the type
- itself.
-
- * dbxread.c (symbol_file_command):
- At very end, clear out any type name that `char *' has received.
-
-Thu Nov 20 16:43:53 1986 Richard M. Stallman (rms at prep)
-
- * m-sun2.h, m-sun3.h (FIND_FRAME_SAVED_REGS):
- Was incrementing address even for regs not saved.
-
-Sun Nov 16 14:59:07 1986 Richard M. Stallman (rms at prep)
-
- * values.c (value_field): Was adding in byte offset
- before calling unpack_field_as_long, which itself
- adds in the offset. Now pass addr of start of structure.
-
- * infrun.c (normal_stop): Clean up inferior_pid conditionals:
- just return early if no inferior.
-
-Thu Nov 13 15:45:50 1986 Richard M. Stallman (rms at prep)
-
- * dbxread.c (struct header_file): add new field .instance
- to distinguish the various entries for one header file.
-
- * dbxread.c (process_one_symbol): Use the `value' of
- a N_BINCL or N_EXCL as the instance code for the header file.
-
- * dbxread.c (add_{new,old}_header_file):
- Accept an instance code as arg and treat it as if it were
- part of the file name for distinguishing and finding entries.
-
- * dbxread.c (add_new_header_file, read_type):
- Turn off the header_file_prev_index feature with #if 0.
-
- * values.c (unpack_field_as_long, modify_field):
- Run-time test to distinguish big and little endian machines
- and do shifting accordingly.
-
-Tue Nov 11 00:31:18 1986 Richard M. Stallman (rms at prep)
-
- * version.c: version 1.9.
-
- * breakpoint.c (delete_command):
- Don't query if 2nd arg is zero.
-
- * breakpoint.c (clear_breakpoints):
- Pass 2nd arg of zero to delete_command.
-
-Sat Nov 8 23:29:19 1986 Richard M. Stallman (rms at prep)
-
- * breakpoint.c (delete_command):
- Ask for confirmation when used with no arg (delete all).
-
-Fri Nov 7 11:23:09 1986 Richard M. Stallman (rms at prep)
-
- * infrun.c (start_inferior, wait_for_inferior):
- Eliminate `stop_in_shell' which was not being maintained right.
- New variable `running_in_shell' is set to 1 or 0 when the
- expected SIGTRAPs happen, and is simply examined at other times.
-
- * infrun.c (wait_for_inferior):
- If get SIGSEGV with running_in_shell == 1, it is sh
- allocating memory. Pass the signal silently to the shell.
-
- * core.c (exec_file_command):
- data_{start,end} are adjusted unconditionally when an
- exec file is opened, so closing counter-adjustment is
- now unconditional as well.
-
- * printcmd.c (x_command):
- Don't erase the expression from the calling args
- if cllaed noninteractively (used to be clobbering
- definitions of user-defined commands).
-
- * source.c (list_command): likewise.
-
-Wed Nov 5 09:41:00 1986 Richard M. Stallman (rms at prep)
-
- * Makefile: New variable OBSTACK1 that people can use
- to make obstack.o a dependency of gdb.
-
- * breakpoint.c (initialize):
- Define new aliases "br", "bre" and "brea" for "break".
-
-Sun Nov 2 21:16:06 1986 Richard Mlynarik (mly at prep)
-
- * symmisc.c (read_symsegs):
- Add an extra protection against invalid symbol-file
-
- * m-vax.h:
- Set KERNEL_U_ADDR and STACK_END_ADDR non-4.2-specifically
-
-Tue Oct 21 13:34:14 1986 Richard Mlynarik (mly at prep)
-
- * breakpoints.c (initialize):
- Delet reference to non-existent command "tenable" from doc of "enable"
-
-Tue Oct 14 19:58:27 1986 Richard Mlynarik (mly at prep)
-
- * printcmd.c (display_command, undisplay_command):
- * infcmd.c (run_command):
- Call dont_repeat.
+ * C++: Makefile: changed the echo: expect 101 shift/reduce conflicts
+ and 1 reduce/reduce conflict.
Local Variables: