1 Fri Dec 28 00:13:42 1990 John Gilmore (gnu at cygint)
3 Further stabilization for the Intel 960.
5 * Makefile.dist: Parameterize the location of the "include"
6 and "bfd" directories, as well as "getopt". Add symfile.c.
7 Link in both dbxread and coffread. Fix up "make depend" to
8 rewack the locations of include, bfd, and getopt in its output.
10 * README: Document moving include files, improve some of
13 * coffread.c: Move common code out to symfile.c. Change
14 symbol_file_command style interface to use new *_symfile_init
15 and *_symfile_read interface under BFD. Use BFD internal
16 info to locate line table, symbols, etc.
18 * core.c (core_fetch_registers): Rename to get_core_registers
19 to avoid confusion with fetch_core_registers.
20 (register_addr): Move to coredep.c, which is already machine
21 dependent. This leaves core.c pretty clean of dependencies.
23 * coredep.c (register_addr): Accept this routine from core.c.
25 * dbxread.c: Move common code (with coffread.c, etc) into new
26 symfile.c. Each psymtab now contains a pointer to the
27 format-dependent function that knows how to read it in. Make
29 (dbx_psymtab_to_symtab): Renamed from psymtab_to_symtab_2.
30 (process_one_symbol): Add code to complain about a "compiler bug
31 we muzzle here", if we actually see it.
33 * eval.c (evaluate_subexp): Insert missing "break" statements
34 in code that determines whether a variable is an lvalue in
35 memory, register, or whatever. I detected this via a compiler
36 bug in which it *almost* mashed out the whole switch statement.
38 * gdb-int.texinfo: Add minor sections on configuring gdb for
39 release, and about the README file.
41 * infcmd.c (registers_info): Fix formatting somewhat. Still
42 not as pretty as before, but it handles byte swapping.
44 * remote-nindy.c: If data cache routines are interrupted while
45 waiting for the remote end, be sure that any uninitialized cache
46 blocks are on the free list, not on the valid list!
48 * symfile.h: Flesh out this header file with all the various
49 routines and variables that have been merged in from dbxread.c
50 coffread.c, and symtab.c to symfile.c.
52 * symfile.c: New file, containing code common to dbxread.c,
53 coffread.c, and some code from symtab.c. All generic code for
54 reading symbol files should be in here now.
55 (unrecord_misc_function): Remove unused function.
57 * symtab.h: Remove file-reading things to symfile.h.
59 * symtab.c: Remove file-reading things to symfile.c.
61 * tm-i960.h: Fix FRAME_CHAIN types; define PRINT_RANDOM_SIGNAL
62 to decode i960 fault types.
64 * target.h, remote.c, remote-eb.c, remote-vx.c, remote-nindy.c,
65 target.c: Change type of the "resume" function from int to void,
66 since its result was never used.
68 Sat Dec 22 02:51:40 1990 John Gilmore (gnu at cygint)
70 * main.c: Replace "stupid" with "caution"; you now "set caution
73 * printcmd.c (print_scalar_formatted): Fix typo in 'g' format
75 * infcmd.c (do_registers_info): Call val_print to deal with the
76 byte order of the registers being printed. FIXME, this makes
77 the formatting of the output uglier.
79 * infcmd.c (wait_for_inferior): If PRINT_RANDOM_SIGNAL is
80 defined, call it for signals the debugger doesn't itself use.
81 The i960 uses this for more detailed fault information.
83 * remote.c (remote_open): If arg is null, print help rather than
86 * sparc-xdep.c (register_valid): Avoid declaring size, since
87 various modules will think of various sizes depending on the
88 architecture of their tm-file. FIXME, we need protection against
89 actually entering one of those modules, which would clobber
90 storage if not for the target architecture compiled into gdb.
92 * stack.c (up_command, down_command): Always print the frame
94 (up_silently_command, down_silently_command): New commands
97 * i960-pinsn.c (reg), i960-tdep.c: Lint.
99 * i960-tdep.c (i960_frame_chain_valid): Lookup_symbol now takes
100 more parameters than it used to.
102 * findvar.c (registers): Increase slop to 256 bytes, which should
103 protect us against even most RISC machines with large register
105 (locate_var_value): Move declaration inside related ifdef.
107 * remote-nindy.c (): Use TIOCSETN rather than TIOCSETP
108 throughout, to avoid throwing away buffered input from the board.
109 (nindy_wait): Supply_register takes addr_of_value, not value.
110 (i960_print_fault): Renamed from i80960_fault.
111 (nindy_fetch_registers): Avoid have_regs stuff, just get them.
112 (nindy_store_registers): Avoid regs_changed stuff, just stuff
114 (nindy_create_inferior): Don't bother to write PC_REGNUM since
115 we can set the PC in the call to proceed(). Unpush nindy_ops
116 before pushing it on top, to avoid message to user. Eliminate
117 commentary from Unix machines that just misleads here.
118 (reset_command): Fix error message to suggest target command.
120 Wed Dec 19 11:03:56 1990 John Gilmore (gnu at cygint)
122 Release 3.92.5 as frozen.
124 Stabilize the merged release...with help from lint, Saber C,
127 Everywhere: Add include files needed to declare return types
130 * gdb.texinfo: Roland Pesch is documenting gdb, glory be!
132 * breakpoint.h: Add undeclared breakpoint functions, and some
133 functions for display handling since I couldn't think of a better
136 * breakpoint.c (insert_breakpoints): Make code for disabling
137 shared library bkpts more likely to work. It's used when we
138 rerun a program and stop before the shared library has been
140 (breakpoint_cond_eval, bpstat_stop_status): Pass arg as int,
141 cast from pointer, so it squeezes through catch_errors.
142 (bpstat_stop_status): Fix logic broken some time ago. We now
143 always create a bpstat if the stop address matches a breakpoint,
144 even if we don't stop there -- just like the old code used to do
145 before I got my fingers into it (sigh).
146 (breakpoint_1): Print "ignore count" after "stop only if"
147 condition, since that's how it actually works.
148 (mention): Handle watchpoints as well as breakpoints.
149 (watch_command): use set_raw_breakpoint and mention to do most
150 of the work (and initialize all the fields!). Only pass one
151 arg to parse_c_expression, since that's all it takes.
153 * command.c (not_just_help_class_command): Rename arg to args
154 since we ignore "unused argument" warnings on vars named "args".
155 inflow.c (child_terminal_info): ditto.
156 infptrace.c (kill_inferior): ditto
157 main.c (catch_errors, version_info, quit_command, pwd_command,
158 source_command, dump_me_command, editing_info,
159 set_history_size_command, set_history, show_history,
161 stack.c (locals_info): ditto
162 target.c (target_files_info): ditto
163 valprint.c (set_input_radix, set_output_radix): ditto
165 * core.c: Remove old variables for handling core and exec file
166 sections (data_start, data_end, stack_start, stack_end,
167 reg_stack_start, reg_stack_end, reg_stack_offset, text_start,
168 text_end, exec_data_start, exec_data_end, text_offset,
169 exec_data_offset, data_offset, stack_offset). They're
170 superseded the more general build_section_table and
172 (get_exec_file): Mention the `file' command.
173 (read_memory_check): Rename to memory_error, and only call it
174 in the case of an actual error.
175 (read_memory, write_memory): call memory_error.
176 (core_fetch_registers): Register section name is ".reg".
178 coredep.c: Remove a bunch of crud now that all this file does
179 is pull the registers out of a core file.
180 (fetch_core_registers): Rewrite to actually work, I hope.
182 dbxread.c: Use a.out.gnu.h, not system a.out, now.
183 Replace index() with strchr(). Remove all the pre-BFD macro
184 definitions for accessing the symbol file.
185 (struct dbx_symfile_info): Encapsulate the information that
186 dbx_symfile_init needs to pass to dbx_symfile_read in this
189 (dbx_new_init, dbx_symfile_init, dbx_symfile_read,
190 dbx_symfile_discard): Rearrange symbol file reading to divide
191 the format-specific part from the format-independent part,
192 leaving the format-independent part such as file name expansion
193 and opening in symtab.c. This replaces
194 partial_symbol_file_open and partial_symbol_file_read.
195 Symbol_file_read, add_file, add_file_target_command,
196 add_file_addr_command move to symtab.c. Pass an explicit
197 "mainline" flag for when reading the main symbol table, rather
198 than relying on the offset address to be zero or nonzero.
200 (dbx_symfile_read): Don't allow void *'s to be printed as
202 (SWAP_SYMBOL): Use bfd routines to byte-swap the symbols.
203 (ADD_PSYMBOL_TO_LIST): Make the "function call rather than
204 macro" debug version really work.
205 (read_dbx_symtab): Remove unref'd parameter inclink.
206 Avoid swapping N_SLINE symbols, for speed.
207 Merge N_TEXT!N_EXT case with the other external symbol
208 definitions' case. Add comments.
209 (start_psymtab): Allocate the symfile name in the psymtab on
210 the psymbol_obstack, rather than using the caller's storage.
211 (end_psymtab): Only allocate a dependencies list if there are
213 (psymtab_to_symtab_2): Use BFD when reopening file to read
214 its symbols for real.
215 (read_struct_type): Add FIXME comments where it needs work
217 (read_huge_number): Add FIXME about overflows.
218 (read_range_type): Add FIXME about comparing a long to 1<<32.
220 * coffread.c: Minor changes to move things closer to the new
221 regime with symtab.c and dbxread.c Major work is still needed
224 * exec.c (exec_file_command): Remove old variables (see core.c
226 (xfer_memory): If memory transfer is right at the end of a
229 * findvar.c (get_saved_register): If value is in a real
230 register, LVAL is lval_register, not lval_memory.
232 frame.h: Declare print_sel_frame and record_selected_frame.
234 gdb-int.texinfo: New file, for GDB internals documentation.
235 Very simple, unformatted doc of cleanups is there for now.
237 gdbcore.h: Remove obsolete variables that described a.out
238 section addresses and offsets. (See core.c above.)
239 Declare fetch_core_registers and registers_fetched.
241 getopt.c: Declare char *alloca(); even on SPARC.
243 infcmd.c (run_command): Call target_kill rather than
245 (step_command, next_command, stepi_command, nexti_command):
246 Declare from_tty parameter even though we don't use it.
247 (run_stack_dummy): argument BUFFER is a char array, not
248 a pointer to REGISTER_TYPE.
249 (finish_command): using_struct_return needed a value *,
250 not a struct symbol *.
252 * infptrace.c (child_xfer_memory): To avoid dependency on
253 where sections are in memory, try PT_WRITE_D and if that fails,
254 try PT_WRITE_I. Most Unixes don't care which you use.
256 * infrun.c (step_resume_break_shadow): Change to array to
257 match other breakpoint shadow storage.
258 (clear_proceed_status): Pass address of bpstat to
259 bpstat_clear, not the bpstat itself.
260 (child_create_inferior): FIXME comment about if the child
262 (start_inferior): Remove old function.
263 (child_open): Use target_kill rather than kill_inferior.
264 (wait_for_inferior): Ditto.
265 (insert_step_breakpoint, remote_step_breakpoint): Use
266 new step_resume_break_shadow.
268 * inftarg.c (child_wait): If all child processes die,
269 pretend that the one being waited for exited with signal 42.
271 * main.c (command_line_input): When scanning for comments,
272 don't coredump on unclosed quotes.
273 (quit_command): Use target_kill rther than kill_inferior.
274 (_initialize_main): Rename class_user from "user" to
277 * printcmd.c (print_command_1): Initialize "fmt" if no format
278 is specified by the user.
279 (print_frame_args): Only add to args_printed if we are
280 actually fetching args from the stack (avoiding undefined
282 (_initialize_printcmd): Remove bogus \{ from string.
284 * remote-eb.c (eb_open): Avoid coredump on no argument.
286 * remote-nindy.c: Bring out of Intel environment into new
287 target environment. Remove all conditional compilation on
288 I80960. Massive hacking throughout.
289 (nindy_xfer_inferior_memory): New routine stolen from
291 (nindy_create_inferior): New routine pieced together, probably
292 not quite working yet.
293 (nindy_ops): New target_ops struct for nindy.
295 * remote-vx.c: Use write_memory rather than target_write_memory
296 to get error checking.
297 (vx_add_file_command, vx_open): Use symbol_file_add rather than
299 (vx_create_inferior): Use target_terminal_ours...
301 * signame.c (_initialize_signame): Always initialize, since
302 we need the table for things other than psignal.
304 * solib.c (solib_add): Use symbol_file_add, not add_file.
305 (solib_address): Return boolean result rather than struct
306 pointer which nobody else knows the type of.
308 * sparc-tdep.c, valops.c: Use write_memory rather than
309 target_write_memory, to get error checking.
311 * stack.c (locals_info, catch_info, args_info,
312 get_selected_block, frame_command, up_command): Use
313 target_has_stack, rather than have_inferior_p or
316 * sun3-xdep.c (fetch_core_registers): Rewrite for new BFD regime.
318 * symfile.h: New file, defining the interface between the
319 generic and object-file-specific symbol reading code.
321 * symtab.c: Move generic symbol-reading interface to symtab.c,
322 from dbxread.c, coffread.c, mipsread.c, etc. Add symtab_fns
323 table to map BFD targets to symbol-reading modules in GDB.
324 Change index to strchr.
325 (lookup_struct_elt_type): Use error() rather than hand-made
327 (lookup_partial_symbol): Speedup slightly when length == 0.
328 (symbol_file_add): New function.
329 (symbol_file_command): Call it.
330 (symfile_open, symfile_init): New function.
331 (add_file_target_command, add_file_addr_command): moved from
334 * target.c (target_command): use target_kill.
336 * target.h (target_files_info): Don't declare, never called
339 * tm-sun2.h, tm-sun3.h (STACK_END_ADDR): Use system include
340 files to determine stack end address.
342 * valarith.c (value_x_binop, value_x_unop): Change error message
343 to be more useful. Pass proper argument to value_struct_elt.
345 * valops.c (value_assign): FIXME comment that long long
346 bitfields will break here.
348 * Makefile.dist: Add symfile.h, remote-nindy.c, remote-eb.c.
349 Update `make saber_gdb' to work better.
351 * TODO: A woman's work is never done.
353 * cplus-dem.c, environ.c, inferior.h, infrun.c, inftarg.c,
354 main.c, obstack.c, printcmd.c, remote-eb.c, remote-nindy.c,
355 remote-vx.c, remote.c, solib.c, source.c, sparc-pinsn.c,
356 sparc-tdep.c, sparc-xdep.c, symmisc.c, symtab.c, symtab.h
357 target.c, terminal.h, tm-sparc.h, tm-sunos.h, utils.c,
358 valops.c, valprint.c, exec.c: Lint.
361 Wed Dec 12 23:44:15 1990 John Gilmore (gnu at cygnus.com)
363 Continuing Intel 960 port merge of GDB.
365 * Makefile.dist: Merge i960 "nindy-share" files. Rename
366 malloc.h to gmalloc.h to avoid name conflicts in /usr/include.
367 Don't ship gdb.dvi in tar file. Link gdb with init.o, not init.c.
368 Wack over "make depend" so it handles files in subdirectories
369 vx-share, nindy-share, bfd, and in the current directory.
371 * blockframe.c (get_prev_frame_info): Remove fatal error
372 if stack not defined.
374 * core.c (core_open, core_detach): New functions that handle
375 the old "core-file" command as "target core" and "detach" instead.
376 (core_file_command): Call them.
377 (core_xfer_memory): Use common routine xfer_memory.
379 * dbxread.c: Include a.out.gnu.h, not system a.out.h.
380 dbxread now uses bfd for everything but symbol reading itself.
381 BFD internals are used to drag out the relevant file offsets.
382 (partial_symbol_file_open): Change args all around for BFD.
384 * symtab.c: Rename "value" to "val" everywhere, so we can
386 (symbol_file_command): New command, moved from dbxread.c
387 and coffread.c. It uses BFD to read the file, then vectors
388 based on its type, to dbx or coff symbol readers.
389 * symtab.h: Extern a few vars for symbol_file_command.
391 * target.h: Breakpoint takes a char * save area, not a char **.
393 * valprint.c (val_print): When unpacking bitfields, offset
394 the address in gdb of the value, if it is declared with a shorter
395 type. Remove the last "runtime kludge test" of host byte order.
397 * utils.c: Remove old my_bfd_read routine.
399 * stack.c (frame_info): Use target_has_stack. Print program counter
400 register's actual name rather than "pc", since it's called the
401 "ip" (instruction pointer) on the i960 (sigh).
403 * target.c (target_command): Add command for selecting a target
404 type and calling its open routine. This is used for initiating
405 communication with a particular target, in a generic way.
407 * tm-i960.h: Update for modern gdb. Remove semicolons from
408 various macros. Handle reading struct return convention, and
409 error-out attempts to return structs with the "return" command.
410 Be sure gdb doesn't think we know how to call functions in the
413 * i960-tdep.c: Rename FRAME_CHAIN_VALID and FRAME_FIND_SAVED_REGS
414 to i960_xxx in lower case.
415 (arg_address): Circumvent errors due to LOC_ARG_BLOCK
416 not being defined yet.
418 * remote.c (remote_open): Call start_remote to initialize
419 wait_for_inferior during open.
420 (remote_xfer_inferior_memory): Return length written rather
423 * remote-vx.c (target_command -> vx_open): Use new generic
425 * remote-eb.c, inftarg.c, exec.c: ditto.
427 * infrun.c: Fix comments.
428 (attach_program -> child_open): Use new generic target command.
429 (wait_for_inferior): Clear saved register values before target_wait,
430 so target_wait can set some of them if convenient.
432 * infptrace.c (fetch_inferior_registers, store_inferior_registers):
433 Return success indicator, not void.
434 (child_xfer_memory): Avoid fetching initial word if we'll
437 * infcmd.c (attach_command): Use new generic target open routine.
438 (_initialize_infcmd): Update doc on attach and detach commands.
439 (do_registers_info): Merge in a byte-order problem as a FIXME
442 * findvar.c (find_saved_register): Avoid problem in current frame.
443 (read_relative_register): Ditto.
444 (write_register): Convert byte order on the way out.
446 * exec.c (file_command): Add.
447 (add_to_section_table, exec_command): Use new bfd_map_over_sections.
448 (xfer_memory): Common function between core_xfer_memory and
450 (exec_xfer_memory): Use it.
452 * pn-opcode.h: Document that a "PN" is a Gould PowerNode.
454 * breakpoint.c, breakpoint.h, symtab.h, value.h, frame.h, utils.c,
455 valops.c, stack.c, target.c, sparc-xdep.c, source.c, printcmd.c,
456 infcmd.c, i960-pinsn.c, eval.c, defs.h: lint and gcc -Wall.
458 Sun Dec 2 16:45:06 1990 John Gilmore (gnu at cygnus.com)
460 Merge Intel 960 port of gdb, continuing...
462 * dbxread.c (partial_symbol_file_open, partial_symbol_file_read,
463 symbol_file_command): Pass from_tty arg to hush 'em up.
465 * coffread.c (symbol_file_command): Avoid output if from_tty != 1.
466 Add magic numbers for 960 COFF format.
468 Fri Nov 30 09:18:20 1990 John Gilmore (gnu at cygnus.com)
470 Merge Intel 960 port of gdb, from Intel "1.2" release.
472 CHANGE_LOG entries from their port, which was based on
475 Thu Sep 6 11:02:22 PDT 1990
476 Remove temp file if download is interrupted.
478 Wed Aug 1 09:08:33 PDT 1990
479 Now uses binary protocol to talk to NINDY.
480 Old hex protocol (NINDY 2.13 and older) supported with -O switch.
481 Times out after 5 seconds when trying to talk to NINDY.
483 Tue May 29 12:54:49 PDT 1990
484 Added variable baud rate (-b switch).
485 Source code reorganization.
487 Thu Apr 26 11:09:55 PDT 1990
488 More cleanup of batch mode; specifically, execute "-s", "-e", and
489 "-se" switches as soon as they are encountered on the invocation line.
491 Fri Apr 20 13:47:15 PDT 1990
494 Thu Apr 19 09:54:28 PDT 1990
497 Wed Apr 18 09:48:07 PDT 1990
498 After opening remote tty, wait for 1 second to go by without input
499 from it before trying to talk to NINDY (fixes problems with the
500 Heurikon HK80/V960E).
502 Mon Apr 4 16:33:05 PDT 1990
503 Some output was not being suppressed in 'batch' mode.
505 Thu Mar 22 15:31:11 PST 1990
506 Ask user if old symbol table should be deleted when new file is
509 Allow user to run a program downloaded before gdb960 was brought up.
511 Correct "exec-file" help message for i80960 context.
513 Correct bug in calculating user space address: could occasionally
514 corrupt user program.
516 Make sure to zero low-order bits in rip's because of bug in 960CA
517 A-step part: could cause operation faults when "next"ing across
520 Correct bug that made it impossible to get source line numbers for
521 code loaded at addresses higher than 0x7fffffff.
523 Wed Jan 10 12:43:22 PST 1990
524 Open remote tty for exclusive use.
526 Fri Jan 5 12:14:42 PST 1990
527 Correct disassembly (CA manual was right after all):
528 opcode for sysctl is 0x659
530 Mon Oct 23 12:03:04 PDT 1989
531 Use G960BASE and G960BIN environment variables to find 'sx' utility.
533 Mon Oct 16 14:15:09 PDT 1989
534 "sfr0"-"sfr31" should have been named "sf0"-"sf31"
536 Mon Oct 2 15:56:31 PDT 1989
538 Added 960CA disassembly support.
540 To simplify maintenance:
541 - eliminated use of symblic links on pinsn.c: use i960-pinsn.c
543 - eliminated opcode.h: incorporates tables into i960-pinsn.c
544 - moved 960-specific routines from i960-pinsn.c to i960-md.c
545 - made disassembly interface identical to that in gdmp960.
549 Wed Nov 28 21:32:48 1990 John Gilmore (gnu at cygint)
551 * target.h: Allow targets to stack. Add target_has_memory,
552 _registers, etc. Restructure memory access and "info files"
553 to walk the target stack.
554 * exec.c, core.c, inftarg.c, remote.c, remote-vx.c, remote-eb.c,
555 target.c: Change tables to match target.h.
556 * inflow.c (child_mourn_inferior): pop child_ops.
557 (generic_mourn_inferior): Use new has_stack flag.
558 * infptrace.c (child_xfer_memory): New memory regime.
559 * inftarg.c (child_files_info): New "info files" regime.
560 * remote-eb.c: New memory regime, new info files.
561 * remote-vx.c: New memory regime, new info files. Now use
562 separate targets for VxWorks attachment to machine, and
563 actually running a process under VxWorks, since one has
564 stack & execution & regs and the other doesn't.
565 * remote.c: New memory regime, new info files.
566 * sparc-xdep.c (fetch_core-registers): New memory regime.
567 * target.c: New routines and support for stacked targets,
568 new memory regime, new info files regime.
571 Generalize section handling for an arbitrary number of sections,
572 including use of the new BFD (binary file) library.
573 * gdbcore.h: Add struct section_table.
574 * exec.c (build_section_table): Iterate all sections and
575 record what gdb needs to know about them.
576 (exec_command): Use it.
577 (exec_xfer_memory): Use the table.
578 (exec_files_info): Print the table.
579 * core.c (core_file_command, core_xfer_memory, core_files_info):
581 * source.c (find_source_lines): Use bfd_get_mtime.
582 * dbxread.c: Quick changes to make it compile with new BFD.
583 * utils.c (error): Avoid using bfd_error in generic routines.
585 * core.c (core_fetch_registers): Get from the ".regs" section of
587 * sparc-xdep.c (fetch_core_registers): Use the .regs info.
589 * inferior.h (attach_flag): Export.
590 * infcmd.c (run_command): use new target_create_inferior.
591 * infrun.c (child_create_inferior): Don't return result.
592 * Makefile.dist (VERSION): 3.91.4.
594 Fri Nov 23 28:15:38 1990 John Gilmore (gnu at cygint)
596 * breakpoint.c (bpstat_num): Handle breakpoints which have
597 since been deleted, such as temporary breakpoints.
598 infcmd.c (program_info): ditto.
600 * core.c (core_file_command): Display the frame where the core
605 * remote-vx.c (target_command): Merge in target command from
606 targ-vx.c. A few other cleanups.
608 * TODO, Projects: Lots more stuff to do...
610 Fri Nov 23 18:15:38 1990 John Gilmore (gnu at cygint)
612 Massive changes to wall off the remote-debugging interface
613 behind a function vector. The port to handle VxWorks targets
614 is also part of this.
616 All files: Replace references to renamed functions,
617 remove references to remote_debugging, remove references to
618 have_include_file, have_core_file in favor of target_has_stack,
619 target_has_memory, etc.
621 * Modularize the breakpoint interface.
622 breakpoint.h (BREAKPOINT_MAX): New define sets max length of
623 a breakpoint instruction.
624 breakpoint.c: struct breakpoint's shadow_contents now sized as
626 (insert_breakpoints): Vector to target to install breakpoints.
627 (remove_breakpoints): Vector to target here too.
628 Remove REMOTE_SA_SPARC kludges and other remote_debugging.
629 sparc-tdep.c (single_step): Use new breakpoint interface for
630 the single-step breakpoints.
631 mem-break.c (memory_insert_breakpoint, memory_remove_breakpoint):
632 New file, contains routines to insert and remove breakpoints by
633 reading out the old contents and later replacing them. This is
634 how ptrace breakpoints work, and many remote systems as well.
636 * tm-vxworks68.h: New config file, overrides a few things for
637 Wind River's preferences.
639 * target.h: New file, for transfer vector used to talk to the
640 inferior (child, attached, core, exec, remote, etc). All accesses
641 to the thing being debugged should come through these vectors.
642 target.c: New file, routines to handle transfer vector.
643 (various files): Add transfer vectors XXX_ops for the various
644 targets and pseudo-targets (core files, etc) we support.
646 * breakpoint.c (bpstat_stop_status): Further explorations of
647 watchpoints and why things don't work all the time.
648 (bpstat_alloc): New fn to allocate a bpstat and chain it.
650 * config.gdb: Only add "source ${srcdir}/.gdbinit" to
651 the local gdbinit if it doesn't already have it.
653 * core.c (core_ops): add and install.
654 Allow core debugging without exec file.
656 * dbxread.c (free_and_init_header_files): Merge two fns.
657 (end_symtab): Free named symbol table when a new version comes in.
658 (read_dbx_symtab): Relocate all kinds of symbols with base
659 address. First step toward handling different text, data, bss
661 (add_file_addr_command): Renamed add_file_command.
662 (add_file_command): Vector to remote handler.
663 Add "load" as an alias for "add-file" command.
665 * defs.h: Allow "volatile" to be used in non-ANSI; use it for
666 non-returning functions.
668 * exec.c: Add exec_ops, and push it as a target when an exec
671 * infcmd.c (run_command): Pass executable file name and arg list
672 separately when starting an inferior. Permit "run" when no exec
673 file is specified, for VxWorks.
674 (detach_command): Move to child_detach in inftarg.c.
676 * inftarg.c: New file. Unix-child-specific routines, and the
679 * inferior.h (registers): Export "registers" as the way for
680 target dependent register handlers to find gdb's local copy of
681 the registers. Rename "stop_after_attach" to "stop_soon_quietly"
682 since it is now used by places that want wait_for_inferior to
683 handle the grunge but want to see every trap from the inferior.
685 * inflow.c (create_inferior): Pull out, and merge into infrun.c.
686 Eliminate remote_debugging hooks in terminal handling.
688 * infrun.c: Replace start_inferior with child_create_inferior.
689 Move all the hair of Unix shells and ptrace idiosyncracies into
690 child_create_inferior, so remote handlers don't have to deal.
691 Remove running_in_shell. Rename stop_after_attach to
692 stop_soon_quietly, and use it in a few other places where we want
693 to just call wait_for_inferior and get control back on the first
694 trap. trap_expected now never takes a value > 1.
695 (init_wait_for_inferior): Initialize static vars when a new
698 main.c (gdbinit): Add new hook for .gdbinit file name, let
699 it be overridden by config files as GDBINIT_FILENAME.
700 (DEFAULT_PROMPT): Add new hook for overriding (gdb) prompt.
701 Both of these are used for VxWorks gdb.
703 mcheck.c: rename include file "gmalloc.c" to avoid problems
704 with system include file "malloc.c".
706 param-no-tm.h: New include file, same as param.h but does not
707 include the default "tm.h" file. This is used in files where
708 the target is known, e.g. remote-eb.c or sparc-xdep.c.
710 param.h: Now just a shell that includes tm.h and param-no-tm.h.
712 remote-vx.c: New file, VxWorks remote debugging support. Uses
713 RPC routines that are shared with the target system, in directory
716 remote.c: Vectorize remote interface.
718 source.c: Globalize source_path, and make an alias "l" for "list"
719 since we now have the "load" command.
721 sparc-xdep.c: Use new param-no-tm.h.
723 symmisc.c (free_named_symtab): Add new function from Wind River.
724 However, ifdef it out for now while we think about what it should
727 tm-sun3.h, xm-sparc.h, xm-sun3.h, xm-symmetry.h: Move
729 the xm- file, and change its name to CHILD_PREPARE_TO_STORE, since
730 non-Unix-children handle this with their own code in the target
733 Makefile.dist: Roll version to 3.92.3. Add vx-share stuff to
734 source and target lists. Add vx-share to default list of include
735 directories. Add new files to src and target lists: mem-break,
736 target, inftarg, remote-eb, remote-vx, targ-vx. Be sure the
737 ${srcdir} versions of munch and createtags are used.
739 * valops.c (find_function_addr): Split out of call_function.
740 (call_function_by_hand): Rename call_function; this function
741 calls functions in the target by laboriously patching the target
742 word-by-word with the right stack, args, regs, etc.
745 Mon Nov 5 17:29:10 1990 John Gilmore (gnu at cygint)
747 Handle AMD 29000 a bit better.
749 * remote-eb.c (readchar): Mask received char log to make it readable.
750 (remote_start): Pass arguments down to executing program.
751 Make startaddr unsigned.
752 infrun.c (start_inferior): Accept args, pass them to
754 infcmd.c (run_command): Pass args down to start_inferior.
756 * tconfig/am29k-aout, tconfig/am29k-coff: New files specifying
757 the target object file format.
758 tm-29k.h: Pay heed to COFF_ENCAPSULATE.
760 * am29k-pinsn.c (print_insn): Print 0x on hex numbers in disassembly.
761 am29k-tdep.c (examine_prologue): Better checking of function prefixes.
763 Sun Oct 7 18:20:45 1990 John Gilmore (gnu at cygint)
765 * Makefile.dist (VERSION): Roll version to 3.91.9 and freeze.
766 * TODO: We did a few things, we have more to do though.
768 * xm-sparc.h (CLEAR_DEFERRED_STORES): Define.
769 * inflow.c (inferior_died): Clear deferred stores.
771 * Debug problems with dummy frames and calls to the inferior.
772 * tm-sparc.h (PUSH_DUMMY_FRAME, POP_FRAME): Move to sparc-tdep.c.
773 * sparc-tdep.c (do_restore_insn): Simplify.
774 (sparc_frame_find_saved_regs): Simplify and fix what we find.
775 (sparc_push_dummy_frame): Simplify and fix what we push.
776 (sparc_pop_frame): Slightly more hair here, deciding whether
777 we are restoring a saved PC or returning to a return address in %i7.
778 * sparc-xdep.c (read_inferior_registers): Debug if valid reg is read.
780 * utils.c (xmalloc, xrealloc): Return type depends on __STDC__.
781 * symtab.h (xmalloc): ditto, for obstack_chunk_alloc.
782 * obstack.h (chunkfun): ditto.
783 * defs.h (xmalloc, xrealloc): ditto
785 * utils.c (quit): Grab the terminal from the child if necessary.
787 * inflow.c (term_status_command): Rename to term_info, change
790 * sparc-pinsn.c (print_insn): Disassembly prefers real instructions.
791 (is_delayed_branch): Speed up.
792 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
793 Still missing some float ops, and needs testing.
795 * Support for input and output radixes other than base 10
796 * defs.h (input_radix, output_radix): Declare.
797 * expread.y (yyparse, parse_number): Handle changes of input
798 radix, and ambiguous names-or-numbers in radixes >10.
799 * printcmd.c (print_scalar_formatted): Print formatted hex
800 numbers in varying column widths.
801 * valprint.c (val_print): Use output_format to print scalar ints.
802 (set_input_radix, set_output_radix, set_radix): Create.
803 (set_output_radix): Set output_format from output_radix.
804 (_initialize_valprint): add `set radix' but leave the others off.
806 * main.c (execute_command): Let stupid questions be turned off.
807 (_initialize_main): Handle "set stupidity", etc.
809 * main.c, inflow.c, inferior.h, frame.h, command.c, defs.h,
810 sparc-pinsn.c, sparc-xdep.c, value.h, valops.c, values.c: Lint.
812 Tue Oct 2 11:20:02 1990 John Gilmore (gnu at cygint)
814 * TODO, Makefile.dist, ChangeLog: Freeze for 3.91.8 release.
815 bfd stuff is still screwed up, but with some manual work, it
818 * breakpoint.c (bpstat_do_actions): Start over if a command
819 proceeds the inferior, since the inferior will have stopped and
820 will need to have its new stop-actions taken care of.
822 * dbxread.c (read_struct_type): Expression gives Sun3 4.0.3
823 compiler fits, simplify it.
825 * gdb.texinfo (directory command): Doc new dir command.
826 source.c (directory_command): "dir" now puts things on the front
827 of the path, moves dups up front, and handles multiple names
828 on the command line, inserting each one in order. It also
829 blows away cached line and full_filename info.
831 * stack.c (backtrace_command): Skip "more stack frames follow"
834 * Change #ifndef HAVE_VPRINTF to #define MISSING_VPRINTF in
835 xm-convex.h, xm-hp300bsd.h, xm-isi.h, xm-merlin.h, xm-news.h,
836 xm-np1.h, xm-pn.h, xm-pyr.h, xm-symmetry.h, xm-umax.h, xm-vax.h.
837 The only odd one was Gould NP1, which had defined vprintf to
840 * Merge Ted Goldstein <tedg@Eng.sun.com>'s changes for epoch.
841 printcmd.c (print_command_1): Pass 'inspect' flag down as a global
842 variable, inspect_it.
843 valprint.c (print_string, val_print): Use the global inspect_it
844 to indicate whether to print in Epoch style or normal style.
846 Mon Oct 1 23:55:26 1990 John Gilmore (gnu at cygint)
848 * printcmd.c (call_command): add an alias for the "print" command
849 which runs expressions and doesn't print the result if void.
850 (print_command_1): implement it.
852 * command.c: Remove #if 0'd code. Initialize all the fields
853 in add_cmd (). Rename do_nothing_command to
854 not_just_help_class_command, and make it externally visible.
855 command.h: add user_commands to struct.
856 * main.c (define_command): Don't overload c->function with a char
857 string as well as a function pointer.
859 * eval.c (evaluate_subexp): Reinstall tiemann changes to
860 calling convention of value_struct_elt () that got dropped in
863 * tm-sparc.h (FRAME_FIND_SAVED_REGS): move to sparc-xdep.c.
864 sparc-tdep.c (sparc_frame_find_saved_regs): ditto.
866 * tm-sparc.h (POP_FRAME): replace some constants with defines.
868 * sparc-xdep.c (store_inferior_registers): defer stores to regs
869 until a good time (e.g. when we are about to run the child),
871 * infrun.c (proceed): handle DO_DEFERRED_STORES.
872 * tm-sparc.h: define DO_DEFERRED_STORES.
874 * sparc-xdep.c (store_inferior_registers): when storing float
875 registers, don't store stack regs too. When storing the SP,
876 however, DO store the stack regs too. This fixes a bug in which
877 the dummy frame is not recognized when a call_function finishes,
878 because its frame pointer (in the stack regs) was never
880 (read_inferior_registers): Mark WIM and TBR and FPS and CPS valid
881 even though we don't know how to read them from an inferior.
882 valops.c (call_function): Comment about storing SP.
884 * infrun.c (save_inferior_status): Save away the original bpstat
885 chain so it can be restored later. Install the copied version for
886 use by whoever saved the status. It will be blow away by
887 restore_inferior_status, and the original chain restored. This is
888 important for people who have pointers into the original.
890 * breakpoint.c, command.h, copying.awk, dbxread.c, defs.h,
891 findvar.c, frame.h, obstack.h, obstack.c, inflow.c, value.h,
892 main.c, printcmd.c, sparc-tdep.c, symtab.c, valprint.c: lint
895 Fri Sep 28 20:32:46 1990 John Gilmore (gnu at cygnus.com)
897 * Makefile.dist: Roll version to 3.91.8. Add bfd.h and bfdconfig.h
898 temporarily to the makefile. Add am29k-opcode.h and WHATS.NEW.
899 Add stuff.c and kdb-start.c to the OTHERS list for tar files.
901 Fri Sep 28 19:12:12 1990 John Gilmore (gnu at cygint)
903 * Merge Mike Tiemann's multiple inheritance changes from Sun.
904 Store the baseclasses in a type struct starting from array element
905 0 rather than from the unusual array element 1.
907 dbxread.c: the above.
908 (virtual_context): Add
909 Read new debug information about which virtual function table
910 a virtual function is from, and store it in fn_field.fcontext.
912 symtab.h: Add fcontextt. Fix baseclass indices. Typo in
913 TYPE_FN_FIELD_STATIC_P.
916 valops.c: the above. Handle pointer casts of object *'s.
917 (search_struct_method): Add.
918 (value_struct_elt): First arg is now a pointer to a value, and is
921 valprint.c: the above.
922 values.c (value_virtual_fn_field): Add type arg. Handle
923 offsetting to the proper object when calling virtual fns.
925 (baseclass_addr): Add valuep arg.
927 * README: Document the current state of BFD config (missing).
928 * TODO, ChangeLog, Makefile.dist: Roll version.
929 * WHATS.NEW: Add summary of changes since 3.5.
931 Thu Sep 27 16:23:12 1990 John Gilmore (gnu at cygint)
933 * dbxread.c (read_struct_type): Clear bit vectors whenever
935 symtab.c (B_CLRALL): define.
937 * tm-sparc.h (STORE_RETURN_VALUE): Avoid clobbering types by
938 using == rather than =. Huh... This fixes the dreaded problem
939 wherein builtin_type_int becomes TYPE_CODE_FLT.
941 * core.c (info_files): Show the inferior pid.
943 * config.gdb: Avoid putting "dir" command into .gdbinit. GDB
944 already knows how to look in the source directory.
946 * Remove psymtab hair from many places. Remove duplicated code
947 for searching symbol tables. Hide psymtabs from most places.
948 Make it fast to get from a psymtab to its symtab.
950 blockframe.c (blockvector_for_pc): Remove psymtab hair.
951 coffread.c (psymtab_to_symtab): Rename to psymtab_to_symtab2.
952 mipsread.c (psymtab_to_symtab): Rename to psymtab_to_symtab2.
953 dbxread.c: export psymtab_to_symtab, make it work if called N times.
954 (psymtab_to_symtab): Rename to psymtab_to_symtab2. Initialize
955 new symtab completely. New psymtabs get symtab pointer
956 initialized to zero. Remove MI warning printf.
957 symtab.h: Comments. Add psymtab to symtab pointer.
958 (PSYMTAB_TO_SYMTAB): New macro.
959 symtab.c: use PSYMTAB_TO_SYMTAB. Add psymtab_to_symtab and export it.
960 source.c: use PSYMTAB_TO_SYMTAB. Remove symtab version and
962 stack.c (backtrace_command): Avoid pre-pass to read symbols, if
964 (print_frame_info): Avoid special-casing symbols that have not yet
967 * source.c (open_source_file): Quick path if we have already
968 located the source file by its full name.
970 * symtab.c (lookup_symbol): Use find_pc_symtab rather than
971 find_pc_psymtab. When a name is found in the misc function
972 vector, search the symbol table for its mangled name, not the
973 name that the user typed.
975 * bfd.h: Fix missing comment terminators, make #endifs match.
977 * valarith.c (value_less): Handle unsigned int comparisons.
978 Add FIXME about pointer compares, which assume host and target
979 pointers are the same.
981 * command.c (do_nothing_command): lint
982 dbxread.c: lint. Remove sort_syms. Document C++ visibility info,
983 fix comments on debug symbol format for visibility. Actually set
984 visibility of symbols.
985 main.c (echo_command): lint; use <readline/history.h>.
986 tm-sparc.h (FRAME_FIND_SAVED_REGS): lint
987 obstack.h (_obstack_blank): Rearrange pointer math to avoid
988 pointing past end of allocated memory; saber complains.
989 obstack.h: Declare the external functions that we use.
990 valarith.h: use <string.h>
991 solib.c (solib_add): lint.
993 Fri Sep 21 17:05:19 1990 John Gilmore (gnu at cygint)
995 * main.c (initialize_main): Default info_verbose to off, now that
996 symbol reading is fast.
997 (quit_command): Avoid clobbering exec_bfd while quitting.
999 * Initial BFD (binary file diddling library) merger:
1000 coffread.c: Change AOUTHDR to struct exe_hdr.
1002 core.c: initialize initialized data at compile time.
1003 (core_file_command): Move from coredep.c, convert to bfd.
1004 (xfer_core_file): Convert to bfd.
1005 exec.c (exec_file_command): use bfd routines.
1007 mips-tdep.c: Remove exec_file_command and friends.
1010 * coredep.c: (fetch_core_registers) Convert core_file_command to
1011 fetch_core_registers.
1012 mips-xdep.c, sparc-xdep.c, sun3-xdep.c: ditto.
1014 * utils.c: (error): Bogus crap, FIXME, to print bfd errors.
1015 (my_bfd_read): More bogosity, which I don't think we call.
1016 (program_name): Remove this atrocity asap!
1018 Wed Sep 19 13:36:41 1990 John Gilmore (gnu at cygint)
1021 values.c: allocate_repeat_value was not clearing the
1022 optimized_out field.
1023 (value_static_field): minor stylistic fix (wrong macro was used).
1024 valops.c (value_struct_elt_for_address): didn't work for C++
1027 * signame.c (_initialize_signame): Initialize signal names once.
1029 * breakpoint.h, command.c, copying.awk, defs.h, environ.c,
1030 exec.c, frame.h, infcmd.c, inferior.h, main.c, munch, sun3-xdep.c,
1031 symtab.h, tm-29k.h, valprint.c, value.h, values.c: Lint.
1033 * remote-eb.c: Support user-settable baud rates on the serial port.
1035 * tm-sun3.h (PREPARE_TO_STORE): fix typo.
1037 Fri Sep 14 13:28:29 1990 John Gilmore (gnu at cygint)
1039 * tconfig/sun3os4: Remove warning about native assembler,
1040 since it also occurs in the xconfig file.
1042 * findvar.c (registers): Allocate some slop after `registers'
1043 to prevent stray accesses from trashing the next variable.
1045 * tm-68k.h (REGISTER_BYTES): Allocate the right number of bytes
1046 on the sun-3, by changing the #ifdef from `sun3' (which is not
1047 defined by cc) to `sun'. Symptom was trashed builtin_type_XXX
1048 vars, which happened to follow `registers' in the executable.
1050 * readline/history.c (history_search): Heed gcc-2's advice
1051 and parenthesize && inside ||).
1053 * am29k-opcode.h, am29k-pinsn.c, am29k-tdep.c, remote-eb.c,
1054 tm-29k.c: Insert FSF copyright headers.
1056 * remote-eb.c: Better comments.
1058 * Makefile.dist: Update to 3.91.6.
1059 * TODO: note PREPARE_TO_STORE problem.
1061 Thu Sep 13 09:52:33 1990 Jim Kingdon (kingdon at cygint)
1063 * stack.c (frame_info): Only use FRAME_FIND_SAVED_REGS if defined.
1065 * remote.c: Wrap the whole file in #if !defined (SPECIAL_REMOTE).
1067 * infrun.c (wait_for_inferior, at end): Don't set up
1068 prev_* if the inferior no longer exists.
1070 * inferior.h (CALL_DUMMY_LOCATION): New macro, to replace
1071 CANNOT_EXECUTE_STACK.
1072 valops.c (call_function): Use it.
1074 * tm-convex.h: Add CALL_DUMMY_LENGTH for use by PC_IN_CALL_DUMMY.
1076 * inferior.h (PC_IN_CALL_DUMMY): New macro.
1077 infrun.c (wait_for_inferior, 2 places): Use it.
1079 * values.c (value_being_returned): Only use
1080 EXTRACT_STRUCT_VALUE_ADDRESS if defined.
1082 * Move PREPARE_TO_STORE from xm-sun3.h to tm-sun3.h to do the
1083 right thing for remote-eb.c.
1085 * sun3-xdep.c: Remove extraneous call to remote_store_registers.
1086 * sun386-xdep.c, hp300hpux-xdep.c, sparc-xdep.c: Ditto.
1088 * blockframe.c: Put get_frame_saved_regs inside #if !defined
1089 (FRAME_FIND_SAVED_REGS).
1091 * findvar.c ({fetch,store}_registers): Check for
1092 REMOTE_{FETCH_STORE}_REGISTER macro.
1094 * findvar.c (get_saved_register): Add argument lval and
1095 change meaning of argument addr.
1096 findvar.c: Change calls to get_saved_register to reflect
1097 new calling convention.
1098 valops.c (value_assign): Use get_saved_register instead of
1099 find_saved_register.
1101 Sun Sep 2 12:40:20 1990 Jim Kingdon (kingdon at cygint.cygnus.com)
1103 * coffread.c (read_one_sym): Make temp_aux an AUXENT, not
1104 an (uninitialized) pointer to one. Use "&" when passing it
1107 Fri Aug 31 22:57:54 1990 Jim Kingdon (kingdon at cygint.cygnus.com)
1109 * coffread.c (getfilename): Use DGUX x_offset and x_name if
1112 * coffread.c (symbol_file_command): Put semicolon after
1114 Put safe_to_init_tdesc_context in #if defined (TDESC).
1115 Put #ifdef TDESCs in 1st column for non-ANSI cpp's.
1116 coffread.c: #include <sys/stat.h>.
1117 (read_coff_symtab): Typo: in_source_files -> in_source_file.
1118 Add missing ')' in check for "lc%" and friends. Remove
1120 Declare read_one_sym() at top of file.
1121 (read_file_hdr): Put in extra #ifdefs so MC68MAGIC and
1122 MC68WRMAGIC can have the same value without causing a duplicate
1125 Thu Sep 13 15:55:36 1990 John Gilmore (gnu at cygint)
1127 * Allow a Makefile to be built without building the
1128 tm and xm file links that screw up builds in subdirectories.
1129 This is done with `config.gdb none', then you can do things
1130 like `make gdb.tar.Z'.
1131 * tconfig/none: Config file for no target system
1132 * xconfig/none: Config file for no host system
1133 * config.gdb: If no TM or XM files are called out by the
1134 host or target file, don't make links for them.
1136 * cplus-dem.c: Add documentation.
1138 * dbxread.c (read_ofile_symtab): Turn a fatal error into a
1139 simple error, so the user's gdb doesn't crash due to some object
1140 file problem (e.g. somebody is rebuilding the file out from under
1143 * printcmd.c (print_address_symbolic): demangle the symbol.
1145 * Makefile.dist (OTHERS): Remove tdesc-lib because it has
1146 Motorola copyrights in it. Make "make gdb.tar.Z" work.
1147 (alldeps.mak): sort and uniq all results from this; duplicates
1148 hose gdb.tar.Z link building. Remove RCS files from
1149 tconfig and xconfig. Add config files for sun386. Add
1150 a few odd files to OTHERS and HFILES.
1152 Mon Sep 10 21:20:24 1990 John Gilmore (gnu at cygint)
1154 * Makefile.dist: Pull solib.c to tconfig/sun?os4.
1155 Roll version number to 3.91.5. Make lint work in bindir.
1157 * README: Document cross-debugging and new file structure.
1159 * blockframe.c: Lint. Include "value.h" to declare read_register.
1160 (find_pc_partial_function): remove duplicate line.
1162 * command.h: Lint. Declare error_no_arg and dont_repeat.
1164 * tm-news.h: Remove inadvertently duplicated stuff.
1166 * mipsread.c: Remove cache_pc_function stuff, now done cleanly.
1167 Clean up usage of misc_function_type. Declare some CORE_ADDRs.
1169 * config.gdb: Allow `config.gdb host target' form. Clean
1170 up previous change that printed bogus messages when you just said
1173 * core.c: #include "command.h" for lint.
1176 * main.c: Remove some casts of enums. Lint.
1183 * printcmd.c (initialize_printcmd): Fix thinko in inspect cmd.
1185 * sparc-tdep.c (isannulled): Take instruction as parameter, don't
1186 read it from memory. This will allow us to save ptrace calls
1187 eventually. Changed caller single_step too.
1189 * sparc-xdep.c (fetch_inferior_registers): Avoid reading regs
1190 that we aren't going to use, saving many ptrace calls, especially
1191 when watchpointing or single stepping. Use some #define's for
1193 (store_inferior_registers): Ditto.
1194 (core_file_command): Use some #define's for constants.
1196 * tm-sparc.h: Add #define's for some register numbers, so we
1197 can eliminate the use of random constants in sparc-xdep.c.
1199 * stack.c (frame_command, print_frame_info, up_command,
1200 down_command) Remove frame_changed, since it
1201 causes a bug and doesn't seem to do anything useful. In some
1202 places it was used as a flag, in others as a stack level (?).
1204 * utils.c: Use MISSING_VPRINTF rather than HAVE_VPRINTF, so the
1205 default is to use the portable (vprintf) version rather than the
1207 * xm-news.h (MISSING_VPRINTF): Add.
1209 * valprint.c (val_print): Demangle fancy vtbl printouts. Lint.
1211 Sat Sep 8 00:24:12 1990 John Gilmore (gnu at cygint)
1213 * Remove stuff that forces -Bstatic linking of gdb, and warnings
1214 about linking debugged programs -Bstatic in the sun?os4 config
1215 files in tconfig and xconfig subdirectories.
1217 * main.c (main): Remove unreached exit(0) now that we exit
1220 * Create TODO file for online bug list. There are too many
1221 "little" bugs to keep track of on paper.
1223 * Change Projects file to refer to bug-gdb@cygnus.com
1224 rather than kingdon@ai.
1226 Fri Sep 7 23:35:15 1990 John Gilmore (gnu at cygint)
1228 * Makefile.dist (VERSION): 3.91.4 now.
1230 * symtab.c (init_misc_bunches): Rename from init_misc_functions.
1231 (condense_misc_bunches): Add sanity check that misc_count is
1232 the same as the number of symbols in the bunch.
1234 * coffread.c: rename init_misc_bunches. Pass an argument
1235 to condense_misc_bunches (a zero).
1237 * dbxread.c (partial_symbol_file_read): Call init_misc_bunches
1238 every time we are called; don't rely on our caller to do it.
1239 (add_file): Remove call to init_misc_bunches.
1241 * mipsread.c: Only warn, don't error, if unknown symbol types.
1242 This keeps an old gdb from falling on its face if it sees newly
1243 extended symbol info. Rename init_misc_bunches.
1245 Fri Sep 7 22:58:15 1990 John Gilmore (gnu at cygint)
1247 * Merge in changes from Per Bothner for DECstations and other
1248 MIPS stuff. The rest is Bothner speaking:
1250 The next message is a merger of Alessando Forin's mips port with
1251 mine. I've tried to use my good if biased judgment to get
1252 the best of both. It *does* need testing.
1254 Some of the changes are general, *not* mips-specific.
1257 Didn't believe in little-endian bit order.
1258 There are still inconsistencies about whether flags
1259 like BITS_BIG_ENDIAN are integer (#if ...) or
1260 boolean (#ifdef ...). I tried to paper over them.
1262 dbxread.c,coffread.c,mipsread.c,symtab.c,symtab.h:
1263 Moved some misc_function code that was common to
1264 {dbx,coff,mips}read.c to symtab.c.
1265 In the process, I think I cleaned things up a bit.
1266 At the same time, moved obsavestring and obconcat to symtab.c.
1269 Removed obsolete condense_addl_misc_bunches (use
1270 condense_misc_bunches(1) instead).
1273 Needed to include <sys/dir>, at least on DECstations.
1275 valops.c, mips-tdep.c, tm-mips.h:
1276 Added PUSH_ARGUMENTS macro to support funny argument-pushing
1277 conventions (when STACK_ALIGN is insufficient).
1278 Needed on mips, where doubles need 8-byte alignment,
1279 but ints only need 4.
1282 Removed cruft that was not being used.
1283 Merged in many fixes (most from Frank Yellin, fy@lucid.com).
1286 Print $ before register-names (I think that makes things a little
1288 Never print two instructions, even if one delays.
1289 Removed hex-disassemble set_cmd. (This is not mips-specific,
1290 so I think the argument is whether it is generally worthwhile or not.
1291 I'm inclined to think not, given how easy it is to
1292 convert between radixes in gdb.)
1295 This is basically Alessando's code.
1296 It doesn't use obstacks; I changed it to use obstacks
1297 in a few minor places where using malloc causes a
1298 memory leak. (Probably, more places could/should be changed.)
1299 I added record_misc_function where it was missing.
1300 In symbol_file_command and add_file_command, I tried
1301 to make the code consistent with more recent versions.
1302 Minor sylistic changes in parse_procedure.
1303 Make a .gdbinfo. psuedo-symbol point back to the real
1304 procedure symbol (using the isym field).
1307 This is basically from my port, but with a lot of details
1308 and a number of routines merged in from Alessando's version.
1309 I basically used my code "raw" backtrace (use heuristics
1310 from the actual code, rather than symbol table info) - though
1311 the idea is Alessandro's. I feel my code is a little cleaner
1312 here, particularly in being a little more flexible, such as being
1313 able to handle gcc-produced code (which it now can).
1314 It also doesn't do frame caching (which is not useful
1315 more recent gdb versions).
1316 I also used my code for push_/pop_dummy, more or less.
1317 I tried to incorporate AF's code for testing sigtramp
1318 while backtracing; I probably got it wrong.
1319 Added mips_print_register, which tries to scrunch as much
1320 information as possible on a screen...
1321 Removed the skip-prologue set_cmd. As with hex-disassemble (see
1322 under mips-pinsn.c), I don't see anything mips-specific here,
1323 and I don't see it being all that useful anyway.
1326 Added a $fp psuedo-reg distinct from $fp (nice for gcc).
1327 Use more register names (rather than hard-cases numbers).
1329 Thu Sep 6 18:33:15 1990 John Gilmore (gnu at cygint)
1331 * Hack up 3.90.11 changes:
1333 * Makefile.dist (depend): parameterize $(GCC).
1334 Add solib.c and solib.o.
1335 (readline): Fix vpath for both absolute or relative SRCDIR.
1337 * blockframe.c: Fix from Schaefer@asc.slb.com for shared libs.
1338 Also, let the part I didn't understand at least compile so
1339 I can test the rest. FIXME.
1341 * dbxread.c: Fix thinko using strcmp.
1342 (init_psymbol_list): declare static.
1343 (partial_symbol_file_open): Comment cleanups better, avoid
1344 cleaning up the string table since the caller will do that.
1345 Move the stat for mod time into symbol_file_command, temporarily.
1346 (There should be a mod time for each symbol file, eventually,
1347 to control its rereading. FIXME.)
1349 * infptrace.c (PT_WRITE_D): use same value as PT_WRITE_I for
1350 SunOS, which gives error for shared libs otherwise. (From
1351 Schaefer, probably FIXME needs work for portability.)
1353 * solib.c: Move #include "param.h" to work.
1354 Lowercase all the Uppercase Letters In the Messages.
1355 (find_solib): Clean up inferior_so_name for debug printouts.
1356 Allow no argument, to mean all shared libraries.
1358 * symmisc.c: include param.h to get CLEAR_SOLIB.
1360 Wed Sep 5 18:00:08 1990 John Gilmore (gnu at cygint)
1362 * Merge in Kingdon's changes from FSF: the diffs from 3.90.9
1363 to 3.90.11. ChangeLog entries below are from this.
1365 Wed Jun 13 09:17:39 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
1369 * Makefile.dist (HFILES): Add tm-sunos.h.
1371 Tue Jun 12 16:15:26 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1375 * Makefile.dist (gdb.tar.Z): Change linking of config so it works.
1377 Thu Jun 7 16:22:27 EDT 1990 Jay Fenlason (hack@ai.mit.edu)
1379 * sparc-opcode.h Added single-operand version of rett.
1381 Mon Jun 4 18:12:31 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1383 * m-sparc.h (REG_STRUCT_HAS_ADDR, STRUCT_ARG_SYM_GARBAGE):
1384 Put parens around gcc_p in expansion.
1386 Thu May 24 15:44:51 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
1388 * utils.c (lines_to_list): Return 10 if lines_per_page == 0.
1390 Wed May 23 16:36:04 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1392 * Changes for Sun shared libraries:
1393 blockframe.c (find_pc_partial_function): If a non-text symbol
1394 is found, set *address = pc - FUNCTION_START_OFFSET.
1395 breakpoint.c (insert_breakpoints) [DISABLE_UNSETTABLE_BREAK]:
1396 Disable breakpoints instead of giving an error.
1397 source.c (select_source_symtab): Initialize cs_pst.
1398 symmisc.c: Call CLEAR_SOLIB if defined.
1399 symtab.h: Make text{low,high} CORE_ADDR not int.
1400 (psymtab): New field addr.
1402 dbxread.c: Move DECLARE_FILE_HEADERS outside functions.
1403 (record_misc_function): Give correct type for N_DATA symbols.
1404 (condense_misc_bunches): do "misc_function_count = j" regardless
1406 Take code which is shared between symbol_file_command and
1407 add_file_command and put it into partial_symbol_file_{open,read}.
1408 Split add_file_command into add_file_command and add_file.
1409 Make psymtab_to_symtab read in the string table if the file
1411 Two new parameters to read_dbx_symtab and start_psymtab.
1412 tm-sunos.h: New file.
1414 Tue May 22 17:43:03 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1416 * infcmd.c: Change cont_command to continue_command and "cont"
1419 Mon May 21 14:41:41 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1421 * breakpoint.c (enable_breakpoint): Get value of watchpoint.
1423 * defs.h [sparc]: Use <alloca.h> regardless of __GNUC__.
1425 * values.c (USE_STRUCT_CONVENTION): Check for structures of
1426 size 1,2,4,8 rather than size < 8.
1428 * dbxread.c (dbx_lookup_type): Do f->length *= 2 as many times
1429 as necessary, not just once.
1431 * sparc-opcode.h: Add a bunch of new opcodes which Sun as supports.
1433 Thu May 17 15:04:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1435 * {t,x}m-sun386.h, sun386-xdep.c, {x,t}config/sun386
1437 * tm-news.h: Add CALL_DUMMY_*.
1439 * tm-68k.h: Remove duplicate comment at FRAME_FIND_SAVED_REGS.
1441 * config.gdb: In list_host, list_target, use ${i}, not $i.
1443 Tue May 15 21:27:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1445 * source.c (find_source_lines) [BROKEN_LARGE_ALLOCA]: Use xmalloc.
1447 * sparc-opcode.h: Change all store floating-point state register
1448 instructions to have the right match & lose fields.
1450 Sat May 5 12:39:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1452 * Makefile.dist: Move -I${srcdir} to GLOBAL_CFLAGS and pass
1454 config.gdb: If srcdir != ., create readline directory and
1455 copy a makefile into it.
1457 * wait.h, infrun.c: Change WRETCODE to WEXITSTATUS for
1458 consistency with POSIX.
1460 * breakpoint.c (bpstat_stop_status): Disable watchpoint
1461 when we exit its exp_valid_block.
1463 Tue Sep 4 11:46:46 1990 John Gilmore (gnu at cygint)
1465 * Makefile.dist: Bump version to 3.91.3.
1467 * Clean up handling of breakpoint commands (somewhat).
1468 Prompted by Tiemann bug report "cont 10" doesn't work any more.
1470 inferior.h: Add breakpoint_proceeded to inferior status struct
1471 and globals; save it and restore it.
1472 (clear_breakpoint_commands): Cleanup, remove old #define.
1474 infrun.c (clear_proceed_status): Set breakpoint_proceeded.
1475 (save_inferior_status, restore_inferior_status): handle it also.
1476 (proceed): Remove earlier code that set breakpoint_proceeded.
1477 It is now set only in clear_proceed_status.
1478 (clear_proceed_status): Cleanup, use bpstat_clear rather
1479 than clear_breakpoint_commands. No callers need the stop_bpstat
1480 between clear_proceed_status and proceed.
1482 infcmd.c: Add breakpoint_proceeded definition and comment.
1483 (cont_command, jump_command, signal_command): Move call to
1484 clear_proceed_status right next to call to proceed.
1486 breakpoint.c (bpstat_do_actions): Avoid clobbering our
1487 caller's argument while running down the chain of breakpoints.
1488 Use new variable "breakpoint_proceeded" to determine when
1489 a command that it executes moves the inferior past the
1491 (bpstat_clear): Handle NULL argument.
1492 (bpstat_clear_actions): Avoid useless call to
1493 breakpoint_auto_delete.
1494 (delete_breakpoint): Clean up bpstat's that are pointing to
1495 the deleted breakpoint from the stop_bpstat chain.
1496 (breakpoint_auto_delete): Simplify.
1498 * Clean up handling of EOF, error on stdin, etc. This was
1499 prompted by a network problem that caused gdb to go into an
1500 infinite loop filling up its malloc'd memory.
1502 main.c (return_to_top_level): Cleanup: call bpstat_clear_actions,
1503 not clear_breakpoints_commands, which is now gone.
1504 (main): If command_loop returns (e.g. from EOF on stdin), do
1505 a quit_command (looping back to command_loop if quit_command
1506 doesn't really quit).
1507 (command_loop): check result from command_line_input and
1508 exit if it returns NULL, rather than passing the NULL to
1510 (gdb_readline): Free malloc'd result space before returning
1513 * utils.c (query): Handle C-d to mean "yes", just as if the
1514 input was not a terminal. Also avoid infinite loop if EOF
1515 occurs in mid-input-line before newline. This allows
1516 query to be used at EOF on stdin with reasonable results.
1518 * infrun.c (proceed): Set breakpoint_proceeded.
1520 * values.c (value_as_long): Avoid infinite recursion for enums.
1521 (_initialize_values): Fix typo in help msg (kingdon).
1523 * Makefile.dist (RL_LIB): Use RL_LIB_DEP for dependencies,
1524 RL_LIB for linking. This allows -lreadline for linking
1525 and nothing for dependencies, once readline is a real library.
1527 * config.gdb: Jim Kingdon: give useful error message if the
1528 host or target type is not recognized.
1530 * defs.h (alloca): SPARC <alloca.h> does not declare alloca,
1531 it just defines it. Dumb, but deal with it.
1533 * Jim Kingdon suggests:
1534 in xconfig/sun3os4, CFLAGS should be XM_CFLAGS.
1536 Wed Aug 29 18:03:27 1990 John Gilmore (gnu at cygint)
1538 * Makefile.dist (VERSION): Bump version # to 3.91.2.
1540 * Clean up Bothner's changes.
1542 * blockframe.c (clear_pc_function_cache): New function.
1543 * blockframe.c: remake cache_pc_function_* static.
1544 * dbxread.c (symbol_file_command): remove references to
1545 cache_pc_function_* variables.
1546 * dbxread.c (read_struct_type): Use VOFFSET_STATIC.
1547 * printcmd.c: Avoid kludging a global variable (addressprint)
1548 to avoid printing the address of a string twice. Instead,
1549 pass the format letter 's' down low enough that it can be seen
1550 to avoid this problem.
1551 (print_formatted): Pass format arg to value_print.
1552 (restore_addressprint): Remove function.
1553 (do_examine): Avoid hacking addressprint, cleanups and such.
1554 (print_frame_args): Add a comment to a Bothner change.
1555 * symtab.h: define VOFFSET_STATIC and use it instead of "-1".
1556 * symmisc.c (free_all_symtabs): Call clear_pc_function_cache
1557 to wipe out the values cached in blockframe.c.
1558 * symtab.c (find_method): Add comment saying how big you must
1559 allocate to be "big enough". Per being terse again.
1560 * valprint.c (val_print): Handle format letter "s" to print
1561 strings without addresses. Add comment to vtbl printing code
1562 which casts with wild abandon. Rearrange reference-printing
1564 @0xaddr: value (print w/addressprint)
1565 value (print w/~addressprint)
1566 @0xaddr (parameter lists w/addressprint)
1567 or nothing (parameter lists w/o addressprint)
1569 Tue Aug 28 10:47:18 1990 John Gilmore (gnu at cygint)
1571 * Merge more changes from Per Bothner:
1573 Gdb's handling of TYPE_CODE_REF was so counter-C++ (and otherwise
1574 annoying) that I tried to improve it. Here are my suggestions.
1576 These patches all attempt to handle TYPE_CODE_REF (as in C++) better.
1579 Do automatic de-reference when taking the address of a reference.
1581 Don't deref_ref when printing parameter lists.
1583 More attempts at treating refernences properly.
1585 In val_print, if deref_ref==0, don't print dangling " = ".
1587 Add COERCE_REF macro, which de-references an REF.
1589 * Merge changes from Per Bothner:
1591 * Fixed (Sony news)-specific configuration problems.
1592 * Fixed other problems with using vanilla pcc and libc (enum problems;
1593 assumption that vsprintf exists).
1594 * Some major speed-ups (finc_pc_partial_function now caches a match;
1595 parsing avoids duplicate symbol_lookup calls).
1596 * Changed handling of baseclasses (no longer use baseclasses field
1597 of struct type, use the first n_baseclasses fields instead).
1598 * Various minor changes/fixes, most C++-related.
1601 Cache the most previous match from find_pc_partial_function.
1602 (Save both low and high ends of matching function's pc range.)
1603 This speeds up the loop of infrun.c:wait_for_inferior quite
1604 a bit, and makes step/next commands much zippier.
1606 Added an enum->int cast (otherwise, some compilers barf).
1608 No longer set baseclass offset to 0, since multiple
1609 inheritance now mostly works.
1610 Added a number of casts, to shut up compiler warnings
1611 (after stabs where made enums, not ints).
1612 When discarding a symbol table (in symbol_file_command),
1613 must clear the cache introduced in blockframe.c.
1614 Don't convert $vtbl_ptr_type to vtbl any more.
1615 Get rid of TYPE_BASECLASEES and baseclass_vec (see also symtab.h).
1616 Mask off sign bit emitted by g++ for virtual table offset.
1617 Set voffset to -1 (not 1) for static member functions.
1619 Changed parsing/lexing of names to avoid doing symbol lookup twice
1620 (once when lexing to determine symbol class, once for real).
1621 Now only call symbol_lookup once. Fields of 'this' win especially big.
1623 Subpress printing addr twice in the case of 'x/s addr'.
1625 lookup_basetype_type is no longer used.
1626 Add find_methods as recursive helper function to decode_line_1.
1627 This allows multiple inheritance to work.
1628 Also, once one or more matches has been found, do not look in
1629 base-classes. (Baseclass methods would be overridden, anyway.)
1631 Removed baseclasses array in struct type.
1632 Instead of using baseclasses[i], use fields[i-1].
1633 Added virtual_field_bits[i] to indicate if the i'th baseclass is virtual.
1634 Changed sign convention of voffset (previous was inconsistent).
1636 Some macros (CALL_DUMMY and relatives) were missing. Put them back.
1638 Used to assume existence of vsprintf. Re-written to not need it
1639 if HAVE_VPRINTF is undefined.
1641 typecmp was too pessimistic. Made it less so.
1643 Don't print space after address.
1644 If vtable points to a misc symbol (with 0 offset), print it,
1645 since that indicates the actual class of the object.
1646 Changed ype_print_derivation_info to use new inheritance
1647 scheme (without baseclasses vector).
1649 In value_primitive_field, fixed some bugs left over from previous set of fixes.
1650 Also, changes needed because TYPE_BASECLASSES were removed.
1652 REGISTER_U_ADDR didn't work for PC. Rewrote to use an array.
1654 Tue Aug 21 20:08:54 1990 John Gilmore (gnu at cygint)
1657 If there is no path set, and the symbols don't indicate what directory
1658 a file was compiled in, look in the current directory. But either
1659 a path or a known compilation directory will prevent this.
1662 Three independent bug fixes:
1663 * Remove the #if 0 block that breaks some stuff.
1664 * SunOS 4.1 fixed the promoted-parameter-wrong-addr bug in Sun C;
1665 adapt gdb to either SunOS 4.0.* or 4.1.
1666 * MAX_OF_TYPE and MIN_OF_TYPE thinko. By tedg@sun, I think.
1669 Instantiate the class T when looking for methods in it. (Tiemann@sun)
1672 (type_print) Demangle the name being printed.
1673 (type_print_base) Handle botched demangling without coredump (tiemann).
1676 (check_stub_method): Document routine.
1677 (tiemann) fix bug for no-arg functions
1678 Avoid clobbering beyond end of malloc'd storage.
1679 Terminate the argument list properly.
1681 Sat Aug 18 01:29:59 1990 Per Bothner (bothner@cs.wisc.edu)
1683 * Changes merged by John Gilmore:
1686 In breakpoint_1, use new print_address_symbolic instead
1687 of find_pc_partial_function. (This forces use of assembler-level
1688 addresses, and avoids misleading non-mangled source-level names.)
1690 Generalize ansi argument such that -1 means skip arglist totally.
1691 Removed global variable print_ansi_qualifiers (which made
1692 code non-reentrant), in favor of extra explicit arguments
1693 to internal routines.
1695 Add new helper function print_address_symbolic.
1696 Use find_pc_misc_function instead of find_pc_partial_function
1697 (since we want assembler-level symbols here).
1699 Print unknown function as just "f (...)", not "f (...) (...)".
1700 Use new fputs_demangled explicitly.
1702 Fixed a typing violation (problem: value.h cannot be imported
1703 without renaming many variable in this file).
1704 lookup_symbol: If no matching misc_func, look for a C++-mangled name.
1705 decode_line_1: Moved forward some never-reached code.
1706 Made decode_line_2 skip function prologues correctly.
1708 fputs_filtered should not demangle by default.
1709 Add new fputs_demangled to demangle on demand..
1711 Change value_struct_elt to use value_primitive_field (using recursive
1712 utility function search_struct_field). This allows foo.bar to work
1713 for multiple inheritance (so far only for data fields).
1714 Change check_field in the same way (recursive helper function
1715 to support multiple inheritance).
1716 (Note: there are more of these problems that I haven't fixed.
1717 Any code that says TYPE_BASECLASS (t, 1) is probably wrong.)
1718 value_of_this: 'this' symbol name is now just "this", note "$this".
1720 Don't print static members.
1721 Avoid printing "members of <type>" if there are none.
1722 Simplified type_print_derivation_info by merging duplicate code.
1723 Remove useless blank lines in type_print_base (ptype command).
1725 Added declaration of new routine value_primitive_field.
1727 Added value_primitive_field which is generalized version of
1728 value_field that can handle multiple inheritance (non-zero offsets etc).
1729 Re-implemented value_field to call value_primitive_field.
1731 Fri Aug 17 23:33:44 1990 John Gilmore (gnu at cygint)
1733 * infcmd.c -- insert else to avoid 'delete env' coredump when you
1734 delete the whole environment. Karl Berry reported the bug.
1735 * source.c - fix openp to avoid //'s in filenames, which
1736 trigger an Emacs bug causing it to not be able to find files
1737 when running gdb in a window.
1738 * dbxread.c - zap the #if 0 that botches the add-file code.
1739 It seems to work a lot better without all the code commented out.
1741 Fri Jul 20 16:58:46 1990 John Gilmore (gnu at cygnus.com)
1743 * Merge Tiemann's and Ted Goldstein's changes, detailed below,
1746 Tue Jul 17 19:34:33 1990 Ted Goldstein (tedg at golem)
1748 * Makefile - added a ${CFLAGS} to a couple of entries,
1749 added remote-sa.sparc.c
1750 * added remote.sa-sparc.c, a modification of remote.c
1751 which conducts a dialog directly with the SparcStation prom.
1752 * breakpoint.c, infrun.c, sparcdep.c added
1753 remote_insert_breakpoint(), and remote_remove_breakpoint()
1754 to breakpoint.c instead of directly writing breakpoint instructions.
1755 * sparcdep.c on remote_debugging,there is no need
1756 to remove signle step breakpoint instructions.
1757 * main.c added "-epoch" flag and "int epoch_interface" to main.c
1759 * printcmd.c - epoch interface sends lisp expressions to open up
1760 epoch windows on inspection.
1761 * valprint.c - added arrayprint, and addressprint and made adding
1762 format controls easier
1763 * wait.h added a couple of undef's because we were getting
1764 complaints about WSTOPSIG and WTERMSIG begin redefined.
1767 Wed Jul 4 05:27:51 1990 Michael Tiemann (tiemann at masham)
1769 * symtab.c (decode_line_1): Add support for handling method stubs
1770 in the type information.
1772 Tue Jul 3 09:39:18 1990 Michael Tiemann (tiemann at masham)
1774 * values.c (baseclass_addr): Run loop from INDEX+1 to
1775 N_BASECLASSES; otherwise, we can still get into a loop.
1776 @@ This should be restructured to use a cleaner search strategy.
1778 Sun Jul 1 12:28:51 1990 Michael Tiemann (tiemann at masham)
1780 * dbxread.c (define_symbol,read_type): Grok GNU C++'s new
1781 abbreviation "Tt" for tags which have the same name as their
1784 Fri Jun 29 01:03:46 1990 Michael Tiemann (tiemann at masham)
1786 * symtab.c (list_symbols): add ability to set breakpoints on all
1787 the functions which match a particular regular expression.
1789 Tue Jun 26 04:26:29 1990 Michael Tiemann (tiemann at masham)
1791 * cplus-dem.c (cplus_demangle): New parameter ANSI says whether we
1792 should print ANSI qualifiers (such as `const' and `volatile').
1793 All callers changed to call with ANSI == 1, except from
1794 `check_method_stub', which uses old-style syntax.
1796 * symseg.h (struct fn_field): Remove unneccessary `args' field.
1797 * symtab.h (TYPE_FN_FIELD_ARGS): Redefined.
1799 * values.c (check_stub_method): New function.
1801 * cplus-dem.c (do_type): Handle "long long" (encoded as 'x').
1803 * dbxread.c (read_type): Handle new GNU C++ method type stubs.
1804 * valprint (type_print_base): Ditto.
1806 * symtab.c (gdb_mangle_typename): New function.
1808 Tue Jun 5 00:18:43 1990 Michael Tiemann (tiemann at gzilla)
1810 * breakpoint.c (catch_command): New function. Provides a
1811 mechanism to set breakpoints based on catch clauses.
1812 (disable_catch): Similar, but disables breakpoints on catch
1814 (delete_catch): Similar, but deleted breakpoints on catch clauses.
1816 Sun Jun 3 22:54:08 1990 Michael Tiemann (tiemann at gzilla)
1818 * blockframe.c (blockvector_for_pc): New function.
1819 * blockframe.c (block_for_pc): Changed to call
1820 `blockvector_for_pc' and get the block itself.
1822 * stack.c (catch_info): New function. Prints info about
1823 exceptions which can be caught in the current frame.
1824 * stack.c (print_frame_label_vars): New function. Similar to
1825 `print_frame_local_vars'.
1826 * stack.c (print_block_frame_labels): Prints out labels that are
1827 defined in this frame. These labels are exceptions that can be
1830 * dbxread.c: Updated to handle N_CATCH symtab types.
1832 Thu May 3 22:10:00 1990 Michael Tiemann (tiemann at teacake)
1834 * valprint.c (everywhere): TYPE_NAME (TYPE) no longer comes in the
1835 form "struct ..." for GNU C++. Don't flush any part of TYPE_NAME
1836 when printing the type.
1838 Wed May 2 22:43:04 1990 Michael Tiemann (tiemann at teacake)
1840 * valprint.c (val_print): Use `baseclass_addr' to access the
1841 baseclasses pointed to via the derived class object at VALADDR.
1843 * values.c (baseclass_addr): New function. Casts derived pointers
1844 to baseclass pointers taking virtual baseclasses and multiple
1845 inheritance into account.
1847 Sat May 5 12:39:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1851 Fri May 4 12:12:55 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1853 * breakpoint.c (watch_command, bpstat_stop_status): Deal with
1854 exp_valid_block field correctly.
1856 * infrun.c (wait_for_inferior): When checking "don't even think
1857 about breakpoints" if stop_signal == SIGTRAP && trap_expected,
1858 also check step_resume_breakpoint.
1859 Insert breakpoints and continue (not step) if
1860 step_resume_break_address != NULL, even if another_trap.
1861 If trap_expected and we enter sigtramp, then set up a
1863 If trap_expected is set when we hit the step_resume_break,
1865 When calling resume and trap_expected says tell resume to step
1866 (2 places), also check step_resume_break_address.
1868 * infrun.c (wait_for_inferior): Don't set
1869 prev_{pc,sp,func_{start,name}} before calling wait ().
1870 Do set them after exiting loop.
1871 Move their declarations outside functions.
1872 (start_inferior): Initialize them.
1874 Thu May 3 00:15:11 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1876 * infrun.c (wait_for_inferior, after check for trap_expected > 1):
1877 Restore old code which distinguishes between trap_expected and
1878 running_in_shell, just make the latter take any non-TRAP signal,
1881 * values.c (allocate_value): Zero VALUE_OPTIMIZED_OUT flag.
1883 * Makefile.dist (pinsn.o): Use PINSN_CC to compile.
1884 xconfig/3b1 (CC,PINSN_CC): Define.
1886 * xconfig/altos, altos-dep.c: Rename altos-dep.c to altos-xdep.c.
1890 * breakpoint.c (bpstat_stop_status),
1891 infrun.c (wait_for_inferior) [SHIFT_INST_REGS]: New code.
1893 * param.h, tm-88k.h: Define ADDR_BITS_*.
1894 infcmd.c (jump_command, read_pc), infrun.c (wait_for_inferior),
1895 printcmd.c (do_one_display): Use them.
1897 * utils.c: Split #ifdef USG into a USG_UTILS and a QUEUE_MISSING.
1898 xm-88k.h: Define USG_UTILS.
1900 Wed May 2 00:05:33 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1902 * printcmd.c (printf_command) [__INT_VARARGS_H]: New code.
1903 (printf_command): Add from_tty parameter.
1905 * valprint.c (value_print): Check VALUE_OPTIMIZED_OUT flag.
1907 * value.h: Add optimized_out field and change lazy field to
1908 char. Add macro VALUE_OPTIMIZED_OUT.
1910 * i386-pinsn.c: Change from Eirik Fuller to write to stream directly
1911 instead of stuffing things in buffers (oappend, etc).
1913 * breakpoint.c (bpstat_do_actions): If *BSP is set to NULL by
1914 execute_command, exit both loops.
1916 * Makefile.dist: Don't set TARGET_ARCH. Add .c.o rule.
1918 Tue May 1 17:07:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1920 * Makefile.dist (RAPP_OBS, rapp),
1921 rgdb.c, rserial.c, rudp.c, serial.c, udp.c, xdep.h,
1923 m68k-xdep.c, coredep.c: Wrap in #if !defined (RDB).
1925 * valops.c (value_struct_elt), values.c (value_static_field):
1926 Change error messages to remove references to `info methods'.
1928 Tue Apr 24 10:25:10 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1931 infrun.c (start_inferior): Add START_INFERIOR_HOOK.
1932 infcmd.c [SHIFT_INST_REGS]: New code.
1933 findvar.c (read_relative_register_raw_bytes): Return a value.
1934 infcmd.c (do_registers_info): Check value from
1935 read_relative_register_raw_bytes.
1937 * command.c (delete_cmd): Free the struct cmd_list_element(s)
1940 Mon Apr 23 10:42:21 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1943 findvar.c (get_saved_register): New function.
1944 findvar.c: Rewrite code which called find_saved_register to
1945 call get_saved_register instead.
1947 Sun Apr 22 14:47:51 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1949 * valprint.c (val_print): Change error message printed when
1950 the type has TYPE_FLAG_STUB set.
1952 * valprint.c (val_print): Check for TYPE_CODE_UNDEF.
1954 * findvar.c (write_register): Set register_valid (regno).
1956 * valops.c (call_function): Check for NULL return from block_for_pc.
1958 Fri Apr 20 11:31:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1960 * findvar.c (write_register): Add PREPARE_TO_STORE.
1961 {sun3,sparc,symmetry}-xdep.c (PREPARE_TO_STORE): Add.
1962 infptrace.c, {mips,pyr,symmetry,sun3,arm,hp300hpux}-xdep.c
1963 (store_inferior_registers): Don't call read_register_bytes.
1964 symmetry-xdep.c (store_inferior_registers):
1965 #if 0 out code to fetch registers.
1967 * values.c (value_as_long): Call COERCE_ARRAY.
1969 * tm-sun3.h: Include tm-68k.h not m-68k.h
1971 * sparc-tdep.c (single_step): Set next_pc, npc4 within
1972 if (!one_stepped), not outside it.
1974 * Changes from Data General for 88k:
1975 * coffread.c (read_file_hdr): Add *88*MAGIC.
1976 * coffread.c (have_symbol_file_p): New function.
1977 * coffread.c [COFF_CHECK_X_ZEROES] [TDESC]: New code.
1978 * coffread.c (read_one_sym): If there is more than one
1979 aux entry, don't give an error message, just ignore the
1981 * coffread.c (process_coff_symbol): Replace clipper with
1982 BELIEVE_PCC_PROMOTION in #ifdef's.
1983 * coffread.c: Define L_LNNO32 if not defined.
1984 (enter_linenos): Use it.
1985 * blockframe.c: Add INIT_FRAME_PC hook and use it in
1986 get_prev_frame_info.
1987 m-m88k.h: Use INIT_{FRAME_PC,EXTRA_FRAME_INFO} to do tdesc stuff.
1988 Use dummy versions of FRAME_CHAIN_*.
1989 * Makefile.dist, xconfig/i386*: Rename M_CLIBS to XM_CLIBS and add
1991 tdesc/libdc.o: New target.
1992 tdesc.{c,h}, tdesc/*, {t,x}config/m88k: New files.
1994 Thu Apr 12 15:47:00 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
1996 * m68k-opcode.h (bras, bsrs): Use "Bw" not "Bg".
1998 Tue Apr 10 20:50:25 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2002 * xm-mips.h (BYTE_ORDER): If not defined, make it LITTLE_ENDIAN.
2004 * mips-xdep.c ({fetch,store}_inferior_registers): Remove variable
2005 offset and just use register_addr (regno, 1).
2006 (core_file_command): Remove variable reg_offset and just use
2007 register_addr (regno, 0).
2009 * gdbcore.h [COFF_FORMAT]: #undef a_magic before redefining it.
2011 * infrun.c ("if (trap_expected && stop_signal != SIGTRAP)", near end
2012 of wait_for_inferior): Always pass 0 as first arg to resume.
2013 #if 0 out "SIGSEGV in shell" test right above it (now redundant).
2015 * i386-pinsn.c (oappend_address): New function.
2016 (oappend): Make it "static void" and declare at top of file.
2017 (OP_J, OP_DIR): Use oappend_address.
2019 Mon Apr 9 15:22:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2021 * mips-xdep.c: Include <mips/inst.h> not "mips/inst.h".
2023 * wait.h [HAVE_WAIT_STRUCT]: Put #defines in #if !defined so that
2024 it's OK if they are defined in <sys/wait.h>.
2026 * findvar.c (fetch_registers): Pass "registers", not "®isters",
2027 to remote_fetch_registers.
2029 * mips-tdep.c (_initialize_mipsdep): Remove hex_disassembler
2030 and re-write skip_prologue to use add_set_cmd.
2032 * Makefile.dist (alldeps.mak): Don't put \ after the last
2033 filename in each list.
2035 Sun Apr 8 01:59:19 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2039 * Makefile.dist (alldeps.mak): "XM_FILE" -> "XM_FILE=".
2041 * valarith.c (value_x_{un,bin}op): use "operator" not "operator "
2042 to match dbxread.c change of 16 Mar 90.
2044 * valarith.c (value_x_unop): Pass &static_memfuncp,
2045 not static_memfuncp.
2047 * breakpoint.c: Add watchpoint stuff.
2048 breakpoint.h: Add bpstat_should_step.
2049 infrun.c (proceed, wait_for_inferior): Use it.
2050 breakpoint.h: Add bpstat_print (and rename old bpstat_print
2051 to bpstat_should_print).
2052 infrun.c (normal_stop): Use it.
2054 * value.h: Add value_free. Declare a few functions.
2056 Sat Apr 7 21:43:43 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2058 * dbxread.c (read_dbx_symtab): Remove PROFILE_TYPES code and
2059 insert comment suggesting easy shell script equivalents.
2061 * values.c (unpack_long): Give better error messages for
2062 unrecognized sizes of ints and floats.
2064 Fri Apr 6 00:32:21 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2066 * dbxread.c, gdbcore.h (IS_OBJECT_FILE): Check for a_drsize
2067 nonzero as well as a_trsize.
2069 * More places: Use SWAP_TARGET_AND_HOST.
2071 * valops.c (destructor_name_p): Only skip "struct " if present.
2073 * main.c (gdb_readline): Return NULL on end of file.
2075 * sparc-opcode.h: Add jmp 1+2, jmp 1+i, jmp i+1.
2077 * Makefile.dist: Make expread.tab.c unambiguously be in srcdir.
2079 * main.c: Split source_command into source_command and
2081 (main): Accept "-" as arg to +command for stdin.
2083 * dbxread.c (psymtab_to_symtab): Don't read string table.
2084 (symbol_file_command): Save string table size.
2088 * symtab.c: Remove declaration of lookup_misc_func.
2090 * mips-pinsn.c: Add use_hex_p stuff (re-worked from Forin stuff).
2092 * mips-opcode.h: Add bdelay field.
2093 mips-pinsn.c: Various changes from Forin, I think to make it look
2094 like the MIPS assembler format.
2095 mips-tdep.c, mips-xdep.c, mipsread.c: Various changes from Forin.
2097 * gdbcore.h: Declare register_addr.
2099 * gdbcore.h: Include <a.out.h>, before trying to redefine N_TXTADDR
2101 various: Don't include both a.out.h and gdbcore.h.
2103 * Makefile.dist (HFILES): Add param.h
2105 * utils.c (init_malloc): Moved here from mcheck.c and modified
2106 to use the standard mcheck.c
2107 Makefile.dist: Modify to reflect new mcheck.
2109 Thu Apr 5 16:38:28 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2111 * valprint.c (val_print, print_hex_chars): Print integers
2112 larger than LONGEST.
2114 * valarith.c (value_sub): Give error message if attempt to
2115 subtract something of the wrong type from a pointer.
2117 * breakpoint.c (bpstat_stop_status): Initialize retval to NULL.
2119 * i386-tdep.c (i386_pop_frame): Change addr to adr.
2121 Wed Apr 4 05:21:50 1990 Jim Kingdon (kingdon at teenage-mutant)
2123 * main.c (command_line_input): return NULL on end of file.
2124 (execute_command): If p is NULL, return almost right away.
2125 (read_command_lines): Treat end of file like "end".
2127 * printcmd.c (print_frame_args): Change it so num is number
2128 of ints of args, not number of args.
2130 * xm-*.h: Make sure BYTE_ORDER is defined.
2131 Also fix various #includes of old names of things.
2133 * main.c (command_line_input): Fix comment code of 2 Apr.
2135 * values.c (value_from_long, unpack_long): SWAP_TARGET_AND_HOST.
2136 various: Replace {BYTES,WORDS}_BIG_ENDIAN with TARGET_BYTE_ORDER.
2137 valarith.c various: SWAP_TARGET_AND_HOST.
2138 dbxread.c (READ_FILE_HEADERS): SWAP_TARGET_AND_HOST.
2139 (SWAP_SYMBOL): New macro. Use it wherever symbuf_idx is incremented.
2140 exec.c (exec_file_command): SWAP_TARGET_AND_HOST.
2142 * valarith.c (value_subscripted_rvalue): Just bcopy() the
2143 appropriate bytes rather than playing strange games with
2146 * param.h (SWAP_TARGET_AND_HOST): New macro.
2148 * tm-np1.h (V7_REGNUM): Change from 27 to 26.
2149 (REGISTER_VIRTUAL_TYPE): Return correct result for vector regs.
2150 gould-tdep.c: New file.
2152 * Move reading of register before store from
2153 findvar.c (write_register) to
2154 infptrace.c, *-xdep.c (store_inferior_register).
2156 * findvar.c (fetch_registers, store_registers): New functions.
2157 write_register{,_bytes}: Use store_registers regardless of
2159 registers_valid: New variable.
2160 (supply_register, read_register, etc.): Use it.
2161 (read_register_gen): New variable.
2162 various: Use read_register_gen rather than read_register_bytes
2164 *-xdep.c (fetch_inferior_registers): Remove remote_debugging check.
2165 infrun.c (wait_for_inferior, start_inferior): Call registers_changed
2166 not fetch_inferior_registers.
2167 *-xdep.c (fetch_inferior_registers): Call registers_fetched if
2168 not setting registers via supply_register, and if fetching
2170 infptrace.c, *-xdep.c (fetch_inferior_registers): Add param,
2171 # of register to fetch (-1 for all).
2172 infptrace.c, hp300hpux-xdep.c (fetch_inferior_registers):
2173 Actually fetch only those registers needed.
2174 value.h: Declare all the extern register functions from findvar.c.
2176 * coffread.c (read_coff_symtab): Test for specific kinds of GCC
2177 labels (LI%.*, LPB%.*, etc), not just ??%.*.
2179 * coffread.c (record_misc_function): Use mf_text not mf_unknown.
2181 * utils.c,defs.h (lines_to_list): New function.
2182 source.c (select_source_symtab, list_command, forward_search_command,
2183 reverse_search_command), stack.c (print_frame_info):
2184 Use it instead of 10.
2186 * munch: If MUNCH_NM variable exists, use it.
2188 * main.c (initialize_main): Set rl_readline_name.
2189 main.c: #include readline.h and #undef savestring.
2190 Remove declarations of things declared in readline.h.
2192 * main.c (gdb_readline): If instream == 0, read from stdin.
2194 * main.c (main): Only call clearerr if ISATTY. Exit loop if
2197 * infcmd.c (detach_command): Set inferior_pid to 0 after
2198 calling remote_close.
2200 * main.c (main): If exec and sym files are the same, and there
2201 is an error reading execfile, don't try to read sym file.
2203 * infcmd.c (detach_command) [ATTACH_DETACH]: Don't try to detach
2204 from inferior when remote debugging.
2206 * source.c (reverse_search_command): Change while test from 1 to
2209 Tue Apr 3 18:14:14 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2213 * Makefile.dist (gdb.tar.Z): Use -z option to tar rather than
2214 creating gdb.tar and calling compress separately.
2216 * breakpoint.c (read_memory_nobpt): Do not treat bcopy as if it
2217 returned an "errno" value.
2219 * various: Make sure gdbcore.h is not included before a.out.h.
2221 * Makefile.dist (OPCODES): Add mips-opcode.h.
2223 * config.gdb: Print lists of {hosts,targets} after finding srcdir.
2224 When parsing +{host,target}=, strip off +{host,target}=, not +{x,t}m=.
2226 * Makefile.dist (gdb.tar): Do {t,x}config not just config.
2228 Mon Apr 2 02:42:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2230 * sparc-opcode.h (inc): Fix incorrect lose field.
2232 * valarith.c (value_subscripted_rvalue): Use TARGET_BYTE_ORDER,
2233 rather than checking endianness at runtime.
2235 * main.c (comand_line_input): Accept comments anywhere, not
2236 just at starts of lines.
2238 Sat Mar 31 21:59:35 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2240 * symtab.c (check_stub_type): Call lookup_symbol with 5 args.
2242 Fri Mar 30 15:23:52 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2244 * frame.h: #include param.h.
2245 param.h: Protect against multiple inclusion.
2247 * i386-tdep.c (i386_get_frame_setup): Fix comment about what
2249 If 0x81 or 0x83 is followed by something besides 0xec,
2250 put codestream back where it was and return 0.
2251 [USE_MACHINE_REG_H]: Include <machine/reg.h> not <sys/reg.h>
2252 Move include of a.out.h above <sys/user.h>.
2253 (i386_frame_find_saved_regs): Make locals signed.
2254 (i386_frame_find_saved_regs, i386_push_dummy_frame, i386_pop_frame):
2255 Use REGISTER_BYTES, REGISTER_RAW_SIZE, etc. to deal with floating
2258 Wed Mar 28 18:33:40 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2260 * Makefile.dist (OTHERS): Add gdb.dvi.
2261 (gdb.dvi): New rule.
2263 * breakpoint.c (_initialize_breakpoint): Clean up docstrings so
2264 as not to mention subcommands (e.g. auto-display).
2265 Call add_cmd not add_abbrev_cmd for "disable breakpoint" and
2266 put it in class_alias.
2268 * breakpoint.c (set_breakpoint_count): New function.
2269 (set_breakpoint, break_command_1): Use it.
2271 * breakpoint.c (get_number): New function.
2272 (*_command, map_breakpoint_numbers): Use it.
2274 * infptrace.c (write_inferior_memory): Remove remote_debugging
2275 stuff (is handled in core.c).
2276 (read_inferior_memory): Remove #if 0'd out remote_debugging code.
2278 Tue Mar 27 16:51:27 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2280 * inferior.h: Include frame.h.
2282 * findvar.c (write_register): Replace sun4 #ifdef with
2283 check of CANNOT_STORE_REGISTER.
2284 xm-sparc.h: Define CANNOT_STORE_REGISTER.
2286 * sparc-tdep.c: Remove superfluous declaration of
2287 get_breakpoint_commands.
2289 * breakpoint.{c,h}: Add bpstat stuff.
2290 bpstat_do_action: Re-work do_breakpoint_commands into this.
2291 main.c (command_loop): Call bpstat_do_action not
2292 do_breakpoint_commands.
2293 inferior.h, infrun.c, breakpoint.c, infcmd.c:
2294 Rework breakpoint_commands and stop_breakpoint
2295 stuff to use bpstat instead.
2297 * infcmd.c (program_info): "info reg"->"info registers".
2299 * np1-opcode.h: Renamed from npl-opcode.h.
2300 gould-pinsn.c: Include np1-opcode.h.
2301 Makefile.dist (OPCODES): Change npl-opcode.h to np1-opcode.h
2303 * coffread.c (read_enum_type): Stop reading when we hit .eos.
2305 Mon Mar 26 15:52:35 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2309 * breakpoint.c (read_memory_nobpt): New function.
2310 gdbcore.h: Declare read_memory_{nobpt,check}.
2311 mips-tdep.c: Use read_memory_nobpt not breakpoint_shadow_val.
2313 Fri Mar 23 14:26:38 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2315 * inflow.c (terminal_inferior): Reenable commented out
2316 inferior_thisrun_terminal check.
2317 (terminal_ours_1): If inferior_thisrun_terminal is nonzero,
2320 * Makefile.dist: Rewrite DEPFILES, M_FILE, etc. stuff to deal
2321 with host & target separation.
2323 * config/*: Split into xconfig/* and tconfig/*.
2324 *-dep.c: Split into *-xdep.c and *-tdep.c.
2326 * main.c (main): Always pass two args to xrealloc.
2328 Thu Mar 22 20:29:25 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2330 * Makefile.dist ({,dist}clean): rm {x,t}m.h not param.h
2331 xgdb.o: Remove obsolete dependency (now in depend).
2333 * arm-pinsn.c: Include arm-opcode.h not opcode.h.
2335 * mips-pinsn.c, mips-opcode.h: New files from Bothner (from
2336 release of 24 Jan 90 with mips-opcode.h patch from 1 Feb 90).
2338 * utils.c (xmalloc): Return NULL on request for 0 bytes.
2340 Wed Mar 21 13:30:08 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2342 * config.gdb: Re-write machine stuff to deal with host & target.
2344 * xm-altos.h: Don't define HAVE_WAIT_STRUCT.
2346 * m-*.h: Split into xm-*.h and tm-*.h.
2348 * infrun.c (wait_for_inferior): Put #ifdef sony_news code
2349 in regardless of machine.
2351 * symtab.c (decode_line_1): Add quotes and capitalize error
2352 message "no class, struct, or union named".
2354 * Makefile.dist (cplus-dem.o): Compile with -Dnounderscore.
2356 * stack.c (print_frame_info): Use print_symbol to print function name.
2358 * symtab.c (output_source_filename): Don't print a comma if
2359 we are skipping a filename already printed.
2361 Tue Mar 20 10:48:54 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2363 * symtab.c (output_source_filename): Don't print a filename
2366 * utils.c (fprint_symbol): New function.
2367 defs.h: Decalare it.
2368 various: Use fprint_symbol to print symbol names.
2369 Makefile.dist (SFILES, OBS): Add cplus-dem.{c,o}.
2371 Mon Mar 19 17:11:03 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2373 * coffread.c (read_file_hdr): Add MC68K??MAGIC.
2375 * coffread.c (read_coff_symtab): Ignore swbeg and string label
2378 * coffread.c (read_coff_symtab): Increment num_object_files
2379 in case C_STAT not C_FILE.
2380 New variable in_source_file. Set it in case C_FILE.
2381 Check it in case C_STAT.
2383 * coffread.c [FUNCTION_EPILOGUE_SIZE]: New code.
2384 m-umax.h (FUNCTION_EPILOGUE_SIZE): Define.
2386 * config/3b1: New file.
2388 * config/sun*: Print message warning people to use GAS with GCC.
2390 Sun Mar 18 02:56:40 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2392 * infcmd.c (run_stack_dummy): Change error message.
2394 * m-68k.h (REGISTER_VIRTUAL_TYPE): Make pc, fp, sp char *.
2396 * m-mips.h (LONGEST, BUILTIN_TYPE_LONGEST): Remove.
2398 Sat Mar 17 21:27:49 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2400 * mips-dep.c: Remove infptrace.c stuff.
2402 * m-bigmips.h: New file.
2403 m-mips.h [MIPSEB]: Remove *_BIG_ENDIAN stuff.
2405 * m-sparc.h (FIX_CALL_DUMMY): Do not insert unimp instruction
2406 if function was compiled with gcc.
2408 * m-mips.h: Remove FIX_CALL_DUMMY_ALIGNED and make FIX_CALL_DUMMY
2411 * valops.c (call_function): New args to FIX_CALL_DUMMY.
2412 m-*.h (FIX_CALL_DUMMY): Take new args.
2414 * values.c (using_struct_return): New parameter gcc_p.
2415 valops.c (call_function): New variable using_gcc.
2416 valops.c (call_function) [REG_STRUCT_HAS_ADDR]: New code.
2418 * m-mips.h, mips-dep.c: New files from Forin.
2419 m-mips.h: Replace RETURN_STRUCT_BY_REF with USE_STRUCT_CONVENTION.
2421 Fri Mar 16 13:17:19 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2423 * Makefile.dist: Add some dependencies of m-*.h files.
2424 (HFILES): Add m-68k.h.
2426 * dbxread.c (read_struct_type): Put "operator+" not "operator +"
2429 * core.c: Split read_memory into read_memory_check and read_memory.
2430 breakpoint.c (insert_breakpoints): If can't read memory,
2431 tell user that error was due to seting breakpoints.
2433 Thu Mar 15 11:47:19 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2435 * infrun.c [COFF_ENCAPSULATE]: Include a.out.encap.h.
2437 * blockframe.c (FRAMELESS_LOOK_FOR_PROLOGUE): Make it a function.
2438 various m-*.h: Call function not macro.
2439 frame.h: Declare the function.
2441 Wed Mar 14 02:44:51 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2443 * sparc-dep.c: Include signame.h.
2445 * sparc-pinsn.c (print_insn): When looking for sethi before
2446 delayed branch, call read_memory_noerr not read_memory.
2448 * m-isi.h, m-sun3.h, m-news.h, m-hp300bsd.h, m-altos.h,
2449 m-hp300hpux.h, m-sun2.h: Merge machine stuff except inferior
2450 function call stuff into new file m-68k.h. Create m-3b1.h.
2452 Tue Mar 13 21:34:33 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2454 * inflow.c (new_tty): If can't open tty, print error message
2457 * blockframe.c: Remove declaration of psymtab_to_symtab.
2458 symtab.h: Declare psymtab_to_symtab.
2459 blockframe.c: Remove declarations of block_for_pc and
2460 find_pc_function_start.
2461 frame.h: Add declarations of block_for_pc and find_pc_function_start.
2462 Remove declaration of nonexistent function find_pc_function.
2463 values.c: include frame.h instead of declaring block_for_pc.
2467 Mon Mar 12 14:20:06 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2469 * main.c (main): Delete superfluous "e" from long_options.
2471 Sat Mar 10 15:47:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2473 * valprint.c (val_print): Print <%d bit integer> not just
2476 * dbxread.c (error_type): Fix loop that finds '\0' so that on
2477 exit, *pp points to the '\0', not the character after.
2478 (read_type): Make sure that places which call read_type and then
2479 try to read more input stop immediately with another error
2480 upon encountering '\0'.
2482 * dbxread.c (read_range_type): Fix check for large signed
2483 integral type to match comment and reality. Set TYPE_LENGTH based
2484 on n2bits for signed, n3bits for unsigned.
2486 * infcmd.c (cont_command): Print warning message if we
2487 decide to ignore the argument.
2489 * gdb.texinfo (attach): @xref{Attach} -> @xref{Remote}.
2491 Fri Mar 9 16:26:47 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2493 * symtab.h (address_class): Reinstate LOC_EXTERNAL with rewritten
2496 * expread.y (yyerror, parse_c_1): Make yyerror take a char * arg.
2498 * main.c (symbol_completion_function): Don't call error() on
2501 * m-npl.h (USE_STRUCT_CONVENTION): Change >= to >.
2503 Thu Mar 8 00:19:01 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2505 * symseg.h: Nuke more symseg references including LOC_EXTERNAL.
2506 Put contents of symseg.h into symtab.h and remove symseg.h.
2508 Wed Mar 7 18:02:15 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2510 * symtab.h (SYMBOL_LINE): New macro.
2511 symtab.c (decode_line_1): Accept variable as well as function.
2512 Lookup variable/function in selected block if no file specified.
2513 printcmd.c: #if 0 out whereis_command.
2515 * command.c (do_setshow_command): Call function with additional
2517 main.c (set_history_size_command): Take argument C.
2518 (set_verbose): New function to set docstring.
2519 (initialize_main): Put set_verbose in command list.
2520 command.c (lookup_cmd_1): Accept result_list NULL.
2522 * valprint.c (_initialize_valprint): Change docstring for
2523 "set unionprint" to normal set/show form.
2525 * command.c (add_show_from_set): Check that docstring starts with
2526 "Set " before assuming it does.
2528 * main.c (show_history): Call cmd_show_list.
2529 command.{c,h} (cmd_show_list): New function.
2530 command.h: Declare do_setshow_command.
2532 * command.h (cmd_list_element): New field completer.
2533 main.c (symbol_completion_function): Use it.
2534 symtab.h: Declare make_symbol_completion_list.
2535 command.c (add_cmd): Set completer.
2536 main.c, gdbcmd.h (noop_completer): New function.
2537 infcmd.c: Set completer for environment functions.
2539 * symtab.c (types_info, _initialize_symtab): #if 0 out.
2540 various: Use fputs_filtered, not fprintf_filtered(%s).
2542 * valprint.c (type_print_base): Check for integers larger than
2545 * sun3-dep.c: Include "signame.h" instead of directly declaring
2548 Tue Mar 6 14:59:34 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2550 * infrun.c (signals_info): Allow argument to be a signal name
2551 as well as an expression.
2552 (handle_command): Check for error from sig_number.
2554 * main.c (float_handler): Change error message.
2556 * inflow.c (create_inferior): If getenv ("SHELL") exists, use it
2559 * dbxread.c (read_dbx_symtab, case N_SO): New variable first_symnum.
2560 Pass it to {start,end}_psymtab.
2562 * dbxread.c (read_ofile_symtab): Increment symbuf_idx and symnum
2563 when calling process_symbol_pair.
2565 * symtab.c (sources_info, output_source_filename):
2566 Re-write so output_source_filename takes a first parameter
2567 instead of a next one.
2569 * dbxread.c (read_dbx_symtab, case N_SO): When incrementing
2570 symbuf_idx, increment symnum also.
2572 * values.c (set_internalvar_component): Use VALUE_CONTENTS,
2573 not VALUE_CONTENTS_RAW.
2575 * symmisc.c (free_symtab): Don't free filename (now in symbol_obstack).
2577 * environ.c (init_environ): Copy entire string, including
2580 * value.h, values.c: Rename value_lazy to value_fetch_lazy.
2581 values.c (value_of_internalvar): Call value_fetch_lazy.
2583 * dbxread.c (read_huge_number): Return an error on encountering
2584 a large decimal number.
2586 * dbxread.c (read_huge_number): Reverse sense of overflow test.
2588 * valprint.c (val_print, case TYPE_CODE_INT): Check for integers
2589 larger than LONGEST.
2591 * dbxread.c (read_ofile_symtab): When calling process_one_symbol,
2592 call it with desc and value rather than with bufp->n_{desc,value}.
2594 * defs.h (LONG_MAX): Define.
2596 * sun3-dep.c: Declare sys_siglist.
2598 * infptrace.c: Move include of gdbcore.h after a.out.h
2600 * Makefile.dist (expread.o, mcheck.o): Remove leading "./" not
2603 * m-hp300hpux.h [!HPUX_VERSION_5]: Define KERNEL_U_ADDR_HPUX.
2604 infptrace.c [KERNEL_U_ADDR_HPUX] [KERNEL_U_ADDR_BSD]:
2605 Set kernel_u_addr using nlist().
2606 m-hp300bsd.h: Define KERNEL_U_ADDR_BSD.
2608 Mon Mar 5 16:52:41 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2610 * dbxread.c (read_dbx_symtab): If value of .o symbol is crazy,
2613 * dbxread.c (read_dbx_symtab): Ignore first of a pair of N_SO
2615 (start_subfile, start_symtab): Extra parameter dirname.
2616 (start_subfile): Use obsavestring, not savestring, for name.
2617 various: Call start_{subfile,symtab} with extra argument.
2618 (end_symtab): Set dirname field in symtab.
2619 (read_ofile_symtab): Call process_symbol_pair on pair of N_SO.
2620 (process_symbol_pair): New function.
2621 symtab.h (symtab): New field dirname.
2622 source.c (open_source_file): New function.
2623 source.c: Use open_source_file instead of openp where appropriate.
2625 * defs.h (TARGET_CHAR_BIT): Define.
2627 Sun Mar 4 13:11:48 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2629 * dbxread.c (fill_symbuf): Print error messages nicely.
2631 * Makefile.dist (SFILES): Put standalone.c at end.
2633 * Makefile.dist (alldeps.mak): Put out backslash after arm-convert.s.
2635 * symtab.{c,h} (builtin_type_error): New type.
2636 symseg.h (type_code): Add TYPE_CODE_ERROR.
2637 valprint.c (val_print, type_print_base),
2638 values.c (using_struct_return, set_return_value):
2639 Check for and deal with TYPE_CODE_ERROR.
2640 dbxread.c (error_type): New function
2641 (read_type and subroutines): Call error_type instead of error.
2643 * dbxread.c (read_huge_number): New function.
2644 (read_range_type): Use read_huge_number and check results
2645 to see if it is a large integral type.
2647 * symmisc.c: Remove symseg stuff.
2649 * Gould NP1 changes from (or inspired by) chpmjd@gdr.bath.ac.uk
2650 dbxread.c (read_dbx_symtab) [N_NBSTS]:
2651 Treat this and N_NBLCS like N_LCSYM, etc.
2652 (process_one_symbol) [BLOCK_ADDRESS_ABSOLUTE]: New code.
2653 m-npl.h (USE_STRUCT_CONVENTION): Add.
2654 (IGNORE_SYMBOL): Add 0xa4.
2655 (END_OF_TEXT_DEFAULT): Remove.
2656 (STRING_TABLE_OFFSET): don't add sizeof(int).
2657 [!HAVE_VPRINTF]: Define vprintf to be doprnt, not printf.
2658 (BLOCK_ADDRESS_ABSOLUTE): Define.
2659 (BREAKPOINT): Pad to size of machine word.
2660 (SAVED_PC_AFTER_CALL): Remove ` at start of line (!).
2661 (R2_REGNUM): Define.
2662 (SP_REGNUM, FP_REGNUM): Switch definitions.
2663 (REGISTER_U_ADDR): Use FP_REGNUM in place of SP_REGNUM.
2664 (STORE_STRUCT_RETURN, EXTACT_RETURN_VALUE, STORE_RETURN_VALUE,
2665 call function stuff):
2666 Replace bogus definitions with correct ones for NP1.
2667 (CANNOT_EXECUTE_STACK): Define.
2668 (FRAME_LOCALS_ADDRESS): Don't add 80.
2669 (FRAME_FIND_SAVED_REGS): Also get SP.
2670 gould-pinsn.c (findframe): Move framechain declaration outside #if 0.
2671 infptrace.c (write_inferior_memory): Check addr against text_end
2672 and use PT_WRITE_I or PT_WRITE_D as appropriate.
2673 (store_inferior_registers): Don't try to write registers in
2674 CANNOT_STORE_REGISTER.
2675 m-npl.h (CANNOT_STORE_REGISTER): Define.
2676 npl-opcode.h (lil): 0xf8080000 -> 0xf80b0000.
2678 * munch: Distinguish between BSD and System V nm by actually
2679 seeing what output from nm looks like.
2681 Fri Mar 2 13:43:36 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2683 * printcmd.c (print_frame_args): Change highest_offset to point
2684 to next unprinted arg.
2686 * main.c (main): Print "type help for list of commands" along
2687 with the version. Follow it with a blank line.
2689 Thu Mar 1 14:49:26 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2691 * valprint.c: Move print_address for function from value_print
2694 Wed Feb 28 15:06:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2696 * Makefile.dist (m-sun4os4.h): Depend on m-sparc.h
2698 * Makefile.dist (version.c): Depend on Makefile.dist, not Makefile.
2700 * Makefile.dist: Change MAKEFILES to Makefiles.
2702 * symtab.h: Declare get_sym_file.
2703 core.c: Include symtab.h.
2705 * Move signal name stuff from utils.c to signame.c
2706 Move signal name stuff from defs.h to signame.h.
2707 Makefile.dist (SFILES, HFILES, OBS): Add signame.{c,h,o}.
2709 Mon Feb 26 12:03:12 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2711 * command.c (add_cmd): Don't call savestring on name.
2713 Sun Feb 25 15:52:18 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2715 * printcmd.c (print_frame_args): Make highest_offset an int.
2716 New variable args_printed.
2717 (print_frame_nameless_args): Remove parameter end and add num
2719 (print_frame_args): Change call to print_frame_nameless_args.
2721 Fri Feb 23 21:40:15 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2723 * stack.c (up_command, down_command):
2724 Only print stack frame if from_tty.
2726 Thu Feb 22 12:01:36 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2728 * expread.y: Inlcude value.h and don't cast return value from
2731 * infrun.c: Remove code in #ifdef UMAX_PTRACE.
2733 * values.c (convenience_info): Print in form "$foo = 5".
2734 Don't print "Debugger convenience variables:" before first one.
2736 * Makefile.dist: Remove ADD_FILES from CLIBS.
2737 (gdb, kdb, xgdb): Put in ADD_FILES as well as CLIBS.
2739 * m-pyr.h: #if 0 out call dummy stuff.
2740 Put in POP_FRAME which just calls error().
2741 valops.c: If CALL_DUMMY is not defined, put in dummy call_function
2742 which just prints an error message.
2744 Tue Feb 20 22:11:40 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2746 * breakpoint.c (commands_command): Add arg from_tty.
2748 * main.c (main): Put if (!setjmp (to_top_level)) around calls
2749 to *_command made in response to command line arguments.
2751 Mon Feb 19 13:58:28 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2753 * main.c (main): Use getopt_long_only. Move one-character options
2754 to long_options. Remove entries which are just unambiguous
2755 abbreviations of other options.
2757 * command.h: Add types cmd_types and var_types.
2758 Add fields type, var_type, and var to struct cmd_list_element.
2759 command.c (add_set_cmd, add_set_from_show): New functions.
2760 (add_cmd): Set c->var_type.
2761 (add_abbrev_cmd): Call add_cmd instead of duplicating code.
2762 main.c: Add showlist.
2763 Move parse_binary_operation from main.c to command.c.
2764 command.c (do_setshow_command): New function.
2766 Makefile.dist: Add gdbcmd.h.
2767 many files: Include gdbcmd.h, use add_set_cmd and add_show_from_set.
2768 Replace info * with show * where appropriate.
2769 utils.c (fputs_filtered): Use UINT_MAX in lines_per_page to mean
2771 defs.h: Define UINT_MAX.
2772 infcmd.c (run_command): Use execute_command, not set_args_command.
2773 main.c (execute_command): Call do_setshow_command if necessary.
2774 main.c (show_command, show_history): New functions.
2775 main.c (initialize_main): Call add_prefix_cmd
2776 for show and show history.
2778 * coffread.c (enter_linenos): Print error if
2779 file_offset < linetab_offset.
2781 Sun Feb 18 15:37:05 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2783 * convex-dep.c (comm_registers_info): Fix typo. ("argc"->"arg").
2785 Wed Feb 14 20:45:14 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2787 * config.gdb: Create Makefile with make.
2789 * Makefile.dist, config.gdb: Move "srcdir=" line from Makefile.dist
2790 to new file Makefile.srcdir.
2792 * valprint.c: Include <errno.h>.
2794 * value.h: Declare value_coerce_function.
2796 * findvar.c: Add missing " after #include "gdbcore.h
2798 * main.c (main): Re-write command parsing to use getopt.
2799 On "gdb +help" print options with '+' not '-'.
2800 Makefile.dist: Add getopt.
2802 Tue Feb 13 00:08:27 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2804 * Makefile.dist: Add "srcdir=."
2805 config.gdb: Edit srcdir= rather than adding it to the beginning.
2807 * pyr-dep.c: Make global_reg_offset, last_frame_offset not static.
2808 Move definition of reg_stack_offset to core.c [REG_STACK_SEGMENT].
2810 * config/pyramid: Print message about alloca.
2812 * breakpoint.c (clear_command): When printing "no breakpoint"
2813 error, only use arg if non-NULL.
2815 * core.c (read_memory): Rename to read_memory_noerr.
2816 (read_memory): New function which calls read_memory and checks for err.
2817 gdbcore.h: Declare all extern core.c functions.
2818 move myread from core.c to utils.c.
2819 declare it in defs.h.
2820 (read_memory_integer): move from infcmd.c to core.c.
2821 gdbcore.h: Declare it.
2822 Many places: Remove error checking on read_memory, or call
2823 read_memory_noerr instead. Include "gdbcore.h" if calling either.
2825 * value.h (COERCE_ARRAY): Coerce functions to function pointers.
2826 valops.c (value_coerce_function): New function.
2828 * core.c, convex-dep.c, arm-dep.c (xfer_core_file): Return EIO
2829 if address out of bounds.
2831 * m-arm.h, arm-dep.c arm-pinsn.c arm-opcode.h: New files.
2832 dbxread.c, m-convex.h (VARIABLES_INSIDE_BLOCK): Add gcc_p parameter.
2833 Makefile.dist (alldeps.mak): Special case for arm-convert.s.
2834 dbxread.c (define_symbol): Check for local based on it not
2835 being any one of the known deftypes.
2836 values.c (using_struct_return): Use new macro USE_STRUCT_CONVENTION.
2838 * Makefile.dist, config.gdb: Put in srcdir stuff.
2840 Mon Feb 12 22:46:16 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2842 * breakpoint.c: Add addr_string and cond_string fields to
2844 (break_command_1): Set them. Use mention ().
2845 (mention): Create with code from break_command_1.
2846 (breakpoint_re_set): New function.
2847 (breakpoint_clear): Remove.
2848 (condition_command): Set cond_string.
2849 (breakpoint_delete): Free cond_string and addr_string.
2850 Declare parse_c_1's type and remove casts to struct expression *.
2851 symmisc.c (free_all_symtabs): Don't call breakpoint_clear.
2852 dbxread.c, coffread.c (reread_symbols): Call breakpoint_re_set,
2853 Include breakpoint.h.
2854 breakpoint.h: New file.
2855 dbxread.c: Move declaration of symmisc.c functions to symtab.h.
2857 Sun Feb 11 17:29:23 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2859 * symtab.c: Make lookup_block_symtab extern.
2860 symtab.h: Declare it.
2861 valops.c (value_of_this): Use it.
2863 Fri Feb 9 08:59:37 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2865 * config/hp300hpux: Print message telling people to use gcc.
2867 * value.h: Declare print_floating.
2868 printcmd.c (print_scalar_formatted, case 'f'): Use print_floating.
2869 valprint.c (val_print, case TYPE_CODE_FLT): Use print_floating.
2870 valprint.c (print_floating): Make this function out of is_nan
2871 and the code which was in val_print.
2872 Put parentheses around high & 0xfffff.
2873 Print sign and fraction for NaN's.
2874 Print 17 digits not 16 for doubles.
2876 m-news.h, m-sun3.h: Define IEEE_FLOAT.
2878 * Rename gld-pinsn.c to gould-pinsn.c.
2879 config/{pn,npl}: Change name of gld-pinsn.c
2881 Tue Feb 6 00:25:36 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2883 * infptrace.c: Define PT_ATTACH if not defined.
2884 m-hp300hpux.h: Define ATTACH_DETACH.
2886 * main.c (initialize_main): Change alias class to aliases.
2888 * dbxread.c: Search and destroy references to symsegs.
2889 Also remove some #if 0'd code.
2891 * core.c: Remove reread_exec.
2892 dbxread.c (reread_symbols): New function.
2893 dbxread.c (symbol_file_command): Set symfile_mtime.
2895 infcmd.c (run_command): Call reread_symbols not reread_exec.
2897 * valprint.c (val_print): When printing string after char *, print
2898 it for "" just like any other string.
2900 * core.c (reread_exec): New procedure.
2901 infcmd.c (run_command): Call reread_exec.
2903 * coffread.c (symbol_file_command): Add from_tty.
2905 * dbxread.c (symbol_file_command): Only ask about loading new
2906 symbol table if from_tty.
2908 Mon Feb 5 02:25:25 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2910 * inflow.c (inferior_died): Call breakpoint_clear_ignore_counts.
2912 * Makefile.dist (OBS): Remove dbxread.o and coffread.o.
2914 * config.gdb: Ignore files ending in '#' in config.
2916 * stack.c (backtrace_command): Add QUIT to get_prev_frame loops.
2918 Sat Feb 3 22:25:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2920 * Makefile.dist (YACC): Don't use -v.
2922 Fri Feb 2 19:26:50 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
2924 * createtags: Only change .o to .c at end of name.
2926 * Makefile.dist (alldeps.mak): new target.
2927 (Makefile): add alldeps.mak.
2928 (SOURCES): remove PINSNS.
2929 (TAGFILES: use ALLPARAM.
2930 (gdb.tar): add config/.
2932 * config.gdb: Check for M_FILE= not #param.h
2933 config/*: Make sure M_FILE= exists with space after M_FILE=.
2934 Makefile.dist (TAGS): Pass M_FILE and DEPFILES.
2935 createtags: Change .o to .c. Remove special tests for dep.c etc.
2937 * dbxread.c, coffread.c: Don't check COFF_FORMAT and READ_DBX_FORMAT.
2938 Makefile.dist: Move {dbx,coff}read.c from SFILES to ALLDEPFILES.
2939 config/*: add dbxread.o or coffread.o to depfiles.
2941 * Makefile.dist (depend): Depend on $(SOURCES), not force.
2943 Thu Feb 1 17:43:54 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2945 * symmisc.c (print_symbol): Print newline after label.
2947 Wed Jan 31 22:35:38 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2949 * dbxread.c (read_addl_syms): Remove code that checks for
2951 Move end_of_text_addr into read_dbx_symtab.
2952 (read_dbx_symtab): #if 0 out code which checks for _etext.
2954 Tue Jan 30 15:40:19 1990 Jim Kingdon (kingdon at albert.ai.mit.edu)
2956 * Makefile.dist (gdb.tar): Use readline's "make readline.tar"
2957 instead of having a list of readline files.
2959 * infrun.c (normal_stop): #if 0 out "you have found a bug in sh".
2961 * munch (-DSYSV): Check for .text at end of name.
2962 Optionally allow extra underscore before initialize.
2963 Remove space between #! and /bin/sh.
2965 * m-merlin.h: Put in clarifying comments about SHELL_FILE.
2966 Makefile.dist (install): Execute M_INSTALL.
2967 config/merlin: Define M_INSTALL.
2969 Mon Jan 29 04:32:09 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2971 * inflow.c: Change all references to signal handlers from
2972 int (*)() to void (*)().
2974 * main.c: Declare init_signals before use & make it void.
2975 Declare initialize_all_files.
2977 * Makefile.dist (config.status): New target.
2979 Sat Jan 27 00:19:50 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
2981 * defs.h (enum command_class): Remove comma after last element.
2983 * Makefile.dist (gdb.tar.Z): Use compress <foo >bar rather
2984 than deleting gdb.tar.Z before starting.
2986 * dbxread.c (process_one_symbol): Compare context_stack_depth
2987 with !VARIABLES_INSIDE_BLOCK, not VARIABLES_INSIDE_BLOCK.
2989 * mcheck.c: Put whole file in #if defined MALLOC_RANGE_CHECK.
2991 * mcheck.c (checkhdr): Call fatal_dump_core not abort.
2993 * mcheck.c: Copy from malloc distribution.
2995 * main.c (main): Call init_malloc ().
2997 * main.c (initialize_signals): Rename to init_signals.
2999 Fri Jan 26 00:53:23 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
3001 * *dep.c: Make core_file_command return void.
3003 * gdbcore.h [!KERNEL_U_ADDR]: Declare kernel_u_addr.
3004 infptrace.c [!KERNEL_U_ADDR]: Make it extern.
3006 * altos-dep.c (NBPG, UPAGES): Wrap #define in #if !defined.
3008 * m-pn.h (GOULD_PN): Define.
3009 *-pinsn.c: Include actual opcode table not just opcode.h
3011 * main.c [ALIGN_STACK_ON_STARTUP]: New code.
3012 m-i386.h: Define ALIGN_STACK_ON_STARTUP.
3014 * m-merlin.h (NO_SIGINTERRUPT, SHELL_FILE): Define.
3016 * Move code from infptrace [USE_PTRACE_GETREGS] to sun3-dep.c.
3017 m-sun{2,3}.h, m-sparc.h: Define FETCH_INFERIOR_REGISTERS.
3019 * Makefile.dist, config.gdb, config/*:
3020 Re-write to use machine-dependent makefiles instead of cpp.
3022 * m-hp300hpux.h: Define FETCH_INFERIOR_REGISTERS.
3023 infptrace.c: Put {fetch,store}_inferior_registers inside
3024 #if !defined FETCH_INFERIOR_REGISTERS.
3026 * Split execcore.c into exec.c and coredep.c.
3027 Move a bunch of stuff from coredep.c and *dep.c to gdbcore.h.
3029 * infptrace.c ({fetch,store}_inferior_registers):
3030 Use U_REGS_OFFSET to set offset.
3031 m-umax.h: Define U_REGS_OFFSET.
3033 * m-umax.h: Define PTRACE_{ATTACH,DETACH}.
3035 * m-i386.h (N_SET_MAGIC): Define.
3036 m-i386gas.h: add #undef N_SET_MAGIC.
3038 Thu Jan 25 18:39:45 1990 Jim Kingdon (kingdon at mole.ai.mit.edu)
3040 * m-hp300bsd.h: Remove KERNEL_U_ADDR.
3042 * infptrace.c [!KERNEL_U_ADDR]: Get address of kernel u area
3045 * infptrace.c: Replace numbers with PT_KILL, etc.
3046 (store_inferior_registers): Loop for as many words are in the register.
3048 * infptrace.c [NO_SINGLE_STEP]: Call single_step().
3050 * kill_inferior{,_fast}: Declare as returning void.
3052 * m-sun3.h (USE_PTRACE_GETREGS): Define.
3054 * execcore.c: Add IS_OBJECT_FILE & related stuff.
3056 * infptrace.c: Include <sys/ptrace.h>.
3057 [ATTACH_DETACH] [USE_PTRACE_GETREGS]: New code.
3059 * Split default-dep.c into infptrace.c and execcore.c.
3061 * valprint.c [IEEE_FLOAT]: Change void * to char *.
3063 * breakpoint.c: Change printf_filtered(%s) to fputs_filtered.
3065 Wed Jan 24 00:35:52 1990 Jim Kingdon (kingdon at pogo.ai.mit.edu)
3067 * dbxread.c (symbol_file_command): When freeing everything, free
3068 the string table too.
3070 * Makefile.dist (gdb1): add "rm -f gdb1".
3072 * printcmd.c (print_scalar_formatted): If size is 0, use 'b'
3073 'h', 'w', or 'g' depending on the type.
3075 * stack.c (backtrace_command): Read in symbols for frames we'll
3076 print before printing them.
3078 * valops.c (value_at): Don't print "I/O error" on EIO from
3079 ptrace. Don't print "out of bounds" for any ptrace error
3082 * valprint.c (type_print_base, case TYPE_CODE_ENUM):
3083 Print "FOO = 5" not "FOO : 5".
3085 * symtab.{c,h}: Make lookup_misc_func extern.
3087 * Makefile.dist: Define VERSION in makefile, and generate
3088 version.c automatically.
3089 (gdb.tar): Use gdb-$(VERSION), not dist-gdb.
3091 * expread.y (yylex): Use lookup_primitive_typename to
3092 cut down on calls to lookup_symbol.
3093 symtab.{c,h} (lookup_primitive_typename): New function.
3094 (lookup_typename): Use it.
3096 * symtab.{c,h} (check_stub_type): New function.
3097 valprint.c (type_print_base, val_print, type_print_derivation_info),
3098 values.c (allocate_value): Call it.
3100 * printcmd.c (whereis_command): New function.
3101 symtab.c (lookup_symbol): Add symtab parameter.
3102 various: Pass additional argument to lookup_symbol.
3103 symseg.h (struct symbol): Add line field.
3104 dbxread.c (define_symbol): Set sym->line.
3106 * dbxread.c (symbol_file_command): Read string table into
3107 malloc'd memory (symfile_string_table) and leave it there.
3108 (psymtab_to_symtab): Use symfile_string_table.
3110 * utils.c (sig_abbrev): Return NULL if not found.
3111 infrun.c (sig_print_{header,info}): Consolidate duplicated
3112 code from handle_command, signals_info.
3113 (sig_print_info): Just print number if no name from sig_abbrev.
3115 * Makefile.dist (OTHERS): Add ChangeLog-3.x
3117 * infrun.c (restore_inferior_status): #if 0 out
3118 "Unable to restore previously selected frame" error message.
3120 * infrun.c (signals_info, handle_command): Print signal
3121 abbrevs along with numbers.
3123 * infrun.c (handle_command): Accept symbol signal names.
3125 * utils.c (sig_{number,abbrev}, init_sig): New functions.
3126 _initialize_utils: Call init_sig for each signal.
3127 defs.h: Declare them.
3129 * default-dep.c (read_inferior_memory): Check quit_flag in
3132 * Changes for lazy fetching (speeds things up for big objects):
3133 value.h (struct value): New field lazy.
3134 VALUE_CONTENTS_RAW, VALUE_LAZY, value_at_lazy: New.
3135 findvar.c (read_var_value): Set lazy instead of fetching.
3136 various: Copy into VALUE_CONTENTS_RAW, not VALUE_CONTENTS.
3137 valops.c: Add value_at_lazy, value_lazy.
3138 various: Call value_at_lazy instead of value_at.
3140 * symtab.h (LONGEST): Define.
3142 * m-*.h (LONGEST, BUILTIN_TYPE_LONGEST): Delete (in symtab.h).
3144 * infrun.c (wait_for_inferior): #if 0 out stop if ABOUT_TO_RETURN
3146 * version.c: Change version number to 4.0development
3148 For older changes see ChangeLog-3.x
3154 version-control: never