1 Sat Sep 3 12:05:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
3 * Version 2.8 released.
5 * valprint.c: include param.h.
7 * inflow.c (store_inferior_registers): Fix typo and missing decl.
9 Thu Sep 1 13:18:22 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
11 * Version 2.7 released.
13 * m-hp9k320bsd.h: New file supports BSD on hp9000 series 300.
15 Tue Aug 30 17:54:50 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
17 * m-news.h ({EXTRACT,STORE}_RETURN_VALUE): Handle floating pt values.
19 * inflow.c (store_inferior_registers) [usual case]:
20 Handle registers longer than one word.
22 Sat Aug 27 00:19:32 1988 Richard Stallman (rms at spiff)
24 * inflow.c (create_inferior): Use execve to avoid NEWSOS bug in execle.
26 Wed Aug 10 20:36:36 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
28 * m-news.h: Define READ_DBX_FORMAT, {EXTRACT,STORE}_RETURN_VALUE.
29 (INVALID_FLOAT): Add 2nd argument.
30 (vprintf): Define to call _doprnt.
32 Tue Jul 26 03:05:28 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
34 * symmisc.c: (print_symtabs) Check the status of the fopen and
35 call perror_with_name if needed.
37 Sat Jul 23 00:14:20 1988 Peter TerMaat (pete at corn-chex.ai.mit.edu)
39 * printcmd.c: (delete_display) Check for existence of display
40 chain before deleting anything.
42 Thu Jul 7 08:47:03 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
44 * main.c: New vars win_argv, win_argc, win_prgm to talk to xgdb.
46 Thu Jul 7 02:05:29 1988 Pete TerMaat (pete at frosted-flakes.ai.mit.edu)
48 * dbxread.c: (define_symbol) store static functions ('f') in the
49 same way as global functions ('F') -- that is, as `function of
50 type X' rather than as `X'.
52 Mon Jul 4 17:07:31 1988 Pete TerMaat (pete at frosted-flakes.ai.mit.edu)
54 * dbxread.c: (read_dbx_symtab) Avoid reading symbol tables of
55 libraries by checking for symbols which begin with "-l" (in
56 addition to those which end with ".o").
58 Mon Jun 27 23:27:51 1988 Pete TerMaat (pete at frosted-flakes.ai.mit.edu)
60 * dbxread.c: (define_symbol) and coffread.c: (process_coff_symbol)
61 If the current symbol is a function, assign its type to be
62 `function of type X' rather than `X'. TYPE_TARGET_TYPE (symbol)
65 * findvar.c: (locate_var_value, read_var_value) got rid of checks
66 for LOC_BLOCK which called `lookup_function_type'. These checks
67 are no longer needed because of the change to dbxread.c.
69 * infcmd.c: (finish_command) Now uses target_type instead of type
70 for functions, in keeping with the change to dbxread.c.
72 Sat Jun 25 00:24:09 1988 Pete TerMaat (pete at corn-chex.ai.mit.edu)
74 * infrun.c: (normal_stop) Added a check for permissions on the
75 exec file before printing the "You have encountered a bug in sh"
76 message. Apparently on some systems an attempt by the shell to
77 exec an unexecutable file had resulted in the "You have
80 Wed Jun 22 00:00:02 1988 Pete TerMaat (pete at corn-chex.ai.mit.edu)
82 * config.gdb: installed shell script to make the proper links to
83 param.h, m-init.h, opcode.h, and pinsn.c, given a machine name.
85 Tue Jun 21 23:55:09 1988 Pete TerMaat (pete at corn-chex.ai.mit.edu)
87 * m-suninit.h, m-isi-ov.h, m-news800.h: moved to m-sun3init.h,
88 m-isi.h, m-news.h for consistency.
90 Fri Jun 17 21:24:48 1988 Pete TerMaat (pete at lucky-charms.ai.mit.edu)
92 * m-umax.h: (FIX_CALL_DUMMY): fixed typo (the last `flipped' was
95 * m-pn.h, m-npl.h: added #define gould, since this is needed in
98 Tue Jun 14 04:07:50 1988 Pete TerMaat (pete at lucky-charms.ai.mit.edu)
100 * Removed unused variables from m-pn.h, m-npl.h in
101 FRAME_FIND_SAVED_REGS, PUSH_DUMMY_FRAME, and POP_FRAME.
103 Mon Jun 13 05:57:47 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
105 * inflow.c (create_inferior): Allow two macros SHELL_FILE and
106 SHELL_COMMAND_CONCAT, if defined, to customize how the shell is run.
108 Thu Jun 9 05:42:20 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
110 * breakpoint.c (ignore_command): P was used before initialized.
112 Fri Jun 3 06:52:25 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
114 * dbxread.c (read_dbx_symtab): Change handling of N_NBTEXT (Gould).
116 Mon May 30 22:48:48 1988 Richard Stallman (rms at sugar-bombs.ai.mit.edu)
118 * main.c (main, disconnect): Handle SIGHUP by killing inferior.
119 * inflow.c (kill_inferior_fast): New function used to do that.
121 * utils.c (printchar): New 3rd arg is the string's delimiter,
122 which is the char that needs backslashing.
123 * valprint.c (value_print, val_print): Pass new arg.
124 * expprint.c (print_subexp): Pass new arg.
126 Mon May 23 14:54:54 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
128 * source.c (print_source_lines): New arg NOERROR nonzero means
129 if file is not found just print message and return (don't throw).
130 Callers changed here and in stack.c.
132 Sun May 22 14:22:54 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
134 * source.c (identify_source_line): Set defaults for `list' command.
136 * dbxread.c (sort_syms): If not sorting the block, reverse it, so
137 that for a parm declared register the register comes before the parm.
139 * defs.h: declare alloca.
141 Fri May 20 15:02:50 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
143 * values.c (value_of_internalvar): `return' stmt was missing.
145 Tue May 10 23:03:29 1988 Richard Stallman (rms at corn-chex.ai.mit.edu)
147 * source.c ({forward,reverse}_search_command, print_source_lines):
148 Line number symtab->nlines is just barely in range.
149 (find_source_lines): Newline as last char in file doesn't start a line.
151 Thu May 5 15:04:40 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
155 * printcmd.c (do_one_display): New fn, display one auto-display.
156 (do_displays): Use that fn.
157 (display_command): If cmd is from tty, display the new display now.
159 * printcmd.c (do_display): Record # of display being displayed.
160 (delete_current_display): New fn: delete that display (if any).
161 * main.c (return_to_top_level): Call delete_current_display.
162 * infrun.c (normal_stop): Likewise.
164 * main.c (catch_error): New fn: like list `errset'.
165 * breakpoint.c (breakpoint_cond_eval): Eval an expression and
166 return 1 if the expression is zero.
167 (breakpoint_stop_status): Use those two fcns; avoid lossage on error
168 in evalling a breakpoint condition.
170 * infcmd.c (jump_command): Typo in call to `query'.
172 Tue May 3 10:52:08 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
174 * core.c (exec_file_command): If no file, pass 0 to display-hook.
176 * core.c (get_exec_file): New arg ERR says whether to err if no file.
179 * main.c (print_prompt): New fn to print the prompt string.
181 * xgdb.c: Numerous changes. It now semi-works but the text display
182 often gets messed up.
184 Sun May 1 12:12:43 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
186 * wait.h [HAVE_WAIT_STRUCT] (WSETSTOP): Fix typos.
188 Sat Apr 30 10:18:56 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
190 * expread.y: BLOCK::NAME action called copy_name in wrong place.
192 Fri Apr 15 01:01:40 1988 Chris Hanson (cph at kleph)
194 * inflow.c [! TIOCGPGRP]: Do not call `setpgrp' for inferior.
195 Instead, disable SIGINT and SIGQUIT while the inferior is running.
196 Unfortunately this means that C-c typed while GDB is running will
197 cause the inferior to receive SIGINT when it is resumed.
198 * utils.c (quit) [! TIOCGPGRP]: Cause quit message to remind user
199 that the inferior will see SIGINT.
201 Thu Apr 14 23:38:02 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
203 * infrun.c (wait_for_inferior): If step into a function, and
204 immediately arrive at start of first line of user code,
205 don't step: stop immediately.
206 Set prev_pc before, not after, calling `resume'.
208 * source.c (identify_source_line): New 3rd arg controls additional
209 output datum: `beg' or `middle', saying whether pc is at beg of line.
210 * stack.c (print_frame_info): Pass that argument.
212 * main.c (cd_command): Convert any relative pathname to absolute.
213 Simplify if `.' or `..' appear.
215 Thu Apr 14 21:17:11 1988 Chris Hanson (cph at kleph)
217 * infrun.c: Add new flag `trap_expected_after_continue' to
218 compensate for spurious trace trap generated by HP-UX after
219 running a stack dummy.
221 * inflow.c (term_status_command) [HAVE_TERMIO]: Show all available
222 terminal status information.
224 Tue Apr 12 19:11:00 1988 Chris Hanson (cph at kleph)
226 * stack.c (print_frame_info): When -fullname is given and
227 `identify_source_line' succeeds, do not print real pc even if it
228 differs from the start pc for the source line. This information
229 is not very useful and tends to screw up gdb-mode in emacs.
231 Mon Apr 11 14:22:10 1988 Chris Hanson (cph at kleph)
233 * dbxread.c (define_symbol): Don't forget to terminate
236 * m-hp9k320.h (CALL_DUMMY): Fix bug -- breakpoint instruction is
237 TRAP #1 not TRAP #15.
239 * inflow.c (store_inferior_register_1) [HP9K320]: Ignore `errno',
240 as there is a bug in HP-UX which (mistakenly) causes errno to be
241 non-zero when writing fp7.
243 Sat Apr 9 01:04:23 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
245 * dbxread.c (symbol_file_command): Check stringtab size by doing `stat'
246 and, if it is ridiculous, complain and don't call alloca.
247 Don't discard existing symtab until after that check.
249 Fri Apr 8 16:39:11 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
251 * Makefile: Delete `-lg' entirely; not needed now that linking is done
254 Fri Apr 8 13:41:46 1988 Chris Hanson (cph at kleph)
256 * m68k-opcode.h: Fix operand-string of fmovel insns.
258 * Makefile: Put "-lg" in CLIBS because there is no such library in
259 HPUX. Update the comment for HPUX.
261 Fri Apr 8 03:30:23 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
263 * findvar.c (locate_var_value): For &FCN, do lookup_function_type.
265 * valprint.c (val_print): Fix typo testing whether ptr is a string.
267 Thu Apr 7 21:11:00 1988 Chris Hanson (cph at frosted-flakes.ai.mit.edu)
269 * m-hp9k320.h: New file.
271 * main.c (stop_sig, read_line): #ifdef SIGTSTP around uses of SIGTSTP.
273 * wait.h: Fix bug in WSETEXIT.
275 * remote.c: If HAVE_TERMIO, use termio and fake it to look like stty.
277 (remote_wait): Use the wait.h interface.
279 * utils.c (quit): Need HAVE_TERMIO conditional. Also include param.h.
281 * inflow.c: If HAVE_TERMIO, use termio and fake it to look like stty.
282 Define TERMINAL for data type of terminal data.
283 Use of tchars, ltchars, pgrp conditional on existence of the
284 ioctls that handle them.
285 (terminal_init_inferior, terminal_inferior, terminal_ours,
286 term_status_command, initialize):
287 Conditionals for HAVE_TERMIO and existence of various ioctls.
288 ({fetch,store}_inferior_registers): Separate versions for HP9K320.
290 * m68k-pinsn.c (convert_{to,from}_68881): Alternate asms for HPUX_ASM.
292 * core.c (register_addr): Change #ifdef to REGISTER_U_ADDR
293 (core_file_command) [HP9K320]: Special code to get regs from HPUX
296 Thu Apr 7 01:15:56 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
298 * dbxread.c (add_symbol_to_list, finish_block, read_enum_type):
299 Symbol-lists now hold up to 20 symbols in each `struct pending'
300 to save time in malloc. When a `struct pending' becomes free,
301 don't call `free'; put it on a free-list `free_pendings'.
302 (really_free_pendings): Call `free' for each `struct pending'
303 on the free-list, and others that are easily found.
304 (symbol_file_command): Set up `really_free_pendings' as a cleanup.
306 * dbxread.c (start_symtab, end_symtab, process_one_symbol):
307 Context_stack is now contiguous, to save malloc-time.
309 * dbxread.c (read_enum_type): Allocate the enum const syms
310 in the symbol_obstack.
311 (obsavestring): New fn, like savestring but alloc in symbol_obstack.
312 (obconcat): New fn, like concat but etc.
313 Most calls to savestring and concat changed to call these fns.
314 (define_symbol): Open-code bcopy; don't bother to zero the symbol.
315 (compare_symbols): Compare 1st char of name before calling strcmp.
317 * Do explicit buffering to read symtab--don't use stdio.
318 Variables symbuf... hold the buffer and indices.
319 * dbxread.c (fill_symbuf): Fill the buffer, record how much was read.
320 (read_dbx_symbols, next_symbol_text): Fetch data direct from buffer;
321 call fill_symbuf when necessary.
323 * dbxread.c (sort_syms): Don't sort blocks with < 40 syms.
324 * symtab.c (lookup_block_symbol): Don't binary search such blocks.
325 Compare 1st char of name before calling strcmp, and other speedups.
327 * symtab.c (sort_block_syms): New fn, sort one block's syms.
328 (list_symbols): If block not normally sorted, sort it here.
330 * dbxread.c (define_symbol): Ignore sym if name is empty.
331 (process_one_symbol): Ignore N_ENTRY sym if no N_SO seen yet.
332 (read_dbx_symtab): Recognize N_NBTEXT like N_TEXT (if it's defined).
333 Set end_of_text_addr from END_OF_TEXT_DEFAULT (if it's defined).
334 (NUMBER_OF_SYMBOLS): New macro for # entries in symtab.
335 (SYMBOL_TABLE_OFFSET): New macro for file-offset of symtab.
336 (STRING_TABLE_OFFSET): New macro for file-offset of string tab.
337 (READ_STRING_TABLE_SIZE): New macro to store size of string tab.
338 (DECLARE_FILE_HEADERS): New macro to declare vars to hold header info.
339 (READ_FILE_HEADERS): New macro to read that info from a descriptor.
340 All these macros can be overriden by the m-....h file.
341 (symbol_file_command): These macros replace open code.
343 * values.c (unpack_double): When fetching `double' from memory,
344 make it double-aligned, since some machines need that.
346 * core.c (exec_file_command): Insert conditionals for `gould'.
348 * m-sun[23].h, m-isi-ov.h, m-news800.h (ABOUT_TO_RETURN):
349 Fix typo in opcode number.
351 * main.c (read_line): Ignore backslash-newline.
353 Fri Apr 1 17:37:25 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
355 * main.c (main): New -c switch specifies current directory.
356 Discard trailing slash from arg.
357 (pwd_command): Call getwd. Print its result as well as
358 current_directory if they differ.
359 (cd_command): Leave user's form of path in current_directory.
360 Discard trailing slash from arg.
362 * source.c (init_source_path, directory_command):
363 Use current_directory rather than calling getwd.
365 Fri Mar 25 14:51:39 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
367 * dbxread.c (read_struct_type): Only ints and enums can be bit-fields.
369 * command.c (lookup_command): Allow 0 in command name.
371 * valprint.c (value_print): New arg FORMAT. Most callers pass 0.
372 Pass FORMAT to val_print.
373 (val_print): New arg FORMAT. Most callers pass 0.
374 When FORMAT is nonzero, use `print_scalar_formatted' to print a scalar
375 and inhibit special treatment of char-pointers and arrays.
377 * printcmd.c (print_scalar_formatted): Guts of `print_formatted'
378 broken out, except for `i', `s' and 0 formats.
379 Type and data-address passed separately.
381 * valprint.c (val_print): Any array of 1-byte ints is a string;
382 any 1-byte int is a character.
384 Thu Mar 24 23:01:24 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
387 Make read_coff_symtab interruptible.
388 Use obstack rather than xmalloc for blocks, blockvectors and symbols.
389 Fix error checking for reading the stringtab.
391 * ns32k-pinsn.c (fbit_extract): New function.
392 (print_insn_arg): Use it for immediate floating args.
393 Also print float reg args as `f<digit>', not `r<digit>'.
395 * m68k-opcode.h: mulu and muluw had wrong arg-format-string.
397 * valprint.c (value_print): Any pointer to 1-byte ints
398 is printed as a string.
400 * inflow.c (attach, detach): Change conditional on these to
401 ATTACH_DETACH. In a UMAX_PTRACE conditional, define the Sun
402 attach/detach names in terms of the Umax ones.
404 * m-umax.h: Define ATTACH_DETACH.
406 * infcmd.c (attach_command): `remote' was not being initialized.
408 * m-umax.h: Include defs.h if nec so that CORE_ADDR is defined.
410 * m-umax.h, m-vax.h: Define vprintf to use _doprnt.
411 * m-isi-ov.h, m-merlin.h: Likewise.
413 * inflow.c [UMAX_PTRACE]: Don't include user.h; do include sys/ptrace.h
415 * m-umax.h: Rename `n32k...' to `ns32k...'.
416 * ns32k-pinsn.c: Likewise.
418 * stack.c (print_block_frame_locals): Mention static locals as well.
420 * main.c (validate_comname): Allow 0 in a command name.
422 * core.c (myread): If successful, return # chars read.
424 * blockframe.c (find_pc_misc_function): Don't die due to index -1
425 if there are no misc functions.
427 Sun Mar 20 17:52:00 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
429 * m-isiinit.h: New file needed on ISI machines.
430 Symbol BSD43_ISI40D controls choice of system version.
432 * m-isi-ov.h: BSD43_ISI40D affects REGISTER_U_ADDR.
434 Sat Mar 19 17:56:02 1988 Richard M. Stallman (rms at frosted-flakes.ai.mit.edu)
436 * dbxread.c (symbol_file_command): Clear global_sym_chain here
438 (read_dbx_symtab): instead of clearing it here.
440 * valprint.c (type_print_base): Handle if TYPE is 0.
441 (type_print_varspec_{prefix,suffix}): Do nothing if TYPE is 0.
443 * main.c (copyright_info): Fix typo in string.
444 * symseg.h: Fix typo in struct.
446 Fri Mar 18 01:07:10 1988 Chris Hanson (cph at kleph)
448 * breakpoint.c (commands_command): Flush stdout after printing
449 message for benefit of terminals which are pipes.
451 Tue Feb 16 18:28:24 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
453 * dbxread.c (process_one_symbol): Ignore some Fortran symbol types.
455 Wed Feb 10 15:48:30 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
459 * symtab.h: Delete free_explicit.
460 * symmisc.c (free_all_symtabs): Delete free_explicit case.
462 * symseg.h (struct source): It contains a linetable. Define linetable.
463 * symtab.h: Don't define linetable here.
465 * symmisc.c (relocate_source): Relocate the linetable it contains.
466 * dbxread.c (symbol_file_command): Convert each symseg to one or
467 more symtabs according to its sourcevector. Give each symtab
468 a linetable that comes from the sourcevector.
470 Free old symtabs and Print "Reading..." before reading symsegs.
472 * dbxread.c (start_symtab): If find a current_symseg, return
474 * dbxread.c (end_symtab): If have a current_symseg,
475 just zero a couple of variables and return. Delete the rest
476 of the if-statement for current_symseg != 0.
478 Sat Feb 6 12:59:29 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
480 * findvar.c (locate_var_value): Remove space from middle of `+ ='.
482 * symtab.h (struct symtab): New field `fullname'.
483 * source.c: Callers of `openp' store the `fullname' field.
485 * source.c (identify_source_line): New function prints
486 ^z^zFILENAME:LINENUM:CHARPOS\n. For Emacs interface (gdb.el).
488 * main.c (main): `-fullname' option sets `frame_file_full_name'.
489 * stack.c (print_stack_frame): After printing source line,
490 if `frame_file_full_name', call `identify_source_line'.
492 Fri Feb 5 00:07:44 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
494 * core.c (core_file_command): For UMAX, print the core file's
495 program name. For UMAX and Sun, print the signal number.
497 * printcmd.c (decode_format): Don't let size `g' be used for integers.
499 * coffread.c (read_coff_symtab): Don't lose a file
500 just because it contains only data and types (no text).
502 * source.c: Rename line_info_default_line to last_line_listed.
503 * source.c (*_search_command): Use that as default place to start.
504 Set current_source_line so that `list' with no args is centered
507 Thu Feb 4 19:32:31 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
509 * dbxread.c (end_symtab): Always initialize symtab->free_ptr.
511 * main.c (main, cd_command): Set up `dirbuf' and `current_directory'
512 * main.c (pwd_command): Use `current_directory'.
514 Wed Feb 3 11:49:10 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
516 * remote.c: New file, for communication to remote debugger.
518 * defs.h (current_directory): New variable.
520 * core.c (core_file_command): Use current_directory instead of getwd.
522 * inflow.c (callers of ptrace): If remote_debugging, call another
523 function named remote_... instead of ptrace.
525 * infcmd.c (start_inferior): Special things if remote_debugging.
527 * infcmd.c (attach_command): If arg starts with a slash,
528 call `remote_open' and `start_remote'.
530 * infcmd.c (run_command): if remote_debugging,
531 don't hassle the args and don't fork.
533 * infrun.c, inferior.h (remote_debugging): New variable.
534 * infrun.c (wait_for_inferior): If remote_debugging, use remote_wait.
535 * infrun.c (start_remote): New function.
537 * symtab.c (find_line_common): Find the linetable entry
538 for a specified source line, of the first following line that has one.
539 No longer assumes lines are in increasing order.
541 * symtab.c (find_line_pc, find_line_pc_range): Use find_line_common.
543 * symtab.c (lookup_misc_func): New function to return the index
544 in misc_function_vector of a specified name.
546 * symtab.c (decode_line_1): Use `lookup_misc_func'.
548 * source.c (forward_search_command, reverse_search_command):
549 New functions to search a source file.
551 * source.c (openp): Get dir from `current_directory', not getwd.
553 * source.c (line_info): 2nd arg to decode_line_spec was missing.
555 * printcmd.c (printf_command): New command to do printf
556 with specified string and arguments. Thoroughly rewritten from
559 * eval.c (parse_to_comma_and_eval): New function.
561 * expread.y (parse_c_1): New arg COMMA means stop parsing at a comma.
562 * breakpoint.c (condition_command, break_command): Pass 0 for COMMA.
563 * eval.c (parse_and_eval_address_1): Pass 0 for COMMA.
565 * printcmd.c (print_formatted): New arg SIZE so hex nums line up.
566 Changed all callers (all in this file).
568 * dbxread.c (symbol_file_command): Error-check result of alloca.
569 On some systems it seems it can return zero.
571 * dbxread.c (read_dbx_symtab): Make this interruptable.
573 * blockframe.c (find_pc_misc_function): Use binary search.
575 Thu Jan 28 08:48:00 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
577 * m68k-pinsn.c (print_insn_arg): For operand type 'd',
578 operand value is a register-name.
580 Sat Jan 23 01:04:51 1988 Richard Stallman (rms at frosted-flakes.ai.mit.edu)
582 * symseg.h: Add `struct sourcevector', etc., for describing
585 Fri Jan 15 05:09:18 1988 Richard Stallman (rms at frosted-flakes)
587 * valprint.c [IEEE_FLOAT]: New function `is_nan' checks
588 whether a double is a nan.
590 * printcmd.c (print_formatted) [IEEE_FLOAT]:
591 Detect nans and print specially.
592 * valprint.c (val_print) [IEEE_FLOAT]: Same thing.
594 * m68k-pinsn.c (convert_{to,from}_68881): Hand-assemble
595 all the assembler code.
597 * m-newsinit.h, m-news800.h: Two new files.
599 Thu Jan 7 22:25:16 1988 Richard Stallman (rms at frosted-flakes)
601 * valops.c (value_assign): Don't coerce the arg being stored in.
602 Coercion is not right either for an array or for an enum.
604 Tue Jan 5 00:59:29 1988 Richard Stallman (rms at frosted-flakes)
606 * symtab.c (decode_line_1): Don't complain about no symtabs loaded
607 until after trying the misc function table.
609 Sat Jan 2 13:16:08 1988 Richard Stallman (rms at frosted-flakes)
611 * stack.c (record_selected_frame): New fn to access
612 the selected frame and its level.
613 * infcmd.c (run_stack_dummy): Save and restore the selected
616 Wed Dec 30 18:44:41 1987 Richard Stallman (rms at frosted-flakes)
618 * valprint.c (type_print_varspec_prefix):
619 Treat arrays just like functions.
620 * valprint.c (type_print_varspec_{prefix,suffix}):
621 When passed_a_ptr is handled, pass 0 for it in the recursive call.
623 Fri Dec 18 10:24:14 1987 Richard Stallman (rms at frosted-flakes)
625 * findvar.c (read_var_value): Share code between values really
626 in registers and values in saved registers.
627 Register short on a big-endian machine needs a VALUE_OFFSET.
629 * findvar.c (locate_var_value): Offset the address of a
630 saved register variable that's shorter than the register.
632 Thu Dec 17 08:26:31 1987 Richard Stallman (rms at lucky-charms)
634 * valprint.c (type_print_base): Print nameless bit fields
635 to indicate gaps before bit fields.
637 * source.c (select_source_symtab): Ignore .h files.
638 Also, if a function `main' exists, make the default listing line
639 the beginning of `main'.
641 * breakpoint.c ({get,set}_breakpoint_commands):
642 Commands to examine or set the pending breakpoint-commands.
644 * infcmd.c (run_stack_dummy): Save and restore the breakpoint
645 commands around the function call.
647 * stack.c (return_command): Don't query or print if not interactive.
649 * value.h (COERCE_ENUM): New macro: if arg is enum, convert to int.
650 * value.h (COERCE_ARRAY): Do that, as well as old job.
652 * valarith.c (value_binop, value_neg, value_lognot):
653 Use COERCE_ENUM on the arguments.
654 * valops.c (value_arg_coerce): Likewise.
655 * valops.c (value_cast): AVOID coercing enums when arrays are.
657 * eval.c (evaluate_subexp): In the BINOP_SUB case,
658 use evaluate_subexp_with_coercion.
660 * inflow.c (terminal_ours_1, terminal_inferior):
661 Ignore inferior_thisrun_terminal since our terminal
662 is the inferior's controlling terminal regardless.
664 * m-sun3.h: Fix assembler syntax for kdb macros.
666 * infcmd.c ({attach,detach}_command): New functions from Dave Taylor.
667 * inflow.c (attach, detach): New functions from Dave Taylor.
668 * infrun.c (attach_process): New function, middle-level.
669 Does all the work of attaching a process, assuming there is no
670 inferior yet, except for printing and querying.
672 * infrun.c (clear_proceed_status): Clear `stop_after_attach'.
673 * infrun.c (wait_for_inferior): Handle `stop_after_attach'.
675 Sat Dec 12 04:36:39 1987 Richard Stallman (rms at corn-chex)
677 * dbxread.c (end_symtab): The free_code for a symseg got
678 from a file should be free_linetable.
680 * dbxread.c: Allocate blockvector, blocks, symbols and symbol names
681 from the symbol-obstack, and use free_linetable for all files.
682 The typevector is still malloc'd, so put it in the free_ptr
685 * symmisc.c (free_symtab): Always free the `free_ptr' if nonzero.
686 `free_explicit' therefore now the same as `free_nothing'.
688 * dbxread.c (define_symbol): Handle defn code 'c', used by
689 fortran, which defines integer and real constant symbols.
691 * symseg.h: Define LOC_CONST_BYTES for constants longer than a
692 word. New `bytes' alternative for the value of a symbol.
694 * symtab.h (SYMBOL_VALUE_BYTES): Macro to access `bytes'.
696 * findvar.c ({read,locate}_var_value): Handle LOC_CONST_BYTES.
697 * printcmd.c (address_info): Handle LOC_CONST_BYTES.
698 * symmisc.c (print_symbol): Handle LOC_CONST_BYTES.
700 Tue Dec 8 20:26:37 1987 Richard Stallman (rms at frosted-flakes)
702 * symtab.c (find_line_pc_range): Detection of last line in file
705 Fri Dec 4 21:52:52 1987 Richard Stallman (rms at frosted-flakes)
707 * dbxread.c (read_range_type): Accept the typenums as argument.
708 Use read_type_number to read the subrange-of type.
709 A type defined as a subrange of itself is void.
711 Thu Dec 3 12:45:10 1987 Richard Stallman (rms at frosted-flakes)
713 * inflow.c ({fetch,store}_inferior_registers): Support UMAX_PTRACE.
715 * m-umax.h: New file, for Encore machines.
717 * core.c (exec_file_command, etc): Decode COFF files.
718 * core.c (core_file_command): Support UMAX_CORE format.
719 * core.c (validate_files, exec_file_command):
720 Set exec_mtime in exec_file_command so that COFF vs non-COFF
721 differences appear all in one place.
723 * coffread.c: New file from Dave Johnson.
725 * core.c (specify_exec_file_hook): New function to specify
726 a hook to be called by exec_file_command. Last #ifdef X_WINDOWS gone.
727 * xgdb.c (initialize): Specify a hook.
729 * infrun.c, inferior.h: Replace stop_r0 and stop_r1 with an array
730 `stop_registers' that will hold ALL the registers.
731 * infcmd.c (run_stack_dummy): Get the value from `stop_registers'
732 and copy all of that into BUFFER.
733 * infcmd.c (finish_command): Specify `stop_registers'
734 to `value_being_returned'.
735 * values.c (value_being_returned): Use the new EXTRACT... macros.
736 * values.c (set_return_value): Use new STORE_RETURN_VALUE macro.
737 * valops.c (call_function): Allocate retbuf long enough for all regs.
738 * m-*.h: New macros EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE and
739 EXTRACT_STRUCT_VALUE_ADDRESS that express machine-dependencies
740 in where return values are stored.
742 * valops.c (call_function): Flush default for CALL_DUMMY_START_OFFSET.
743 Assume it is defined.
744 * m-vax.h: Define CALL_DUMMY_START_OFFSET.
746 * ns32k-pinsn.c (ns32k-localcount): Fix decoding of `enter' insn.
747 * ns32k-pinsn.c (n32k_get_enter_addr): New fn used from m-umax.h.
749 * m-*.h: Change INVALID_FLOAT to accept 2nd arg which is length
751 * values.c (unpack_double): Pass the 2nd arg.
752 * vax-pinsn.c (print_insn_arg): Pass the 2nd arg.
753 * infcmd.c (registers_info): Pass the 2nd arg.
755 Wed Nov 25 15:06:55 1987 Richard Stallman (rms at frosted-flakes)
757 * Bug fixes by David Johnson (ddj%cs.brown.edu@relay.cs.net).
759 * symtab.c (list_symbols): Print typedef names, and don't call
762 * symmisc.c (print_symtabs): Allow immediate quit, and close the
763 output file if that happens.
765 * stack.c (frame_command): Declare args `unsigned' so a negative
766 number is a frame address, not a level number.
768 * source.c: Check for error-return from calls to `getwd'.
770 * printcmd.c (address_info): Fix error in case of a function name.
772 * inflow.c (create_inferior): Return the inferior pid properly.
774 * inferior.h: Define `inferior_io_terminal'.
775 * infrun.c (tty_command): New command to specify inferior_io_terminal.
776 * inflow.c (new_tty): Open specified terminal for the inferior.
777 * inflow.c (terminal_{ours,inferior}): Do nothing if inferior was
778 started with its own terminal.
779 * main.c (main): -t switch calls `tty_command'.
781 * expread.y (rule for `block'): `copy_name' was called in wrong
782 place and with wrong args.
784 * dbxread.c: Entire file #ifdef READ_DBX_FORMAT.
785 * m-*.h: Define READ_DBX_FORMAT.
787 * breakpoint.c (initialize): Error in doc string of `info breakpoints'.
789 Wed Nov 11 12:57:28 1987 Richard Stallman (rms at frosted-flakes)
791 * ns32k-opcode.h, ns32k-pinsn.c: Two new files.
792 * m-merlin.h: New file, for one 32000 box.
794 Mon Nov 9 10:31:42 1987 Brian Fox (bfox at sugar-smacks)
796 * eval.c (evaluate_subexp): Made the case of OP_FUNCALL use
797 evaluate_subexp_with_coercion, so that array references would
798 get converted into pointer references.
800 Mon Nov 9 05:50:24 1987 Richard Stallman (rms at sugar-smacks)
802 * breakpoint.c (ignore_command): Error if no arg.
804 Sat Nov 7 13:57:40 1987 Richard Stallman (rms at frosted-flakes)
806 * main.c (quit_command): Get rid of execfile before the kill_inferior.
808 * xgdb.c: New file, interface to X windows.
810 * main.c (main): Look for flag arguments before
811 calling the initialization functions. -nw switch sets
812 `inhibit_windows' which xgdb.c looks at.
813 * main.c (command_loop): Call the window hook function, if any.
815 * source.c (get_filename_and_charpos): New function
816 that interfaces to find_source_lines.
817 * source.c (source_line_charpos, source_charpos_line):
818 New functions translate source line number to char pos and vice versa.
820 * breakpoint.c (describe_other_breakpoints): New subroutine
821 to list all breakpoints at PC in a message about "other
823 * breakpoint.c (break_command_1): Use describe_other_breakpoints.
824 * breakpoint.c (set_breakpoint): Like break_command_1
825 but takes arg predecoded into symtab and line.
827 * core.c (exec_file_command): Call xgdb_display_exec_file.
829 * valprint.c (type_print_base): For struct bitfields,
832 Thu Aug 20 02:46:47 1987 Richard M. Stallman (rms at prep)
836 * m68k-pinsn.c (print_insn_arg): Implement place = '3'.
838 * findvar.c (write_register_bytes): Arg to
839 store_inferior_registers should be -1: write all registers.
841 * dbxread.c (symbol_file_command): If no arg,
842 just discard all symbols.
844 * core.c (myread): Flush the 4th arg (filename).
845 * source.c (find_source_lines): Don't pass 4th arg.
846 * symmisc.c (read_symsegs): Ditto.
848 * dbxread.c (process_one_symbol): One call to `define_symbol'
851 * inflow.c (write_inferior_memory): On failure, return the errno value.
852 * core.c (write_memory): ditto.
853 * breakpoint.c ({insert,remove}_breakpoints): ditto.
854 * utils.c (print_sys_errmsg): Like perror_with_name but don't
855 signal an error; also, the error code is an arg instead of from
857 * infrun.c : Save the value from insert_breakpoints and pass it to
860 * main.c (input_from_terminal_p): Put in omitted `return'.
862 * Makefile (expread.o): Use $(CC).
864 Sun Jun 7 04:42:51 1987 Richard M. Stallman (rms at prep)
866 * version.c: Version 2.3.
868 * inflow.c (terminal_ours): Save fcntl flags correctly.
869 * inflow.c (term_status_command):
870 Print the tchars and ltchars structures, byte by byte.
872 Mon May 25 14:37:14 1987 Richard M. Stallman (rms at prep)
874 * version.c: Version 2.2.
876 * breakpoint.c (do_breakpoint_commands):
877 Advance breakpoint_commands before executing the command,
878 in case command is `cont' and it hits another bpt with commands.
880 Sun May 24 20:45:04 1987 Richard M. Stallman (rms at prep)
882 * value.h: Declare `contents' long and cast its address to char *.
884 * expread.y (prefixify_expression): Don't call alloca among the decls.
886 * printcmd.c (print_variable_value): Flush unused local `space'.
888 * main.c (execute_command): Barf on "user" like other class names.
890 Fri May 22 01:34:37 1987 Richard M. Stallman (rms at prep)
892 * m68k-pinsn.c (fetch_arg): New arg position 'j', for movec.
893 (print_insn_arg): New arg syntax 'J', for movec.
894 * m68k-opcode.h: movec uses 'Jj'. Everything reformatted.
895 bf... and cas... insns were corrected.
897 * inflow.c (create_inferior): Fork and exec with given args and env.
898 Call close_exec_file.
899 (inferior_died): Record the fact that the inferior no longer exists.
900 Call reopen_exec_file.
902 * core.c (close_exec_file): New fn: Close the execchan if it's open.
903 (reopen_exec_file): New fn: Reopen execchan if not currently open.
905 * infrun.c (wait_for_inferior): Call inferior_died if it exits.
907 * infcmd.c (run_command): Don't fork and exec; call create_inferior.
909 * findvar.c (read_var_value): For reg var in a convertable reg,
910 fetch reg in its own virtual type and then cast to variable's type.
912 * symtab.h: Declare xmalloc to return char *.
914 * dbxread.c (read_dbx_symtab): Record static text syms as
915 misc-functions. But if an assembler symbol supplies the address
916 for a debugger symbol, don't record it as a misc-function.
918 * utils.c (query): Do clearerr (stdin) frequently in case of C-d.
920 * dbxread.c (process_one_symbol, define_symbol):
921 Pass the stab's DESC down to define_symbol.
922 DESC = 0 means GCC output: if type is "short", believe it.
924 * dbxread.c (read_enum_type): Don't allocate the type here;
925 take it as an argument. (Like read_struct_type.)
926 (read_type)): Before call to read_enum_type, allocate the type
927 or get the one already allocated.
929 * printcmd.c (print_frame_args): Print a comma before
930 every arg except the first.
932 Wed May 13 00:36:00 1987 Richard M. Stallman (rms at prep)
934 * m68k-pinsn.c (convert_{to,from}_68881):
935 Hand-assemble the fmoved and fmovex insns.
937 * dbxread.c (define_symbol): For case 'p', a parameter,
938 if specified type is short or char, change it to int.
939 This is for how PCC handles arguments.
940 Define new case 'P' that does what 'p' used to do.
941 Maybe GCC will use this.
943 Mon May 4 21:52:44 1987 Richard M. Stallman (rms at prep)
945 * main.c (main): If SET_STACK_LIMIT_HUGE, set the
946 run-time stack limit as high as it can go.
947 * m-sun3.h, m-vax.h: define SET_STACK_LIMIT_HUGE.
949 Sun May 3 08:46:23 1987 Richard Mlynarik (mly at prep)
951 * command.c, expread.y, findvar.c, infcmd.c, inflow.c, utils.c,
952 values.c, defs.h: Various ANSI C compatibility changes
953 (fouts@wilbur.arpa <8705010117.AA13112@wilbur.arpa>)
955 * core.c, inflow.c: Fix calls to supply_register.
956 * findvar.c (supply_register): Instead of register value as int,
957 pass address of buffer in core containing contents in raw form.
959 Sat Apr 18 17:09:42 1987 Richard Mlynarik (mly at prep)
961 * main.c (command_loop):
962 Do any cleanups made by a executing a command each time around.
964 * source.c (directory_command):
965 make_cleanup (free, dirname), not
966 make_cleanup (free_current_contents, &dirname)
967 (rlk <8704180416.AA29572@PARIS.MIT.EDU>)
969 Mon Apr 13 20:28:26 1987 Leonard H. Tower Jr. (tower at prep)
971 * gdb.1: fixed typo and italicization errors.
972 (<kgk%cs.brown.edu@RELAY.CS.NET> id AA16470;Sun,12 Apr 87 14:30:07 EST)
974 Sat Apr 11 15:41:01 1987 Richard Mlynarik (mly at prep)
976 * dbxread.c (read_dbx_symtab):
977 No name for symbol => "" not 0 (avoid referencing memory 0)
978 (tower <8704081854.AA00135@buit3.bu.edu>)
980 Mon Mar 30 22:24:07 1987 Leonard H. Tower Jr. (tower at prep)
982 * gdb.1: Unix style manual page pointing at internal gdb
983 documentation, and info sub-system in GNU Emacs.
985 Fri Mar 20 12:07:15 1987 Richard M. Stallman (rms at prep)
987 * COPYING: Clarifications about distribution fees and mixing.
988 * main.c (copying_info): Same changes.
990 Tue Mar 17 17:40:14 1987 Richard M. Stallman (rms at prep)
992 * values.c (unpack_field_as_long): Avoid >>= operator
993 since ISI compiler has a bug.
995 Sat Mar 7 12:19:35 1987 Richard M. Stallman (rms at prep)
999 * values.c (unpack-field-as-long): Tests for endianness were broken.
1000 * findvar.c (read_var_value):
1001 Now we initialize the union as an int and test it as a char.
1003 Sun Mar 1 16:16:20 1987 Richard M. Stallman (rms at prep)
1005 * main.c (define_command): Command class symbols
1006 must be cast to int.
1008 Mon Feb 23 02:47:44 1987 Richard M. Stallman (rms at prep)
1010 * source.c (list_command): Reword error messages.
1011 New message for case of first arg not just a line-number
1012 and no symtab specified by it.
1014 Sun Feb 22 21:15:19 1987 Richard M. Stallman (rms at prep)
1016 * dbxread.c (compare_misc_functions):
1017 Compare the addresses as unsigned numbers.
1019 Sun Feb 22 13:11:45 1987 Richard Mlynarik (mly at prep)
1021 * main.c (define_command, document_command):
1022 Stuff was being unnecessarily malloced (-and- not freed!)
1024 * main.c (execute_command):
1025 User-defined commands don't take args.
1026 Don't confuse empty user command with no command.
1027 Replace bogus `etext' test with a comparison against
1030 * main.c (define_command):
1031 If the command of the specified name is built-in, note that when
1032 asking whether to redefine it (this is suppressed for class_alias
1033 -- should it not be?)
1035 * main.c (define_command):
1036 If command was previously built-in, don't preserve its
1037 documentation (otherwise could get error later when trying to free
1038 the non-malloced text of built-in documentation strings)
1040 Tue Feb 17 16:23:57 1987 Richard Mlynarik (mly at prep)
1042 * main.c (echo_command): Don't die if not given any arg.
1043 * main.c (cd_command): Echo new cwd if interactive.
1045 Thu Feb 12 11:22:56 1987 Richard M. Stallman (rms at prep)
1047 * stack.c (initialize): "bt" now appears in help aliases.
1049 * Version 2.0 released.
1051 Wed Feb 11 17:45:45 1987 Richard M. Stallman (rms at prep)
1053 * m68k-opcode.h: Errors corrected in several instructions
1054 and reordering done for assembler's sake.
1056 * m-vax.h (POP_FRAME): End with call to set_current_frame.
1058 Tue Feb 10 15:06:07 1987 Richard M. Stallman (rms at prep)
1060 * infrun.c (wait_for_inferior): Set stop_print_frame to 1
1061 after checking breakpoint condition.
1063 * infcmd.c (run_stack_dummy): Save many flags.
1065 Thu Feb 5 07:12:20 1987 Richard Mlynarik (mly at prep)
1067 * source.c (directory_command):
1070 Mon Feb 2 23:40:32 1987 Richard M. Stallman (rms at prep)
1072 * infcmd.c (set_environment_command): Fix stupid error
1073 for case where no "=" appears in the string.
1075 Mon Jan 26 13:46:52 1987 Richard M. Stallman (rms at prep)
1077 * printcmd.c (print_frame_args): Round end-of-arg offset
1078 up rather than down to multiple of int.
1080 Fri Jan 23 15:11:50 1987 Richard M. Stallman (rms at prep)
1082 * source.c (directory_command): If dir is not added cause already
1083 present, print explanation.
1085 * infrun.c (proceed): Use read_pc (), not stop_pc,
1086 to get current pc to think about. stop_pc could have been
1087 clobbered by call_function.
1089 Fri Jan 23 15:00:55 1987 Richard Mlynarik (mly at prep)
1091 * source.c (directory_command):
1092 If dir is already in source_path, don't append another copy of it.
1094 Thu Jan 22 00:31:03 1987 Richard M. Stallman (rms at prep)
1098 * blockframe.c (get_pc_function_start):
1099 Understand misc functions.
1101 * core.c (core_file_command):
1102 Copy all register contents into the array `registers'
1103 Save a.out header of executable file in core_aouthdr.
1104 Print name of executable file that was running, if we know
1107 * core.c (exec_file_command):
1108 Save a.out header in exec_aouthdr and file's mtime
1111 * core.c (validate_files): Check that core file's a.out hdr
1112 matches exec file's.
1114 * New handling of registers:
1115 Now all registers are fetched once when the program stops or
1116 when a core file is selected. Their contents are kept in
1117 `registers', an array of bytes. This is done by
1118 `fetch_inferior_registers'. `read_register', etc., just look
1119 there. Writing a register works through
1120 `store_inferior_registers' which writes one or all registers
1121 from `registers' back to the inferior.
1123 A register now can have a "raw" data format and a "virtual"
1124 data format, which may require conversion or even be different sizes.
1125 The conversion can be different for different registers.
1126 For example, the 68000 cpu registers need no conversion
1127 and both raw and virtual size is 4, but the 68881 floating point
1128 registers have raw size 12 (for extended fmt) and virtual size 8
1129 (for double). Macros in the m- file such as REGISTER_BYTES,
1130 REGISTER_BYTE, REGISTER_{RAW,VIRTUAL}_SIZE, and
1131 REGISTER_CONVERT_TO_{RAW,VIRTUAL} control these things.
1133 `read_register' and `write_register' are usable only on registers
1134 which hold an int and need no conversion (raw fmt = virtual fmt).
1135 For other registers, `read_register_bytes' is used, or
1136 `read_relative_register_raw_bytes'.
1138 * m-sun3.h: Define the 68881 fp registers.
1139 Know how to recognize insns that save them.
1140 Make dummy frames save them.
1142 * core.c (read_register, write_registers): Functions deleted.
1143 * findvar.c (read_register, write_registers): New functions,
1144 not the same as the old ones of the same name.
1146 * findvar.c (supply_register): Function used by
1147 fetch_inferior_registers, etc., to install the register
1148 values fetched from the inferior.
1150 * findvar.c (read_register_bytes, write_register_bytes):
1151 Read spec'd number of bytes from the byte-array `registers'.
1153 * findvar.c (read_relative_register_raw_bytes):
1154 Replaces old function `read_relative_register'; accepts
1155 address of where to store the contents; # bytes stored is size
1156 of the specified register in raw format.
1158 * findvar.c (value_of_register, read_var_value):
1159 Convert register values and values of register variables
1160 from raw format to virtual format.
1162 * findvar.c (locate_var_value): Like `read_var_value' but
1163 returns value for variable's address.
1165 * value.h: Add new field VALUE_REGNO to each value. It holds
1166 register number to control virtual-to-raw conversion
1167 for assignments to the value.
1169 * valops.c (value_assign): Convert data from virtual to raw format
1170 if value came from a register variable.
1171 Use read_register_bytes and write_register_bytes.
1174 * infcmd.c (continue_command): Subtract 1 from arg
1175 before setting breakpoint's ignore-count.
1177 * infcmd.c (jump_command): Query if spec'd line is outside
1178 of the current function.
1180 * infcmd.c (finish_command): Now finish the selected frame,
1181 and no arg required.
1183 * infcmd.c (set_environment_command): Allow space to separate
1186 * infcmd.c (registers_info): Print both raw and virtual data
1187 format if they differ. Allow register name as arg.
1188 Ask for a Newline each 16 registers.
1190 * inflow.c (kill_inferior): call mark_breakpoints_out.
1191 * inflow.c ({fetch,store}_inferior_registers for Sun):
1192 Get the fp registers and store them in right places in
1194 * inflow.c ({read,write}_inferior_register): Deleted.
1196 * infrun.c (wait_for_inferior): Single-stepping is not considered
1197 to have hit a breakpoint unless the pc before the step matches the
1198 address of the breakpoint. Necessary on machines where
1199 breakpoints leave the pc incremented.
1201 If shell gets SIGSEGV, pass the signal silently to it.
1203 * m68k-pinsn.c, m68k-opcode.h:
1204 Add the 68881 instructions. New operand codes `F', `I', `s'
1205 and `k' are needed for them. New place codes `78tcik'.
1206 NEXTBYTE now skips a word but fetches just a byte.
1207 Explicit sign-extension removed from NEXTBYTE and NEXTWORD.
1208 NEXTSINGLE, NEXTDOUBLE, NEXTEXTEND and NEXTPACKED defined.
1209 Various changes to implement the new operand and place codes.
1210 print_index changed because displacement-size codes for
1211 word and long displacement were interchanged.
1213 * m68k-pinsn.c (convert_{from,to}_68881): Functions added
1214 to support REGISTER_CONVERT_TO_{RAW,VIRTUAL} on 68000.
1216 * main.c (main): Move around calls to setjmp.
1217 * main.c (define_command, document_command):
1218 Accept a from_tty argument instead of calling input_from_terminal_p.
1220 * printcmd.c (address_info): Print info on class and address
1221 of a specified symbol. For register symbols, gives name of register.
1223 * printcmd.c (print_command): Remember explicitly whether
1224 `make_cleanup' was called.
1226 * printcmd.c (print_frame_args): Know how arg-addresses vary with
1227 data type on big-endian machines.
1229 * source.c (directory_command): Detect `:' in arg and reject it.
1230 Free the old directory-path. Simplify things like `/.' in
1233 * source.c (openp): Simplify `./' in specified name.
1235 * source.c (find_source_lines): Compare source mtime against
1236 `exec_mtime' and warn if source is newer.
1238 * source.c (line_info): No arg means use last line listed
1239 or line following last one this command was used on.
1240 If from tty, clear out argument so Return is like `i li' without
1243 * stack.c (frame_info): Print addresses registers are saved at.
1245 * stack.c (return_command): When asking for confirmation, give
1246 name of function that will be made to return.
1248 * valops.c (call_function): If function type is
1249 pointer-to-function, dereference it to compute return type.
1250 If pointer-to-object, assume function returns int.
1251 If char, assume that the value's address is the function address
1252 (because it's a misc functon). If int, the value itself is the
1255 * dbxread.c (compare_symbols): Sort register symbols
1258 * eval.c (evaluate_subexp_for_address): New function like
1259 `evaluate_subexp' but returns a value for the address where
1260 the subexpression's value would be located.
1262 * eval.c (evaluate_subexp_for_sizeof): New function like
1263 `evaluate_subexp' but returns a value for the size of the subexp.
1265 * eval.c (evaluate_subexp_with_coercion): Like `evaluate_subexp'
1266 but coerces arrays to pointers (without taking the time to
1267 read the array contents).
1269 * eval.c (evaluate_subexp): Use the three new functions above
1270 when appropriate instead of calling self recursively.
1272 Wed Jan 14 17:00:03 1987 Richard Mlynarik (mly at prep)
1274 * core.c (core_file_command):
1275 Use correct file in calls to perror_with_name
1277 Mon Jan 12 03:34:35 1987 Richard Mlynarik (mly at prep)
1279 * breakpoint.c (map_breakpoint_numbers):
1280 Err if no args not supplied, otherwise would get mpv.
1283 Command-line arg "-d dir" adds dir to source-file directory
1286 Sun Jan 11 19:19:52 1987 Richard Mlynarik (mly at prep)
1288 * symmisc.c (free_all_symtabs):
1289 Don't call free on 0.
1291 * core.c (exec_file_command):
1292 Use correct name in call to perror_with_name.
1293 Record absolute pathname.
1294 Don't savestring an arg to concat.
1296 * dbxread.c (symbol_file_command):
1297 Record absolute name of pathname opened.
1298 Print a message if file doesn't have a symbol-table.
1299 Don't savestring an arg to concat.
1302 Add new arg filename_opened, which if non-zero will be set to a
1303 malloced string of the absolute name of the actual filename opened.
1305 * breakpoint.c (clear_command):
1306 If from_tty or cleared more than one breakpoint at location,
1307 print which bpts were deleted.
1309 * breakpoint.c (break_command_1, break_command, tbreak_command):
1310 If from_tty, mention any other breakpoints set at same location.
1312 * symtab.c (decode_line_1):
1313 If no symtabs, err mentioning `symbol-file' command rather than
1314 saying "function foo not defined"
1316 Fri Jan 9 01:25:19 1987 Richard Mlynarik (mly at prep)
1318 * main.c (set_prompt_command):
1319 Add support command "set-prompt"
1321 * printcmd.c (undisplay_command):
1322 Fix paren error to make "undisplay <number>" work.
1324 Wed Jan 7 12:06:09 1987 Richard Mlynarik (mly at prep)
1326 * main.c (print_gdb_version, gdb_version_info):
1327 Add command "info version" to report the version
1328 of gdb for use in bug reports.
1331 Ensure inferior_args always points to string starting with a space
1334 * printcmd.c: (clear_displays, undisplay_command):
1335 Fix bug in clear_displays which led to looping.
1336 Make undisplay_command call it instead of wrong-looking code which
1337 looked at (display->number == 0) instead of (display == 0) to
1338 determine if it were at the end of the chain.
1340 Mon Dec 15 20:57:06 1986 Richard M. Stallman (rms at prep)
1342 * utils.c (query): Don't ignore a second line if given a null line.
1344 * infrun.c (normal_stop): Print "bug in shell" message
1345 only for a segmentation fault.
1347 * main.c (main): Read init file from home directory if any,
1348 before init file from current directory.
1350 Thu Dec 4 09:05:35 1986 Richard M. Stallman (rms at prep)
1352 * source.c (select_source_symtab): Don't ref thru arg if null.
1354 * m68k.opcode.h: For trap instruction code, use type T.
1355 * m68k-pinsn.c (print_insn_arg): Recognize new arg-code T
1356 and print the trap vector properly.
1358 * m-sun[23].h (FRAME_FIND_SAVED_REGS): Recognize a movl REG,-(sp)
1359 as a way to save one register. Recognize clrw -(sp); movw -(sp)
1360 after saving regs as a way to save the PS register. Adjust the
1361 way to find the starting pc of a stack dummy frame for the fact
1362 that these frames now save the PS.
1364 * m-sun[23].h (POP_FRAME): Restore PS register if frame saved it.
1366 * m-sun[23].h (PUSH_DUMMY_FRAME): Push the old PS register.
1368 * m-sun[23].h (CALL_DUMMY, etc.): Fix erroneous binary code for
1369 the addl #nnn,sp instruction. Insert clrw -(sp); movw -(sp)
1370 to indicate that the PS has been saved.
1372 * infrun.c (wait_for_inferior): If inferior exits, call
1373 mark_breakpoints_out so it works to delete breakpoints afterward.
1375 * infrun.c (normal_stop): After popping a stack dummy frame,
1376 select the frame that we get to.
1378 * dbxread.c (process_one_symbol): Store new `depth' field
1379 in all context_stack elements created. For N_RBRAC, test
1380 that depth matches that in the context_stack; if not, error.
1382 * dbxread.c (all callers of error): Make all error messages
1383 start "Invalid symbol data: " and end with value of symnum.
1384 Also change a few aborts to errors.
1386 Mon Dec 1 20:20:37 1986 Richard M. Stallman (rms at prep)
1388 * version.c: Version 1.11.
1390 * breakpoint.c (condition_command): If no condition spec'd,
1391 print "breakpoint N now unconditional".
1393 * breakpoint.c (commands_command): Give different error messages
1394 for cases of args not containing a breakpoint number
1395 and args containing anything after the breakpoint number.
1397 * commands.c (lookup_command): Don't store a zero in *p
1398 if have an undefined subcommand that is not an error.
1400 * commands.c (lookup_command): For recursive call,
1401 pass subcommand list properly. Was passing the address
1402 of the word containing the list.
1404 * core.c ({core,exec}_file_name): If no arg, tell user
1407 * dbxread.c (define_symbol): Accept class code 'v'
1408 for static variable within a function.
1410 * dbxread.c (read_type): Now allow any plain number or
1411 pair of numbers in parens, with no code letter. This means
1412 define new type same as type with specified number, or define
1413 it as void if specified number's type is not yet mentioned.
1415 * m68k-pinsn.c (print_insn_arg): Case of general operand
1416 in byte insn that happened to be immediate used wrong arg-size.
1418 * printcmd.c (set_next_address): Set next_address from arg
1419 and also set value of `$_' from it.
1421 * printcmd.c (do_examine): Save address in last_examine_address
1422 and value fetched to examine in last_examine_value.
1424 * printcmd.c (x_command): Copy last_examine_{address,value}
1425 into values of `$_' and `$__'. Change `x' documentation string.
1427 * source.c (directory_command): Query when no args now says
1428 what new value it wants use for the path.
1430 * source.c (list_command): Don't die in cases like `list ,+30'.
1432 * source.c (line_info): Call `set_next_address' to make `x'
1433 display the text of the line. Change `info list' doc string.
1435 Sat Nov 29 07:59:29 1986 Richard M. Stallman (rms at prep)
1437 * printcmd.c (undisplay_command): If get no arg,
1438 rather than crashing, query and then delete undisplay everything.
1440 Fri Nov 28 15:43:52 1986 Richard M. Stallman (rms at prep)
1442 * dbxread.c (process_one_symbol): If N_LBRAC sym
1443 has a greater value that N_RBRAC, ignore the
1444 N_LBRAC value and give the block zero length.
1446 Tue Nov 25 03:10:12 1986 Richard M. Stallman (rms at prep)
1448 * dbxread.c (process_one_symbol): Ignore N_NSYMS symbols
1449 that appear in Ultrix.
1451 Sat Nov 22 22:49:06 1986 Richard M. Stallman (rms at prep)
1453 * version.c: version 1.10.
1455 * valprint.c (type_print*):
1456 SHOW < 0 now means abbreviate struct/union members
1457 or enum values with `...'. SHOW now decremented on
1458 each recursion in type_print_base. Several places
1459 that used to check !show now check show <= 0.
1461 * valprint.c (val_print): Pass -1 for SHOW to type_print
1462 when printing typename inside parens or braces.
1464 * printcmd.c (print_command): If no value specified to print,
1465 print the value of $.
1467 * expression.h, expread.y, eval.c, expprint.c:
1468 OP_MEMVAL renamed UNOP_MEMVAL
1469 and now allows any expression, not just an integer address.
1470 It now has same format as UNOP_CAST and works almost like it.
1471 Each place that referred to it has been rewritten
1472 starting with a copy of the code that handles UNOP_CAST.
1473 Doc for `print' command changed for this.
1475 * source.c (init_source_path):
1476 Free and zero out any line_charpos's saved in source symtabs.
1478 * breakpoint.c (condition_command):
1479 Parse the condition in the environment of the code where the
1480 breakpoint is set. This requires finding the breakpoint
1481 before parsing, so code is rearranged.
1483 * dbxread.c (dbx_alloc_type):
1484 New function given typenums returns the type for those typenums
1485 or allocates a new, empty type for those typenums and returns it.
1487 * symtab.c (smash_type_to_{pointer,function}):
1488 New functions modify an already-allocated type object
1489 to be a pointer to or function returning some given type.
1491 * dbxread.c (read_type): Uses dbx_alloc_type in many cases.
1492 Reading a pointer or function type now works by doing that,
1493 then reading the value type or type pointed to, then smashing
1494 it into the type already allocated. This makes some fwd refs win.
1495 Likewise for structs and unions.
1497 * dbxread.c (read_struct_type): Now receives the type object
1498 as args. Used to get typenums as args and look up the type
1501 * dbxread.c (symbol_file_command):
1502 At very end, clear out any type name that `char *' has received.
1504 Thu Nov 20 16:43:53 1986 Richard M. Stallman (rms at prep)
1506 * m-sun2.h, m-sun3.h (FIND_FRAME_SAVED_REGS):
1507 Was incrementing address even for regs not saved.
1509 Sun Nov 16 14:59:07 1986 Richard M. Stallman (rms at prep)
1511 * values.c (value_field): Was adding in byte offset
1512 before calling unpack_field_as_long, which itself
1513 adds in the offset. Now pass addr of start of structure.
1515 * infrun.c (normal_stop): Clean up inferior_pid conditionals:
1516 just return early if no inferior.
1518 Thu Nov 13 15:45:50 1986 Richard M. Stallman (rms at prep)
1520 * dbxread.c (struct header_file): add new field .instance
1521 to distinguish the various entries for one header file.
1523 * dbxread.c (process_one_symbol): Use the `value' of
1524 a N_BINCL or N_EXCL as the instance code for the header file.
1526 * dbxread.c (add_{new,old}_header_file):
1527 Accept an instance code as arg and treat it as if it were
1528 part of the file name for distinguishing and finding entries.
1530 * dbxread.c (add_new_header_file, read_type):
1531 Turn off the header_file_prev_index feature with #if 0.
1533 * values.c (unpack_field_as_long, modify_field):
1534 Run-time test to distinguish big and little endian machines
1535 and do shifting accordingly.
1537 Tue Nov 11 00:31:18 1986 Richard M. Stallman (rms at prep)
1539 * version.c: version 1.9.
1541 * breakpoint.c (delete_command):
1542 Don't query if 2nd arg is zero.
1544 * breakpoint.c (clear_breakpoints):
1545 Pass 2nd arg of zero to delete_command.
1547 Sat Nov 8 23:29:19 1986 Richard M. Stallman (rms at prep)
1549 * breakpoint.c (delete_command):
1550 Ask for confirmation when used with no arg (delete all).
1552 Fri Nov 7 11:23:09 1986 Richard M. Stallman (rms at prep)
1554 * infrun.c (start_inferior, wait_for_inferior):
1555 Eliminate `stop_in_shell' which was not being maintained right.
1556 New variable `running_in_shell' is set to 1 or 0 when the
1557 expected SIGTRAPs happen, and is simply examined at other times.
1559 * infrun.c (wait_for_inferior):
1560 If get SIGSEGV with running_in_shell == 1, it is sh
1561 allocating memory. Pass the signal silently to the shell.
1563 * core.c (exec_file_command):
1564 data_{start,end} are adjusted unconditionally when an
1565 exec file is opened, so closing counter-adjustment is
1566 now unconditional as well.
1568 * printcmd.c (x_command):
1569 Don't erase the expression from the calling args
1570 if cllaed noninteractively (used to be clobbering
1571 definitions of user-defined commands).
1573 * source.c (list_command): likewise.
1575 Wed Nov 5 09:41:00 1986 Richard M. Stallman (rms at prep)
1577 * Makefile: New variable OBSTACK1 that people can use
1578 to make obstack.o a dependency of gdb.
1580 * breakpoint.c (initialize):
1581 Define new aliases "br", "bre" and "brea" for "break".
1583 Sun Nov 2 21:16:06 1986 Richard Mlynarik (mly at prep)
1585 * symmisc.c (read_symsegs):
1586 Add an extra protection against invalid symbol-file
1589 Set KERNEL_U_ADDR and STACK_END_ADDR non-4.2-specifically
1591 Tue Oct 21 13:34:14 1986 Richard Mlynarik (mly at prep)
1593 * breakpoints.c (initialize):
1594 Delet reference to non-existent command "tenable" from doc of "enable"
1596 Tue Oct 14 19:58:27 1986 Richard Mlynarik (mly at prep)
1598 * printcmd.c (display_command, undisplay_command):
1599 * infcmd.c (run_command):
1605 eval: (auto-fill-mode 1)
1608 version-control: never